docker
Error response from daemon: Mounts denied:
The path /ASP.NET/Https is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
docker-compose
process finished with exit code 1Docker Documentation
Sign in
Explore the Learning center and understand the benefits of signing in to Docker Desktop
11 Replies
show your compose file or whatever command you were running to get this error, dropping an error log with 0 context isn't very useful
@KeswiikSorry for late response.
This is compose.yml
I ve been stuck on this problem for a week
i am trying to run api thru docker, but everytime there is new error
I am using rider, mac.
well you need to expose those paths, or at least the root of the path, with docker
even tells you where in the settings to do so
i'll take a screenshot
When i looked up problem everybody said to expose /Users but it still doesnt work
first off, what does APPDATA point to?
because your error implies it isn't set
as it is trying to mount
/ASP.NET/Https
I don't really know, i just followed video. this is my first docker setup
well you need to figure that out
I would assume the tutorial you followed gave some details regarding it
and if not that tutorial sucks
okay i'll look it up
Okay after a lot of digging i made it work. But i am not sure how well it is written. Maybe i could use some help with code ogranizaiton/best practices.
changes were added
- ASPNETCORE_KestrelCertificatesDefaultPath=/https/aspnetapp.pfx
- ASPNETCORE_KestrelCertificatesDefaultPassword=654123
and
volumes:
- ~/.aspnet/https:/https:ro
@Keswiik
looks fine to me