本文介绍了docker目录结构的功能在/ var / lib / docker /的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我启动一个新的docker守护进程时,docker目录是这样的:
when I start a fresh docker daemon, the docker directory is as this:
/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
作为标题说,什么是功能
as the title say, what is the function of every directory in this structure?
推荐答案
我不知道所有文件的确切作用,所以我先从这个,让别人添加自己的贡献,或者改进我的:
I don't know the exact role of all files, so I'll start with this, and let others add their own contribution, or refine mine:
/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 /的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!