docker 目录结构(dir struc)

1、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)


2、devicemapper


tree /var/lib/docker
/var/lib/docker
├── containers # Where containers are saved
│   ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77
│   │   ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77-json.log # log file
│   │   ├── config.json # The config file of the container, such as state, image, memory, cpu, networking, mount
│   │   ├── hostconfig.json # The host config for this container, such as host mount, port maping, volume from other container
│   │   ├── hostname # hostname
│   │   ├── hosts # host file for this container
│   │   ├── resolv.conf # DNS settings for this container
│   │   └── resolv.conf.hash
│   └── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec
│       ├── config.json
│       ├── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec-json.log
│       ├── hostconfig.json
│       ├── hostname
│       ├── hosts
│       ├── resolv.conf
│       └── resolv.conf.hash
├── devicemapper # Two types of backend storage DM (devicemapper) and AUFS (advanced multi layered unification filesystem) . RedHat/CentOS/Fedora uses DM as default storage driver. DM supports thin provisioning, loopback mounted sparse file. (http://developerblog.redhat.com/2014/09/30/overview-storage-scalability-docker/https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/README.mdhttp://www.projectatomic.io/docs/filesystems/)
│   ├── devicemapper
│   │   ├── data # Data loop file
│   │   └── metadata # Metadata loop file
│   ├── metadata
│   │   ├── 10acc31def5d6f249b548e01e8ffbaccfd61af0240c17315a7ad393d022c5ca2
│   │   ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77
│   │   ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77-init
│   │   ├── 3310574481b22e66d4beead0e0915a5d090c742724107cb59ae6470573830210
│   │   ├── base
│   │   ├── deviceset-metadata
│   │   ├── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec
│   │   ├── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec-init
│   │   └── transaction-metadata
│   └── mnt
│       ├── 10acc31def5d6f249b548e01e8ffbaccfd61af0240c17315a7ad393d022c5ca2
│       ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77
│       ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77-init
│       ├── 3310574481b22e66d4beead0e0915a5d090c742724107cb59ae6470573830210
│       ├── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec
│       └── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec-init
├── execdriver # Running container
│   └── native
│       ├── 261e9d1f711e10945f1ad40d9ee5a5d892d4e150ea0ed1a29e8ed49a500e1c77
│       └── fa3339efba1560a1c0b7c140a1c091f68258e9a664d661505a5b1d5b5773d8ec
├── graph # Where Images are saved
│   ├── 10acc31def5d6f249b548e01e8ffbaccfd61af0240c17315a7ad393d022c5ca2
│   │   ├── json
│   │   └── layersize
│   ├── 3310574481b22e66d4beead0e0915a5d090c742724107cb59ae6470573830210
│   │   ├── json
│   │   └── layersize
│   └── _tmp
├── init # docker init binary versions
│   ├── dockerinit-1.3.2
│   └── dockerinit-1.5.0
├── linkgraph.db # SQLite db file that is used for keeping the links between containers
├── repositories-devicemapper # Info for images
├── tmp
├── trust #???
│   └── official.json
└── volumes # Randomly created volumes on host
├── 150967e6f9f81f50a73f56d60fcbd4b189cbf09ee7f7df41f61438d40d2a5057
│   └── config.json
├── a46bf00d73c6c0d79c6390cc52b9383e7779c0695b46d3a152f6b98dd0a69349
│   └── config.json
├── d6cbe5421c0d76c05c76bb56d72ca06f7d1e65813f4a02b9d8a440763006af39
│   └── config.json
└── f1cc2170872cd2592d6847db422fbf474c30fc79255c8da883ccbec5b2523f33
└── config.json

Pingbacks已打开。

引用地址

暂无评论

发表评论