Docker Community Forums

Share and learn in the Docker community.

Copy-on-write option


(Jcoop) #1

I have an application I would like to debug. However, this application has 40+ TERABYTES of data. This would be… prohibitive to copy every time I wanted to run a container. I don’t actually need a copy of the data, I just need access to what’s there for reading. However, to properly debug the app, I also need to write data, and I do NOT need it to persist. I just need to be able to write while debugging/testing.

To this end, what I would truly prefer to have is a “:cow” option similar to the “:ro” option one can use now when setting up a volume, or adding it to the ‘docker run’ command with ‘-v’ option.

I have been researching this, and though others have at least tried to achieve the same thing (with paltry Gigabytes of data), none of their approaches have worked for me so far. In fact, their most common solution was to simply copy the data even though they didn’t want to do so. This really won’t work for me, especially since there may be multiple people debugging/testing this app at any given time.

Since Docker already implements an overlay system, it would be extremely helpful if it were made available for volumes in this manner.