-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall_docker.sh
executable file
·24 lines (18 loc) · 1.01 KB
/
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
#!/usr/bin/env bash
#Petit script pour installer facilement Docker et ses outils qui vont bien
#zf210822.1928, zf250107.1729
# source: https://doc.ubuntu-fr.org/docker
# source: https://docs.docker.com/compose/install/#install-compose
echo -e "\Installation de docker..."
sudo apt-get update
sudo apt-get -y install python2-minimal
sudo apt-get -y install python3-minimal curl htop tree
#./install_docker.sh
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker $LOGNAME
#echo -e "\nInstallation de docker-compose..."
##sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
#sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
#sudo chmod +x /usr/local/bin/docker-compose
#docker-compose --version
echo -e "\nIMPORTANT !\n\nVous devez faire un logoff/logon pour que les modifications de groups fonctionnent !\n"