Docker默认存储路径修改:

root@gguxxing-docker:/var/lib#docker info

Containers:17

Images:50

ServerVersion: 1.9.1

StorageDriver: aufs

 Root Dir:/var/lib/docker/aufs

 Backing Filesystem: extfs

 Dirs: 84

 Dirperm1 Supported: true

ExecutionDriver: native-0.2

LoggingDriver: json-file

KernelVersion: 4.2.0-27-generic

OperatingSystem: Ubuntu 14.04.4 LTS

CPUs: 2

TotalMemory: 3.86 GiB

Name:gguxxing-docker

ID:2PCY:AVKJ:MTGQ:5OCB:VN4V:R23A:YUNI:A5PW:UKIW:U5AW:IM6P:SD5N

WARNING:No swap limit support

 

--docker新路径的配置

servicedocker stop

cd/va/lib

cp –rf docker  docker.bak

cp –rf docker /data

rm –rf docker

ln –s /data/docker  docker


root@gguxxing-docker:~#docker info

Containers:17

Images:50

ServerVersion: 1.9.1

StorageDriver: aufs

 Root Dir:/data/docker/aufs

 Backing Filesystem: extfs

 Dirs: 84

 Dirperm1 Supported: true

ExecutionDriver: native-0.2

LoggingDriver: json-file

KernelVersion: 4.2.0-27-generic

OperatingSystem: Ubuntu 14.04.4 LTS

CPUs: 2

TotalMemory: 3.86 GiB

Name:gguxxing-docker

ID:2PCY:AVKJ:MTGQ:5OCB:VN4V:R23A:YUNI:A5PW:UKIW:U5AW:IM6P:SD5N

WARNING:No swap limit support

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐