2024-08-31 01:39:36 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
dnf install curl jq -y
|
|
|
|
|
2024-09-24 15:36:53 +03:00
|
|
|
dnf remove podman* -y
|
|
|
|
|
2024-08-31 01:39:36 +03:00
|
|
|
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
|
|
|
|
|
|
|
dnf remove -y runc
|
|
|
|
|
|
|
|
dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
|
|
|
|
|
|
|
DOCKER_COMPOSE_VERSION=$( curl -s 'https://api.github.com/repos/docker/compose/releases' |jq -r .[0].tag_name)
|
|
|
|
|
|
|
|
if [ -f "docker-compose-linux-x86_64.xz" ];then
|
|
|
|
unxz docker-compose-linux-x86_64.xz
|
|
|
|
cp -v docker-compose-linux-x86_64 /usr/bin/docker-compose
|
|
|
|
else
|
|
|
|
curl -SL "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64" -o /usr/bin/docker-compose
|
|
|
|
fi
|
|
|
|
|
|
|
|
chmod +x /usr/bin/docker-compose
|
|
|
|
|