Missing `VOLUME` declaration for exposed directories
See original GitHub issueDescription of the issue
When deploying Docker containers to AWS ECS, and using EFS mounts, the files from the directories /home/frappe/frappe-bench/{sites,sites/assets}
are not copied to the mounted dir.
Context information (for bug reports)
Explanation of the issue: https://github.com/aws/containers-roadmap/issues/863
Steps to reproduce the issue
- Deploy a Fargate Task with an EFS mounted as
/home/frappe/frappe-bench/sites
- Log into ECS container
- Do an
ls
inside/home/frappe/frappe-bench/sites
Observed result
Empty dir
Expected result
Files from the image to be copied into the mounted dir.
Stacktrace / full error message if available
N/A
Solution
Define volumes inside Dockerfile
:
VOLUME ["/home/frappe/frappe-bench/sites"]
Issue Analytics
- State:
- Created 10 months ago
- Comments:5
Top Results From Across the Web
[Fargate] [request]: container files not copied to volume in 1.4.0
I suspect this is a Docker feature which was lost since Fargate 1.4.0 ... VOLUME /scratch #### THIS IS NEEDED TO EXPOSE THE...
Read more >Volumes - Docker Documentation
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. While bind mounts are dependent on the directory...
Read more >Why in docker-compose I should write full path to volume?
ERROR: Named volume "admin-stat-logs:C:/app/Logs:rw" is used in service "admin-stat-table" but no declaration was found in the volumes section.
Read more >Elastic/elasticsearch-docker not assigning permissions to data ...
Hello, I was trying to use elasticsearch-docker image for hosting dockerized elastichsearch cluster. What I have noticed that the es-docker ...
Read more >Docker Compose Syntax: Volume or Bind Mount? - Maxim Orlov
Top-level volumes key always declares volumes, never bind mounts. Bind mounts don't have a name and they can't be named. If source is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
some things were added in python code when containers were not used.
things that I can remember
Thanks, will close for now then.