5,337
edits
(→Usage) |
|||
Line 51: | Line 51: | ||
docker container ls | docker container ls | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Run=== | |||
<pre> | |||
docker run <container> | |||
</pre> | |||
* <code>-p hostport:containerport</code> to do port forwarding | |||
** To restrict listing to localhost use <code>-p 127.0.0.1:80:80</code> | |||
* <code>-it</code> to be interactive with a pseudo-tty | |||
==Windows== | ==Windows== |