Skip to content

Instantly share code, notes, and snippets.

@levsthings
Last active April 13, 2023 21:05
Show Gist options
  • Save levsthings/0a49bfe20b25eeadd61ff0e204f50088 to your computer and use it in GitHub Desktop.
Save levsthings/0a49bfe20b25eeadd61ff0e204f50088 to your computer and use it in GitHub Desktop.
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"

sudo apt-get update
sudo apt-get install docker-ce
@whoan
Copy link

whoan commented Sep 4, 2019

You can also use this more generic way to add the proper repo according to ubuntu's codename:

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

More info here: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository

@aditi17142
Copy link

Hi!!
I have been trying to install docker on my system with details:
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

I am following the instructions from https://docs.docker.com/engine/install/ubuntu/ for installation.

I am stuck at:
Command:
sudo apt-get install docker-ce docker-ce-cli containerd.io

Output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io

Kindly guide how can I go about it.
Thank you.

@tomshomelab
Copy link

This didnt work for me - get the same errror; Failed to fetch http://get.docker.io/ubuntu/dists/docker/InRelease 403 Forbidden

@tp1050
Copy link

tp1050 commented Apr 13, 2023

I have no idea what this madness is about, but it keeps infecting my instation every once in a while, what I did was to go this https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/ and downloaded the deb files manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment