1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-03 10:28:28 +00:00

Merge pull request #385 from WPRobson/master

add docker init command to docker cheatsheet
This commit is contained in:
Julien Le Coupanec 2024-06-07 23:35:19 +02:00 committed by GitHub
commit 10872e02d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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