本文介绍了在Docker容器中创建D驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Docker Windows容器中用C:以外的驱动器号创建一个新分区?
Is it possible to create a new partition with a drive letter other than C: in a docker Windows container?
我需要一个D:\和一个E :\驱动某些软件。
I need a D:\ and an E:\ drive for some software.
推荐答案
我不认为您可以从现有映像中执行此操作,但是如果您制作这样的Dockerfile:
I don't think you can do it from an existing image, but if you make a Dockerfile like so:
FROM <Base image like microsoft/dotnet-framework>
VOLUME ["D:"]
# Rest of Docker file here
Windows容器将创建一个D:驱动器。
The Windows container will create a D: Drive.
这篇关于在Docker容器中创建D驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!