Skip to content
Permalink
Browse files

change to overlay2

Since devicemapper is deprecated let's use overlay2 instead.

Tested and works

root@1:~# docker info
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 18.09.0
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: c4446665cb9c30056f4998ed953e6d4ff22c7c39
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-39-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.852GiB
Name: 1.hanssonit.se
ID: 5PJK:EZZD:VQYJ:ZZDI:66GE:PLKB:2UQE:XRGS:V2W7:4GPF:XRJO:POPF
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
Product License: Community Engine
  • Loading branch information...
enoch85 committed Nov 26, 2018
1 parent 134c61d commit e88c3a4cc3aded518074c7696159bad0f6b36414
Showing with 6 additions and 3 deletions.
  1. +6 −3 apps/onlyoffice.sh
@@ -80,9 +80,12 @@ check_open_port 443 "$SUBDOMAIN"
# Install Docker
install_docker

# Set devicemapper
check_command cp -v /lib/systemd/system/docker.service /etc/systemd/system/
sed -i "s|ExecStart=/usr/bin/dockerd -H fd://|ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://|g" /etc/systemd/system/docker.service
# Set overlay2
cat << OVERLAY2 > /etc/docker/daemon.json
{
"storage-driver": "overlay2"
}
OVERLAY2
systemctl daemon-reload
systemctl restart docker

0 comments on commit e88c3a4

Please sign in to comment.
You can’t perform that action at this time.