Skip to content

Instantly share code, notes, and snippets.

@ilya-muhortov
Last active January 21, 2018 15:35
Show Gist options
  • Select an option

  • Save ilya-muhortov/51e99b12428a02cf42e6125c893f1f9e to your computer and use it in GitHub Desktop.

Select an option

Save ilya-muhortov/51e99b12428a02cf42e6125c893f1f9e to your computer and use it in GitHub Desktop.
Docker install
apt-get update
apt-get install software-properties-common &&
apt-add-repository ppa:ansible/ansible &&
apt-get update &&
apt-get install -y ansible &&
sudo sh -c "echo 'localhost ansible_connection=local' >> /etc/ansible/hosts"
apt-get install --yes linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get update
apt-get install --yes apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install --yes docker-ce python3-pip git
pip3 install docker-compose
systemctl enable docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment