Add 'amzlinux.sh'

This commit is contained in:
Sambo Chea 2022-10-06 15:04:08 +07:00
parent 68c1fcf453
commit e6a95f7a9d

17
amzlinux.sh Normal file
View File

@ -0,0 +1,17 @@
#!/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