From 3bd8a58ea55512e4d8ff0baf05c4e09dd93b7902 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 8 Jun 2018 09:13:46 -0700 Subject: [PATCH] Update docker to 18.03.1 --- baseimage/initializeBaseUbuntuImage.sh | 2 +- scripts/installer.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/baseimage/initializeBaseUbuntuImage.sh b/baseimage/initializeBaseUbuntuImage.sh index 8a58c9bcd..6fd706b82 100644 --- a/baseimage/initializeBaseUbuntuImage.sh +++ b/baseimage/initializeBaseUbuntuImage.sh @@ -61,7 +61,7 @@ echo "==> Installing Docker" mkdir -p /etc/systemd/system/docker.service.d echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2" > /etc/systemd/system/docker.service.d/cloudron.conf -curl -sL https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb -o /tmp/docker.deb +curl -sL https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.1~ce-0~ubuntu_amd64.deb -o /tmp/docker.deb # apt install with install deps (as opposed to dpkg -i) apt install -y /tmp/docker.deb rm /tmp/docker.deb diff --git a/scripts/installer.sh b/scripts/installer.sh index 6c943fd33..0c4501248 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -35,11 +35,11 @@ while true; do done echo "==> installer: updating docker" -if [[ $(docker version --format {{.Client.Version}}) != "18.03.0-ce" ]]; then - $curl -sL https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.0~ce-0~ubuntu_amd64.deb -o /tmp/docker.deb +if [[ $(docker version --format {{.Client.Version}}) != "18.03.1-ce" ]]; then + $curl -sL https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.1~ce-0~ubuntu_amd64.deb -o /tmp/docker.deb # https://download.docker.com/linux/ubuntu/dists/xenial/stable/binary-amd64/Packages - if [[ $(sha256sum /tmp/docker.deb | cut -d' ' -f1) != "1f7315b5723b849fe542fe973b0edb4164a0200e926d386ac14363a968f9e4fc" ]]; then + if [[ $(sha256sum /tmp/docker.deb | cut -d' ' -f1) != "54f4c9268492a4fd2ec2e6bcc95553855b025f35dcc8b9f60ac34e0aa307279b" ]]; then echo "==> installer: docker binary download is corrupt" exit 5 fi