sh.osa.cubetiqs.com/amzlinux.sh
2022-10-06 15:04:08 +07:00

17 lines
434 B
Bash

#!/bin/bash -e
sudo yum update
sudo yum install docker -y
sudo usermod -a -G docker $USER
newgrp docker
# Docker Compose
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
sudo chmod -v +x /usr/local/bin/docker-compose
sudo systemctl enable --now docker.service
sudo systemctl status docker.service