如何将卷数据从 docker-for-mac 迁移到 colima
如何将卷从 docker-for-mac
移动到 colima
?
How do I move volumes from docker-for-mac
into colima
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何将卷从 docker-for-mac
移动到 colima
?
How do I move volumes from docker-for-mac
into colima
?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
将从 docker-for-mac 复制所有卷并将其移动到 colima。
注意:您可能不想复制很多卷,因为它们是临时卷,您只需添加
| 即可忽略它们。 grep "YOUR FILTER"
到for
循环,在awk
之前或之后。以下代码做了 2 个假设:
这就是您所需要的,现在将其复制并粘贴到您的终端中。不需要碰任何东西。
Will copy all the volumes from
docker-for-mac
and move them tocolima
.Note: there will be a lot of volumes you may not want to copy over since they're temporary ones, you can ignore them by simply adding a
| grep "YOUR FILTER"
to thefor
loop, either before or after theawk
.The following code makes 2 assumptions:
That is all you need, now copy-and-paste this into your terminal. No need to touch anything.