美文网首页
docker image move to other(after

docker image move to other(after

作者: siyongshuai | 来源:发表于2018-01-27 20:45 被阅读0次

    1. stop docker

    sudo systemctl stop docker.service

    2. mkdir target dir

    mkdir -p /data/docker

    3. sync  /var/lib/docker/ to target dir

     rsync -aXS /var/lib/docker/. /data/docker

    4. edit fstab,append under line to fstab 

    #vim /etc/fstab

    ...

    /data/docker  /var/lib/docker none bind 0 0

    5.remount (by fstab)

    mount –a

    6. review  /var/lib/docker info

    Docker镜像迁移

    相关文章

      网友评论

          本文标题:docker image move to other(after

          本文链接:https://www.haomeiwen.com/subject/qmdoaxtx.html