0

Is it possible to create a new partition with a drive E: in a docker Windows container?

I tried option symbolic link in the registry and volume E in a dockerfile,it generates a drive in a container.But when i run this container in my localhost it doesnot create any E partition drive.

I also tried new partition powershell command to create new drive in the target windows host using dockerfile, but it shows like "msft doesnot have disknumber drive" in building the image itelf.

So what i need is, i dont have any drive other than c in my target windows host,so using dockerfile i need to create a drive by downloading my drive creation image as a base image.

Can anyone suggest me.

Thanks in advance

  • No, you cannot use tooling isolated inside a Docker container to control low-level host hardware details like this. – David Maze Feb 19 '20 at 16:27
  • So how can we create disk partition drive inside a container, so that we can able to create drive in target windows host while running this created base image – user3603280 Feb 20 '20 at 15:25
  • You don't. Run the tool directly on the host, with administrator permissions. A principal design goal of Docker is that containers can't generally reconfigure the host like this. – David Maze Feb 21 '20 at 10:07

1 Answers1

0

But i think Volume command in docker will create a disk drive in target windows like the below link Create D drive in a docker container.

Correct me if any wrong.

Katey
  • 19
  • 7
  • By using VOLUME command , it will create a drive in container but am not sure whether this container connecting to windows target host ,it will create a drive. – Katey Feb 21 '20 at 18:20