In running Ubuntu 17.04 we were trying to install docker to try out. So we tried below and found there were no suitable release for our environment. No candidate version.
root@computer:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - OK root@computer:~# sudo add-apt-repository "deb [arch=x86_64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" root@computer:~# apt-get update Hit:1 http://us.archive.ubuntu.com/ubuntu zesty InRelease Get:2 https://download.docker.com/linux/ubuntu zesty InRelease [29.5 kB] Get:3 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB] Get:4 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB] Get:5 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB] Get:6 http://us.archive.ubuntu.com/ubuntu zesty-updates/main i386 Packages [195 kB] Get:7 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages [199 kB] Get:8 http://us.archive.ubuntu.com/ubuntu zesty-updates/main Translation-en [89.7 kB] Get:9 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11 Metadata [52.7 kB] Get:10 http://us.archive.ubuntu.com/ubuntu zesty-updates/main DEP-11 64x64 Icons [26.3 kB] Get:11 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe i386 Packages [98.0 kB] Get:12 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 Packages [98.0 kB] Get:13 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 DEP-11 Metadata [82.8 kB] Get:14 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages [133 kB] Get:15 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe DEP-11 64x64 Icons [88.0 kB] Get:16 http://us.archive.ubuntu.com/ubuntu zesty-updates/multiverse amd64 DEP-11 Metadata [5,840 B] Get:17 http://us.archive.ubuntu.com/ubuntu zesty-backports/universe amd64 DEP-11 Metadata [5,140 B] Get:18 http://security.ubuntu.com/ubuntu zesty-security/main i386 Packages [130 kB] Get:19 http://security.ubuntu.com/ubuntu zesty-security/main Translation-en [61.0 kB] Get:20 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [12.5 kB] Get:21 http://security.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [20.7 kB] Get:22 http://security.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons [36.5 kB] Fetched 1,631 kB in 1s (1,138 kB/s) Reading package lists... Done N: Skipping acquire of configured file 'stable/binary-x86_64/Packages' as repository 'https://download.docker.com/linux/ubuntu zesty InRelease' doesn't support architecture 'x86_64' root@computer:~# apt-cache policy docker-ce docker-ce: Installed: (none) Candidate: (none) Version table:
Off to the test repository at https://test.docker.com we go! After pulling an install script and running it we can now see docker installed from the test repository.
root@computer:~# curl -fsSL test.docker.com -o test-docker.sh root@computer:~# sh test-docker.sh Executing docker install script, commit: cfa611a + sh -c apt-get update Hit:1 https://download.docker.com/linux/ubuntu zesty InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu zesty InRelease Get:3 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB] Get:4 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB] Hit:5 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease Fetched 178 kB in 0s (233 kB/s) Reading package lists... Done N: Skipping acquire of configured file 'stable/binary-x86_64/Packages' as repository 'https://download.docker.com/linux/ubuntu zesty InRelease' doesn't support architecture 'x86_64' + sh -c apt-get install -y -q apt-transport-https ca-certificates curl software-properties-common Reading package lists... Building dependency tree... Reading state information... apt-transport-https is already the newest version (1.4). ca-certificates is already the newest version (20161130). software-properties-common is already the newest version (0.96.24.13). curl is already the newest version (7.52.1-4ubuntu1.1). The following packages were automatically installed and are no longer required: aufs-tools cgroupfs-mount Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded. + curl https://download.docker.com/linux/ubuntu/gpg + sh -c apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3817 100 3817 0 0 37597 0 --:--:-- --:--:-- --:--:-- 37792 OK + sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty test" > /etc/apt/sources.list.d/docker.list + [ ubuntu = debian ] + sh -c apt-get update Hit:1 https://download.docker.com/linux/ubuntu zesty InRelease Get:2 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB] Hit:3 http://us.archive.ubuntu.com/ubuntu zesty InRelease Get:4 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB] Get:5 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB] Fetched 268 kB in 0s (424 kB/s) Reading package lists... Done N: Skipping acquire of configured file 'stable/binary-x86_64/Packages' as repository 'https://download.docker.com/linux/ubuntu zesty InRelease' doesn't support architecture 'x86_64' + sh -c apt-get install -y -q docker-ce Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: docker-ce 0 upgraded, 1 newly installed, 0 to remove and 47 not upgraded. Need to get 0 B/20.9 MB of archives. After this operation, 97.9 MB of additional disk space will be used. Selecting previously unselected package docker-ce. (Reading database ... 260955 files and directories currently installed.) Preparing to unpack .../docker-ce_17.07.0~ce~rc3-0~ubuntu_amd64.deb ... Unpacking docker-ce (17.07.0~ce~rc3-0~ubuntu) ... Setting up docker-ce (17.07.0~ce~rc3-0~ubuntu) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (232-21ubuntu5) ... Processing triggers for man-db (2.7.6.1-2) ... + sh -c docker version Client: Version: 17.07.0-ce-rc3 API version: 1.31 Go version: go1.8.3 Git commit: 665d244 Built: Thu Aug 17 00:58:39 2017 OS/Arch: linux/amd64 Server: Version: 17.07.0-ce-rc3 API version: 1.31 (minimum version 1.12) Go version: go1.8.3 Git commit: 665d244 Built: Thu Aug 17 00:57:31 2017 OS/Arch: linux/amd64 Experimental: false If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect! WARNING: Adding a user to the "docker" group will grant the ability to run containers which can be used to obtain root privileges on the docker host. Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for more information. root@computer:~# ls jekyll test-docker.sh root@computer:~# make check make: *** No rule to make target 'check'. Stop. root@computer:~# which docker /usr/bin/docker
root@computer:~# ls -lah /usr/bin/docker* -rwxr-xr-x 1 root root 19M Aug 16 17:57 /usr/bin/docker -rwxr-xr-x 1 root root 12M Aug 16 17:57 /usr/bin/docker-containerd -rwxr-xr-x 1 root root 11M Aug 16 17:57 /usr/bin/docker-containerd-ctr -rwxr-xr-x 1 root root 2.6M Aug 16 17:57 /usr/bin/docker-containerd-shim -rwxr-xr-x 1 root root 39M Aug 16 17:57 /usr/bin/dockerd -rwxr-xr-x 1 root root 851K Aug 16 17:57 /usr/bin/docker-init -rwxr-xr-x 1 root root 2.4M Aug 16 17:57 /usr/bin/docker-proxy -rwxr-xr-x 1 root root 8.4M Aug 16 17:57 /usr/bin/docker-runc