Some Docker notes of commands for reference
Images
Listing images
docker images
Running images
docker run <image name>
docker run <repo name>/<image name>
Building images
Create a Dockerfile file with the recipe therein.
docker build -t <image name> <parent subdir of Dockerfile>
Tagging images
Kinda like renaming; can be used to prepare for pushing
docker tag <image ID> <repo name>/<image name>:<version label or tag>
One version label is “latest.”
Pushing images
docker login --username=<user name> --email=<email> docker push <image name>
Deleting images
docker rmi <repo name>
docker rmi <image ID>
The “-f” option is required if there are containers (even finished ones) referencing the image.
Containers
Kinda like processes.
Listing containers
docker ps -a
Deleting containers
docker rm <container ID>