Skip to content

Commit 48a72d8

Browse files
authored
Update to docker-ce
1 parent b0583bb commit 48a72d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install.docker.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ if [ $(id -u) -ne 0 ]; then
77
fi
88

99
# install required packages
10-
apt-get install -y apt-transport-https ca-certificates software-properties-common
10+
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
1111

1212
# install Docker repository key
13-
wget https://yum.dockerproject.org/gpg -qO- | apt-key add -
13+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
1414

1515
# add Docker repository
16-
add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
16+
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1717

18-
# disable APT proxy for Docker repository
19-
echo 'Acquire::HTTP::Proxy::apt.dockerproject.org "DIRECT";' > /etc/apt/apt.conf.d/99_dockerproject
18+
# OPTIONAL: disable APT proxy for Docker repository
19+
# echo 'Acquire::HTTP::Proxy::apt.dockerproject.org "DIRECT";' > /etc/apt/apt.conf.d/99_dockerproject
2020

2121
# update package list
22-
apt-get update
22+
sudo apt-get update
2323

2424
# install Docker
25-
apt-get -y install docker-engine
25+
sudo apt-get install docker-ce

0 commit comments

Comments
 (0)