Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
docker目录结构在/var/lib/docker中的作用/_Docker - Fatal编程技术网

docker目录结构在/var/lib/docker中的作用/

docker目录结构在/var/lib/docker中的作用/,docker,Docker,启动新的docker守护程序时,docker目录如下所示: /var/lib/docker/ ├── aufs │   ├── diff │   ├── layers │   └── mnt ├── containers ├── graph ├── init │   └── dockerinit-0.7.3 ├── linkgraph.db ├── lxc-start-unconfined -> /usr/bin/lxc-start ├── repositories-aufs └── volum

启动新的docker守护程序时,docker目录如下所示:

/var/lib/docker/ ├── aufs │   ├── diff │   ├── layers │   └── mnt ├── containers ├── graph ├── init │   └── dockerinit-0.7.3 ├── linkgraph.db ├── lxc-start-unconfined -> /usr/bin/lxc-start ├── repositories-aufs └── volumes /var/lib/docker/ ├── AUF │   ├── 差异 │   ├── 层 │   └── mnt ├── 容器 ├── 图表 ├── 初始化 │   └── dockerinit-0.7.3 ├── linkgraph.db ├── lxc启动无限制->/usr/bin/lxc启动 ├── 存储库AUF └── 卷
正如标题所说,此结构中每个目录的功能是什么?

我不知道所有文件的确切作用,因此我将从这里开始,让其他人添加他们自己的贡献,或完善我的贡献:

/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版本,因为它变化很快,有一个博客你可以从中学习。