Skip to content

Instantly share code, notes, and snippets.

@geek182
Last active May 10, 2018 17:20
Show Gist options
  • Save geek182/1cad1c473ff5f5e38de5361fdb68f165 to your computer and use it in GitHub Desktop.
Save geek182/1cad1c473ff5f5e38de5361fdb68f165 to your computer and use it in GitHub Desktop.
docker survival kit
#expose port 9090 to host and 80 to container
#order (HOST:CONTAINER)
docker run -d -p 9090:80 -t nginx
#using commit
https://blog.codeship.com/using-docker-commit-to-create-and-change-an-image/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment