How to run an image with volume on docker for windows

0 votes

When I try to run my image, I get the following error:

> #app - inside the container is empty

What am I doing wrong? Is there a solution to this?

Sep 20, 2018 in Docker by Sophie may
• 10,620 points
• 2,439 views

1 answer to this question.

0 votes

Try :

  • declaring the volume of container
  • mounting the host-dir to the volume path

That is, Dockerfile:

And then, run this command

docker run -it -v /full/path/
answered Sep 20, 2018 by Tyrion anex
• 8,690 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

How to create “PersistentVolumeClaim” in Kubernetes on “Docker for windows”?

Try this: kubectl get storageclass gives output as ...READ MORE

answered Oct 4, 2018 in Docker by Tyrion anex
• 8,690 points
• 4,894 views