mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-08-09 12:22:43 +03:00
kubernetes-the-hard-way-on-vagrant
This commit is contained in:
14
vagrant/ubuntu/install-docker.sh
Normal file
14
vagrant/ubuntu/install-docker.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
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}')
|
Reference in New Issue
Block a user