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

 JHH先森 发布于 2023-02-04 21:00

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

正如标题所说,这个结构中每个目录的功能是什么?

1 个回答
  • 我不知道所有文件的确切作用,所以我将从这开始,让其他人添加他们自己的贡献,或者改进我的:

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

    2023-02-04 21:06 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有