File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ if [ $(id -u) -ne 0 ]; then
77fi
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
You can’t perform that action at this time.
0 commit comments