Probably Done Before: Visualizing Docker Containers and Images - 0 views
-
In my opinion, understanding how a technology works under the hood is the best way to achieve learning speed and to build confidence that you are using the tool in the correct way.
-
union view
-
The top-level layer may be read by a union-ing file system (AUFS on my docker implementation) to present a single cohesive view of all the changes as one read-only file system
- ...36 more annotations...
-
A container is defined only as a read-write layer atop an image (of read-only layers itself). It does not have to be running.
-
a running container
-
The processes within this process-space may change, delete or create files within the "union view" file that will be captured in the read-write layer
-
there is no longer a running container
-
The 'docker create' command adds a read-write layer to the top stack based on the image id. It does not run this container.
-
'docker ps -a' where the 'a' is short for 'all' lists out all the containers on your system, whether stopped or running.
-
Only those images that have containers attached to them or that have been pulled are considered top-level.
-
'docker stop' issues a SIGTERM to a running container which politely stops all the processes in that process-space.
-
uses the FROM directive in the Dockerfile file as the starting image and iteratively 1) runs (create and start) 2) modifies and 3) commits.
-
'docker exec' command runs on a running container and executes a process in that running container's process space
-
'docker inspect' fetches the metadata that has been associated with the top-layer of the container or image
-
'docker export' command creates a tar file of the contents of the "union view" and flattens it for consumption for non-Docker usages