如何在Docker for Windows中设置共享驱动器? [英] How to set the shared drives in Docker for Windows?

查看:830
本文介绍了如何在Docker for Windows中设置共享驱动器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows版Docker中设置共享驱动器?我正在使用最新版本18。稳定和边缘。我的设置屏幕如下所示。它缺少某些选项,例如共享驱动器,高级和网络,如第二幅图像所示。为什么我会缺少这些选项?

How to set the shared drives in Docker for Windows? I am using the latest version 18. Stable and Edge. My settings screen is shown below. It's missing some options like Shared Drives, Advanced and Network, which are shown in the second image. Why am I missing these options?

我的设置:

网站上的屏幕:

Screen from a website:

推荐答案

似乎您正在使用 Windows容器运行Windows的Docker。如果您切换到 Linux容器,则会看到共享驱动器选项。 观看此视频

Seems you are Running Docker for Windows using "Windows Containers". If you switch to "Linux containers" you'll see "Shared Drives" option. Take a look this video.

根据Docker文档:共享驱动器


卷安装需要Linux容器(而不是
Windows容器)的共享驱动器。

Volume mounting requires shared drives for Linux containers (not for Windows containers).

这篇关于如何在Docker for Windows中设置共享驱动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆