码迷,mamicode.com
首页 > 其他好文 > 详细

Docker默认存储路径修改

时间:2017-07-19 17:50:21      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:docker   server   map   style   insecure   mod   mapper   als   roo   

Docker默认存储路径:

# docker info
......
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
......
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
Registries: docker.io (secure)

 

修改Docker存储路径:

# systemctl stop docker

# cd /var/lib

# cp –rf docker /data

# rm –rf docker

# ln –s /data/docker  docker

 

验证Docker存储信息:

# docker info
......
Data loop file: /data/docker/devicemapper/devicemapper/data
......
Docker Root Dir: /data/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
Registries: docker.io (secure)

Docker默认存储路径修改

标签:docker   server   map   style   insecure   mod   mapper   als   roo   

原文地址:http://www.cnblogs.com/Bourbon-tian/p/7206642.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!