mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update docker-install.sh
fix daemon.json
This commit is contained in:
parent
2cdc4d4115
commit
51667bbf9a
@ -102,14 +102,11 @@ VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/la
|
|||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
||||||
chmod 755 /usr/local/bin/fuse-overlayfs
|
chmod 755 /usr/local/bin/fuse-overlayfs
|
||||||
echo -e '{\n "storage-driver": "fuse-overlayfs"\n}' > /etc/docker/daemon.json
|
|
||||||
cd ~
|
cd ~
|
||||||
|
echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
|
||||||
|
else
|
||||||
|
echo -e '{\n "storage-driver": "overlay2",\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
|
||||||
fi
|
fi
|
||||||
cat >$DOCKER_CONFIG_PATH <<'EOF'
|
|
||||||
{
|
|
||||||
"log-driver": "journald"
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
sh <(curl -sSL https://get.docker.com) &>/dev/null
|
sh <(curl -sSL https://get.docker.com) &>/dev/null
|
||||||
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
|
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user