All technological notes.
Manages the layer architecture. Common drivers:
Dock choose bases on the OS
/var/lib/docker: data root directory on the host
aufs: old storage driveroverlay2: current storage driver; Image layerscontainers: runtime data
<container-id>/
docker logsimage: image metadatavolumes: persistent data
<volume-name>/_data/Union File System (like OverlayFS).Container layer adds a read-write layer on topImage layers = read-onlycopy-on-write machenism
copy-on-writeTypes of mounts
Volume mounts:
Bind mounts:
docker run -v /host/path:/container/path nginx| Command | Description |
|---|---|
docker volume ls |
List volumes |
docker volume create vol_name |
Create a volume |
docker volume update |
Update a volume (cluster volumes only) |
docker volume rm vol_name |
Remove one or more volumes |