Skip to content
Advertisement

How to pass additional arguments for docker daemon

I have under /etc/sysconfig/docker , the following configuration :-

other_args="--insecure-registry ******* -g /apps/var/lib"

Now I am using docker version 17.03.1-ce on Red Hat Enterprise Linux Server release 7.4 and default storage driver as overlay that is causing lot of build issues due to :-

checksum_type: too many links

After doing a bit of research on the internet figured out to get rid of this the best solution would be to use overlay2 driver.

How do i edit the /etc/sysconfig/docker to include storage driver as overlay2. I tried lot of ways but none worked.

Any help here would be greatly appreciated as always.

Advertisement

Answer

Created a file /etc/docker/daemon.json with :-

{

“storage-driver”: “overlay2”,

“storage-opts”: [

“overlay2.override_kernel_check=true” ] }

And that did the trick

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement