mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-09-07 18:59:04 +00:00
Merge pull request #385 from WPRobson/master
add docker init command to docker cheatsheet
This commit is contained in:
commit
10872e02d1
@ -2,7 +2,7 @@
|
||||
# DOCKER
|
||||
##############################################################################
|
||||
|
||||
|
||||
docker init # Creates Docker-related starter files
|
||||
docker build -t friendlyname . # Create image using this directory's Dockerfile
|
||||
docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80
|
||||
docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode
|
||||
|
Loading…
Reference in New Issue
Block a user