airskiff: Purge Docker before installing Docker CE

Currently, if Docker is already installed on a host before running the
Airskiff deployment scripts, deployment will fail due to conflicting
versions of Docker, as the deployment scripts install Docker CE. This
change updates the Airskiff deployment scripts to remove conflicting
versions of Docker before installing Docker CE.

Change-Id: Iad2352dd7ce7dee13040ba5a65bf25347e106c86
This commit is contained in:
Drew Walters 2018-12-07 19:17:49 +00:00
parent d580d35647
commit 81fcbebe9f
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ sudo apt-get install --no-install-recommends -y \
ca-certificates \
# Install Docker CE
# Purge Docker and install Docker CE
systemctl unmask docker.service
sudo apt-get remove --no-install-recommends -y docker docker-engine
curl -fsSL | sudo apt-key add -
sudo apt-add-repository \
"deb [arch=amd64] \