Docker Compose Volume not showing inside the container

Hi All,

I have the below compose file:

version: “3.3”
services:
webserver1:
image: microsoft/iis:nanoserver-sac2016
ports:
- “80:80”
volumes:

  • es-data:c:\data

volumes:
es-data:

Problem is that I can’t see the c:\data folder inside the container after docker compose finish.

It creates the volume on the host without any issue but that’s it.

Am I missing someting ?

Thanks,

The Docker for Windows community forum is place where users can meet and discuss Docker for Windows and related technologies.
If you encounter problems with Docker for Windows, we recommend:

Finally, if your issue has not been addressed elsewhere, running:

  • :whale: :arrow_right:️ Settings :arrow_right:️ Diagnose & Feedback :arrow_right:️ Open Issues.

This forum is not an official product support or issue reporting channel.