User Tools

Site Tools


docker_run

This is an old revision of the document!


Docker Run Command

Flag Explanation
-i Interactive Container
-t creates a pseudo-TTY that attaches stdin and stdout
–rm Remove the container after the command/script has finished
-v adds a volume to the container
-d tells Docker to run the container in the background
-P
-p e.g. -p 80:5000 binds the container to a specific port
-h

docker run -it -v /home/luke/documents:/location/on/container imageID




docker_run.1444141232.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki