2020
11-29
11-29
docker-修改容器挂载目录的3种方法小结
方式一:修改配置文件(需停止docker服务)1、停止docker服务systemctlstopdocker.service(关键,修改之前必须停止docker服务)2、vim/var/lib/docker/containers/container-ID/config.v2.json修改配置文件中的目录位置,然后保存退出 "MountPoints":{"/home":{"Source":"/docker","Destination":"/home","RW":true,"Name":"","Driver":"","Type":"bind","Propagation":"rprivate","Spec":{"Type":"bind","Source":"//doc...
继续阅读 >