Skip to content

Instantly share code, notes, and snippets.

@taufiqpsumarna
Last active June 18, 2024 13:04
Show Gist options
  • Save taufiqpsumarna/e55e9e2b52ed8454a46120d232c35329 to your computer and use it in GitHub Desktop.
Save taufiqpsumarna/e55e9e2b52ed8454a46120d232c35329 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Update repository and upgrade package"
apt update && apt upgrade -y
echo "Install Docker Package"
curl -fsSLv https://releases.rancher.com/install-docker/24.0.9.sh | sudo bash
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
echo "Add current user to docker group"
sudo usermod -aG docker $USER
apt-get update
apt-get install gitlab-runner -y
echo "Install Docker Machine"
curl -O "https://gitlab-docker-machine-downloads.s3.amazonaws.com/v0.16.2-gitlab.23/docker-machine-Linux-x86_64"
cp docker-machine-Linux-x86_64 /usr/local/bin/docker-machine
chmod +x /usr/local/bin/docker-machine
@taufiqpsumarna
Copy link
Author

Docker Engine 23.0+ Error Issue

As of this morning, the latest Docker release (23.0) caused issues with the docker-machine fork, resulting in GitLab Runner not being able to create autoscaling runners using the docker+machine executor. The issue is captured in #98 (closed). Many of us were using an older version of docker-machine as a workaround for the problem described in this issue, but since we now have to update to the latest release this is no longer possible.

https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/issues/109#note_1325863864

@taufiqpsumarna
Copy link
Author

taufiqpsumarna commented Jun 18, 2024

18 June 2024 Docker Engine 24.0.9 Upgrade

We can use latest docker engine and I've tested this version and it's working without any error using Ubuntu 22.04 LTS
"engine-install-url='https://releases.rancher.com/install-docker/24.0.9.sh'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment