docker目录结构在/ var / lib / docker /
当我启动一个新的docker守护进程时,docker目录是这样的:
在/ var / lib中/泊坞窗/ ├──aufs │├──差异 │├──图层 │└──mnt ├──容器 ├──图 ├──init │└──dockerinit-0.7.3 ├──linkgraph.db ├──lxc-start-unconfined - > / usr / bin / lxc-start ├──知识库 - aufs └──卷
正如标题所说,这个结构中每个目录的function是什么?
我不知道所有文件的确切作用,所以我将从这个开始,让其他人添加他们自己的贡献,或者细化我的内容:
/var/lib/docker/ ├── aufs # Storage area for AUFS driver │ ├── diff # Branch directory of layer │ ├── layers # Infomation about docker layer │ └── mnt # Mount point of aufs, root of containers ├── containers # Container configurations │ (both LXC and Docker-specific) ├── graph # Storage for the images ├── init │ └── dockerinit-0.7.3 # Used as /sbin/init in containers ├── linkgraph.db # SQLite database storing links │ and names. ├── lxc-start-unconfined -> /usr/bin/lxc-start # When starting a privileged │ container, this is used in │ lieu of lxc-start, to evade │ AppArmor confinement (which │ matches by exact path). ├── repositories-aufs # repository infomation └── volumes # Storage for "anonymous" volumes (those which are not bind-mounts)