加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

/ var/lib/docker /中docker目录结构的功能

发布时间:2020-12-16 03:36:18 所属栏目:安全 来源:网络整理
导读:当我启动一个新的docker守护进程时,docker目录是这样的: /var/lib/docker/├── aufs│?? ├── diff│?? ├── layers│?? └── mnt├── containers├── graph├── init│?? └── dockerinit-0.7.3├── linkgraph.db├── lxc-start-uncon

当我启动一个新的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/
├── 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)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读