Cheat sheet recommended by tutorial.
docker build -t friendlyhello . # Create image using this directory's Dockerfile
docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80
docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode
docker container ls # List all running containers
docker container ls -a # List all containers, even those not running
docker container stop # Gracefully stop the specified container
docker container kill # Force shutdown of the specified container
docker container rm # Remove specified container from this machine
docker container rm $(docker container ls -a -q) # Remove all containers
docker image ls -a # List all images on this machine
docker image rm # Remove specified image from this machine
docker image rm $(docker image ls -a -q) # Remove all images from this machine
docker login # Log in this CLI session using your Docker credentials
docker tag
username/repository:tag # Tag
for upload to registry
docker push username/repository:tag # Upload tagged image to registry
docker run username/repository:tag # Run image from a registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Following the Docker introudction tutorial to create a Flask server (https://docs.docker.com/get-started/)
TKlingstrom/docker-starter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Following the Docker introudction tutorial to create a Flask server (https://docs.docker.com/get-started/)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published