Skip to content

Commit

Permalink
Install docker using xenial repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed May 15, 2018
1 parent dfa86ad commit 1a2b72e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions package/root/usr/local/sbin/install_container_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@ apt-get install -y \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

add-apt-repository \
"deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"

# TODO: workaround, add xenial for now
RELEASE=$(lsb_release -cs)
if [[ "$RELEASE" == "bionic" ]]; then
RELEASE=xenial
fi

add-apt-repository \
"deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $RELEASE stable"

add-apt-repository \
"deb http://apt.kubernetes.io/ kubernetes-$RELEASE main"

Expand Down

0 comments on commit 1a2b72e

Please sign in to comment.