container-storage-setup icon indicating copy to clipboard operation
container-storage-setup copied to clipboard

Add option to add more options to docker storage

Open cgwalters opened this issue 9 years ago • 8 comments

If say I want to pass e.g. --storage-opt dm.basesize=50G to docker, currently the easiest way to do that is to change /etc/sysconfig/docker, where one would expect at least to also be able to change (also) /etc/sysconfig/docker-storage-setup where other options are specified.

Alternatively, we could figure out how to sanely merge human and automatic changes in /etc/sysconfig/docker-storage, but that's nontrivial, and I prefer not mixing human-edited and machine-edited files.

cgwalters avatar Apr 02 '15 12:04 cgwalters

would you expect this to also address adding version specific flags automatically? For instance docker-1.9.1 added dm.use_deferred_deletion=true and it'd be nice to get that during upgrades by merging machine generated and user modified.

sdodson avatar Jun 09 '16 13:06 sdodson

Now we have a config option "EXTRA_DOCKER_STORAGE_OPTIONS", where one can specify the config options to pass to docker.

rhvgoyal avatar Jun 09 '16 14:06 rhvgoyal

So this issue can be closed then, right?

Probably a different issue, but If I upgrade from docker-1.8.2 to docker-1.9.1, assuming d-s-s runs when docker starts, will I get the new options defined?

sdodson avatar Jun 09 '16 14:06 sdodson

I think this particular issue can be closed. What you are asking for is a different issue.

I think right fix for your issue is to enable deferred deletion and deferred removal by default in docker that way over an upgrade customer automatically gets it.

Now docker has done changes in their systemd unit file to run docker daemon in host namespace by default. That means lot of leaking of mounts across namespaces and that also means lot more need to enable deferred deletion and deferred removal by default. So may be docker will be open to it now. If not, we should think of carrying a patch for docker for fedora.

rhvgoyal avatar Jun 09 '16 14:06 rhvgoyal

cc @shishir-a412ed Would you like to propose enabling deferred removal and deferred deletion by default upstream?

rhvgoyal avatar Jun 09 '16 14:06 rhvgoyal

Yes @shishir-a412ed propose that and explain the leaking of open file descriptors caused by running docker in the host namespace.

rhatdan avatar Jun 09 '16 14:06 rhatdan

@rhvgoyal @rhatdan ack. Will open a PR upstream.

shishir-a412ed avatar Jun 09 '16 17:06 shishir-a412ed

@rhvgoyal @rhatdan https://github.com/docker/docker/pull/23590

Shishir

shishir-a412ed avatar Jun 15 '16 20:06 shishir-a412ed