docker study --- overlay docker cp not work
来源:互联网 发布:做班徽的软件 编辑:程序博客网 时间:2024/06/08 10:47
最近公司有人开出个ticket 给Docker team。我看了看。
背景:
We meet another issue on Fawn’s lab -- “docker cp” doesn’t work. Could you please help to have a check? It had worked well last week. But now, it show following error:[root@utas1mvmft3-http-node-0 ~]# docker cp c8ee965ce671:/root/hss-sim .Error response from daemon: lstat /var/lib/docker/overlay/a884c04d7108c7400738f677eaeca348414a57f59f92e0fc368282587800fe1a/merged/root/hss-sim: no such file or directory Following is /root dir in this container:root @ sim : ~> pwd/rootroot @ sim : ~> lsdtd-client dtd-client-lesley dtd-client.off dtd-client.tar.gz.max.127.ro.connections dtd-sims-libs hss hss-sim qos-sim But in the dir of the overlay subdir:[root@utas1mvmft3-http-node-0 ~]# ls /var/lib/docker/overlay/a884c04d7108c7400738f677eaeca348414a57f59f92e0fc368282587800fe1a/merged/root/diamMultiClientSim diamMultiClientSim.MessagesToDTD diamMultiClientSim.prov dtd-client-lesley rf.prov ro.prov run_dtd-client.bash sh.prov Then I find hss-sim in the “upper” subdir:[root@utas1mvmft3-http-node-0 ~]# ls /var/lib/docker/overlay/a884c04d7108c7400738f677eaeca348414a57f59f92e0fc368282587800fe1a/upper/root/dtd-client dtd-client-lesley hss hss-sim qos-sim But the contents are still not same between this dir and the container, although Fawn finds what she needs.In the “upper” dir:[root@utas1mvmft3-http-node-0 ~]# ls /var/lib/docker/overlay/a884c04d7108c7400738f677eaeca348414a57f59f92e0fc368282587800fe1a/upper/root/hss-sim/as_entity hss.cfg hss.cfg.new hss.log hsssh qos.log In the container:root @ sim : ~> ls hss-sim/as_entity hss.cfg hss.cfg.new hss.log hss_simulator hsssh qos.log repository_data subscriber_data
这个issue起因是一个同事问我docker cp不work。 当时着急测试。我知道肯定是docker mount哪里出现了问题。为了让她尽快测试。 我告诉她把数据拷贝到》
/var/lib/docker/overlay/a884c04d7108c7400738f677eaeca348414a57f59f92e0fc368282587800fe1a/upper 这个目录就能用了。然后也没仔细研究这个问题。 这个问题也不能reproduce。
按理来说。 upper这个目录是docker 的rw曾, docker的操作也是操作这个层。
The "upper" directory is the containers read-write layer. Any changes made to the container are written to this directory.
merge这个目录应该显示read only 和rw层所有信息。
The "merged" directory is effectively the containers mount point. This is where the unified view of the image ("lowerdir") and container ("upperdir") is exposed. Any changes written to the container are immediately reflected in this directory.
测试往upper dir写数据, 不会在merger dir出现。 也就是说“unified view”失效了。
等有时间继续研究
0 0
- docker study --- overlay docker cp not work
- docker study
- Docker Study
- docker study
- docker overlay network测试
- Docker 容器网络 overlay
- docker cp命令详解
- docker 创建overlay网络实践
- 采用docker overlay存储驱动
- docker配置overlay存储模式
- docker study --- runc
- docker study --- containerd
- docker study --- containerd
- docker study --- shim
- Install MySQL in a Docker Container # systemctl can not work in docker
- docker 之cp命令使用
- 使用Docker Swarm创建Overlay Network
- [Kubernetes]Docker的overlay网络模型
- iOS - 图文混排(支持图片文字混排,网址@#话题#以及自定义链接,关键字高亮等)
- Git分支使用规范
- redis使用
- GOF设计模式-备忘录模式
- Xcode中提示”xx“is missing from working copy 的警告。
- docker study --- overlay docker cp not work
- maven 程序包org.junit不存在
- 常用性能优化策略总结
- screen.colorDepth(色彩深度) 和 screen.pixelDepth(像素深度)
- 轻量级Web漏洞教学演示系统DSVW
- <:if>没有<c:else>解决方案
- c/c++文件操作总结
- 9.异常体系
- javamail简单的邮件发送