17 lines
434 B
Bash
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 |