Skip to content

Instantly share code, notes, and snippets.

@vsmelov
Created March 18, 2017 13:01
Show Gist options
  • Save vsmelov/fdf196af24e9d918275c4c394c0e46b9 to your computer and use it in GitHub Desktop.
Save vsmelov/fdf196af24e9d918275c4c394c0e46b9 to your computer and use it in GitHub Desktop.
Устанавливает Docker и docker-compose на Ubuntu
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
@vsmelov
Copy link
Author

vsmelov commented Mar 18, 2017

В PyCharm нужно указать API URL: unix:///var/run/docker.sock
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment