Skip to main content
The 2024 Developer Survey results are live! See the results

Timeline for Zip file from Docker volume

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Jul 16, 2019 at 13:56 comment added slhck @Web You have to first mount the volume (e.g. ./data to /var/www/html, and then install the theme. The theme then stays persisted on your host (in ./data).
Jul 16, 2019 at 13:51 history edited slhck CC BY-SA 4.0
add link to volumes
Jul 16, 2019 at 13:50 comment added Arslan Liaqat @slhck the problem is that i copying custom wordpress theme using dockerfile. when i mount the volume on host, theme file is overrided by empty files from the host, thats why i mounted the volume in container instead of host. and i am creating continous backups so that if i had a problem , i can re run from the backup.
Jul 16, 2019 at 13:37 comment added slhck @Web Do yourself a favor and follow this advice. Don't let the WordPress data stay in the container. If the container gets removed or has to be rebuilt, all your data is lost. Also, no other container can access it. The same for the database: provide a separate volume which can be persisted across container runs, and access it from both the WordPress container as well as the one that runs the backups.
Jul 16, 2019 at 12:03 comment added xenoid Just suggesting the proper way to do things. You may want to do it otherwise but then you may want to think how to get the data back in the container (or in a new container...).
Jul 16, 2019 at 11:51 comment added Arslan Liaqat I dont want to mount the volume to host, i am creating a script that will zip the file to sftp server and then delete the zip file.
Jul 16, 2019 at 9:57 history answered xenoid CC BY-SA 4.0