您的位置:首页 > 本地本地
Windows7系统安装docker,每次pull远程仓库镜像到本地,为什么总会生成两个一样的镜像文件?
admin2024-08-29人已围观
Windows7系统安装docker,每次pull远程仓库镜像到本地,为什么总会生成两个一样的镜像文件?
解决步骤
1. 安装好docker环境 (自行搜索网上教程)
2. 运行docker (自行搜索网上教程)
3. 打开docker管理器, 右键选择设置
4. 打开putty进入docker (docker 默认地址: 192.168.99.100 默认账号: docker 默认密码: tcuser)
5. 查看目录是否挂载成功!
docker 容器启动后,还能通过命令行挂接存储卷么
docker 容器启动后,再通过命令行很难挂载一个存储卷。因为mnt在容器运行过程中要在自己的工作空间执行。
通过以下步骤可以挂载:
(1)use nsenter to mount the whole filesystem containing this volume on a temporary mountpoint;
(2)create a bind mount from the specific directory that we want to use as the volume, to the right location of this volume;
(3)umount the temporary mountpoint.
很赞哦! ()
上一篇:什么是docker镜像,容器和仓库'>谈谈自媒体、新媒体和融媒体
下一篇:返回列表'>返回列表