Created
March 18, 2017 13:01
-
-
Save vsmelov/fdf196af24e9d918275c4c394c0e46b9 to your computer and use it in GitHub Desktop.
Устанавливает Docker и docker-compose на Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# Сделать своего пользователя повелителем Докера: | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# Теперь нужно перелогиниться | |
# Проверить установку: | |
docker run hello-world | |
# Ставим docker-compose: | |
sudo pip3 install docker-compose | |
# Проверить установку: | |
docker-compose --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
В PyCharm нужно указать API URL: unix:///var/run/docker.sock
