Dobroslaw Zybort 6f97685454 Build Docker image in zuul
Story: 2001694
Task: 23054

Change-Id: I554e1efdfb7b996d805748a7930a76e2124e060b
2018-07-19 10:02:47 +02:00

22 lines
490 B
Bash
Executable File

#!/bin/bash
set -o xtrace
set -o errexit
# Make sure no old images exists.
sudo rm -rf /var/lib/docker
sudo apt-get update
sudo apt-get -y install apt-transport-https
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 docker info
echo "Completed $0."