Straight Forward Docker on Windows
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Examples
Docker.pptx
License.txt
README.md

README.md

AtlCodeCampDocker

Straight Forward Docker on Windows

Cheatsheet

Task docker command
Display Version docker version
List installed images docker images
Remove an image docker rmi <image name>
Remove a container docker rm <container>
Show running containers docker ps
Show all containers docker ps -a
Run a command in a NEW container docker run <container> <command>
Interactive mode
docker run -i <container> <command>
Run a command in an EXISTING container docker exec <container> <command>
Interactive mode
docker exec -i <container> <command>
Connect to a container's console docker attach <container>
Get a Windows container's IP address docker inspect --format '{{ .NetworkSettings.Networks.nat.IPAddress }}' <container>
Build an image docker build <folder> -t <image name>
Example:
docker build . -t ormico/helloworld

Image names are often prefixed with a namespace. In the example above "ormico" is used as the namespace prefix and "/" is used as a separator.

Images also support tags. Multiple images can share the same name if they are differentiated by a tag. Tags are specified using the ":". Tags are often used to specify version numbers and operating systems.

Dockerfile reference https://docs.docker.com/engine/reference/builder/