美文网首页
docker 使用笔记

docker 使用笔记

作者: 被代码捆住腿的摄影师 | 来源:发表于2018-08-16 17:33 被阅读0次
    1. 从容器拷贝文件到宿主机

    docker cp containerID:/file/path/within/container /host/path/target

    1. 从宿主机拷贝文件到容器

    docker cp /host/path/target containerID:/file/path/within/container

    3 不管容器有没有启动,拷贝命令都会生效

    需要注意的是,不管容器有没有启动,拷贝命令都会生效。

    相关文章

      网友评论

          本文标题:docker 使用笔记

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