Files
kubernetes-the-hard-way/vagrant/ubuntu/install-docker.sh
Sudhir 3fd44c2832 Fix interactive input requested in setup
When docker-ce is installed it brings up an interactive prompt and in mac terminal it cannot be responded to and the setup as a result gets stuck.
2019-11-03 20:31:14 +05:30

16 lines
575 B
Bash

#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update \
&& apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository \
"deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install -y docker-ce=$(apt-cache madison docker-ce | grep 18.06 | head -1 | awk '{print $3}')