All technological notes.
Docker File System:
var/lib/docker
Image Layer Architecture
docker buildContainer layer:
image layers.Copy on write mechanism
image layer gets modified, Docker automatically creates a copy of the image layer in the container layer and enables read / write.AUFS: default in UbuntuZFSBTRFSDevice Mapper: fedora/ CentOSOverlayOverlay2Volume
Container Layercommand: docker volume create data_volume
/var/lib/docker/data_volumVolume Mounting
docker run -v data_volume:/var/lib/mysql mysqlBind mounting
docker run -v /data/mysql:/var/lib/mysql mysql--mount: new style with key value pair
docker run --mount type=bind,source=/data/mysqll,target/var/lib/mysql mysql
volume drivers plugin
localCan be specified in the container
# save data in the AWS ebs
docker run -it\
--name mysql \
--volume-driver rexray/ebs \
--mount src=ebs-vol,target=/var/lib/mysql \
mysql