当我启动一个新的docker守护程序时,docker目录如下:

/var/lib/docker/
├──aufs
│├──差异
│├──层
│└──mnt
├──容器
├──图
├──初始化
│──└──dockerinit-0.7.3
├──linkgraph.db
├──lxc-start-unconfined->/usr/bin/lxc-start
├──仓库-aufs
└──卷

顾名思义,此结构中每个目录的功能是什么?

最佳答案

我不知道所有文件的确切角色,因此我将从此开始,然后让其他人添加自己的贡献或完善我的文件:

/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)

关于docker -/var/lib/docker/中docker目录结构的功能,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21016210/

10-16 16:40
查看更多