mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-12 06:07:57 +00:00
add docker init command to docker cheatsheet
This commit is contained in:
parent
2aee46f169
commit
bf4c0379f2
@ -2,7 +2,7 @@
|
|||||||
# DOCKER
|
# DOCKER
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
docker init # Creates Docker-related starter files
|
||||||
docker build -t friendlyname . # Create image using this directory's Dockerfile
|
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 -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80
|
||||||
docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode
|
docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode
|
||||||
|
Loading…
Reference in New Issue
Block a user