Skip to content

Instantly share code, notes, and snippets.

@sirius2k
Last active April 18, 2018 11:46
Show Gist options
  • Save sirius2k/f123e00350c39d04d4190d6759666cd4 to your computer and use it in GitHub Desktop.
Save sirius2k/f123e00350c39d04d4190d6759666cd4 to your computer and use it in GitHub Desktop.
docker run command example
# 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