Add 'amzlinux.sh'
This commit is contained in:
parent
68c1fcf453
commit
e6a95f7a9d
17
amzlinux.sh
Normal file
17
amzlinux.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user