You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
617 B
26 lines
617 B
#!/bin/bash |
|
|
|
set -o xtrace |
|
set -o errexit |
|
|
|
# Setup Docker repo and add signing key |
|
sudo apt-get update |
|
sudo apt-get install -y \ |
|
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 -y install --no-install-recommends docker-ce |
|
|
|
sudo systemctl start docker --now |
|
|
|
sudo docker info |
|
|
|
sudo apt-get install python-pip |
|
|
|
sudo pip install docker |
|
|
|
echo "Completed $0."
|
|
|