Last active
May 10, 2018 17:20
-
-
Save geek182/1cad1c473ff5f5e38de5361fdb68f165 to your computer and use it in GitHub Desktop.
docker survival kit
This file contains hidden or 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
#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