Change docker storage driver to 'overlay'

Hi,
I trying update my little bit older UCS 4.4.1, but get error:

ERROR: The current docker storage driver is "overlay2".
       An update to UCS 4.2-2 is only possible if docker uses
       "overlay" as storage driver. To perform the update
       the docker storage driver has to be changed to "overlay".

       Please visit https://help.univention.com/t/upgrade-to-ucs-4-4-2-only-possible-with-overlay-as-dockers-storage-driver/13368
       for more information.

So, I run ucr set docker/daemon/default/opts/storage-driver=‘overlay’
In /etc/default/docker is:

DOCKER_OPTS="--storage-driver=overlay --log-opt=max-file=4 --log-opt=max-size=10m --live-restore --log-driver=json-file --bip=10.16.42.1/16 "

But docker info still show overlay2

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.09.7
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 
runc version: N/A
init version: v0.18.0 (expected: fec3683b971d9c3ef73f284f176672c44b448662)
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-11-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.832GiB
Name: ucs-dc1
ID: PVFQ:K2S6:FFJE:NRXO:ZO6I:DF6Z:IVRK:5UVZ:5FR6:2IFQ:XWKV:CV5R
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Docker service restarted, server rebooted, but still stay on driver overlay2. And update UCS still not possible.

Any idea to fix?
Thanks.

1 Like

Thanks,
/etc/docker/daemon.json solved my problem.

Mastodon