Sharing App_Data folder between docker host and container using VOLUME

5 czerwca 2020 21:59:13
  • Wysłany: 5 listopada 2019 11:42
  • 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
  • Wysłany: 5 listopada 2019 13:24
  • Moderator
  • 571
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
  • Wysłany: 5 listopada 2019 14:24
  • 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