Sharing App_Data folder between docker host and container using VOLUME

Thursday, April 25, 2024 1:26:03 PM
  • Posted: Tuesday, November 5, 2019 11:42 AM
  • 4
I  run dev version of grandnode in Docker and would to share App_Data folder between container and docker host.
$ docker run -d -p 8080:80 --name grandnode -v /app/App_Data:/app/App_Data grandnode/develop

Docker cannot start app because App_Data folder is empty and appsettings.json not found.

I see in Dockerfile VOLUME declaration and it is includes  /app/App_Data

How i can share this folder?

p.s. I know about CP command and can copy files between container and host.

Thank you.
0
  • Posted: Tuesday, November 5, 2019 1:24 PM
  • 953
Hey Sergey,

Sorry, but I'm not a Docker specialist, so I'm not able to help you. Maybe there is someone smarter in Docker management.

Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, November 5, 2019 2:24 PM
  • 4
I think we cannot get access to /app/App_Data , /app/wwwroot , /app/Themes and /app/Plugins from docker host and have to use CP command
0
back to top
Filters