Last active
June 18, 2024 13:04
-
-
Save taufiqpsumarna/e55e9e2b52ed8454a46120d232c35329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'"