-
Notifications
You must be signed in to change notification settings - Fork 3
/
install-docker.sh
28 lines (23 loc) · 987 Bytes
/
install-docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
echo '-------------------------------------------------'
echo ' Linux Development Setup - Luan Panno '
echo ' install-docker.sh '
echo '-------------------------------------------------'
echo '\n-------------------------------------------------'
echo 'installing docker'
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
docker --version
sudo chmod 777 /var/run/docker.sock
docker run hello-world
echo '\n-------------------------------------------------'
echo 'installing docker-compose'
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo '\n-------------------------------------------------'
echo 'add user to docker group'
sudo usermod -aG docker $USER
newgrp docker
echo '\nDone'