Last active
April 18, 2018 11:46
-
-
Save sirius2k/f123e00350c39d04d4190d6759666cd4 to your computer and use it in GitHub Desktop.
docker run command example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run command format | |
$ docker run -d -p <host port>:<container port> -v <host volume>:<container volume> --name <container name> <image> | |
# sample | |
$ docker run -d -p 8080:8080 -v /host/data:/container/data --name my_container my_container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment