rather than emitting text, let's use the package manager
https://docs.docker.com/engine/installation/linux/docker-ce/debian/#install-docker-ce-1
This commit is contained in:
@@ -91,9 +91,10 @@ or install Docker CE 17.09 from Docker's repositories for Ubuntu or Debian:
|
||||
```bash
|
||||
apt-get update && apt-get install -y curl apt-transport-https
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||
cat <<EOF >/etc/apt/sources.list.d/docker.list
|
||||
deb https://download.docker.com/linux/$(lsb_release -si | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable
|
||||
EOF
|
||||
add-apt-repository \
|
||||
"deb [arch=amd64] 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 17.09 | head -1 | awk '{print $3}')
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user