I am trying to run an ASP.NET Core application using Docker and I would like to expose the external wwwroot folder to the container, so that when I make changes to it from the outside, they are automatically available to my app. Is this possible, using volumes?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- Can I use MvcJsonOptions configured during Startup
- Singleton with AsyncLocal vs Scope Service
Yes it is possible. If you use docker run then you should do below
If you use
docker-compose
then you should add below to the serviceIf you are using this on Docker for Windows then you may have to some path translation like