默认docker的存储路径在:
/var/lib/docker
# docker info
Containers: 1
Images: 41
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 43
Execution Driver: native-0.2
Kernel Version: 3.13.0-32-generic
WARNING: No swap limit support
可以这样:
service stop docker.io
mv /var/lib/docker to SAN
ln -s SAN /var/lib/docker
最后
# docker info
Containers: 5
Images: 572
Storage Driver: aufs
Root Dir: /data/docker/aufs
Dirs: 593
Execution Driver: native-0.2
Kernel Version: 3.16.0-30-generic
WARNING: No swap limit support
时间: 2024-10-01 22:47:28