Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@Varvara-Gornostaeva

This comment has been minimized.

Copy link

@Varvara-Gornostaeva Varvara-Gornostaeva commented Nov 1, 2017

Thank you! C:

@aaronk1

This comment has been minimized.

Copy link

@aaronk1 aaronk1 commented Nov 6, 2017

Thanks. Works, whereas the docker.com documentation does not (although they don't show 17.10 as supported so maybe they haven't updated their documentation). Much appreciated.

Fixes this error:
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

@noudAndi

This comment has been minimized.

Copy link

@noudAndi noudAndi commented Nov 6, 2017

Thanks!! 👍

@Arxcis

This comment has been minimized.

Copy link

@Arxcis Arxcis commented Nov 7, 2017

Great, just what I needed ;)

@TimDorand

This comment has been minimized.

Copy link

@TimDorand TimDorand commented Nov 7, 2017

artful has been released the 2th of november 2017.
Download Docker

@w32blaster

This comment has been minimized.

Copy link

@w32blaster w32blaster commented Nov 8, 2017

that works for me, thanks 👍

@AevaOnline

This comment has been minimized.

Copy link

@AevaOnline AevaOnline commented Nov 9, 2017

For me, after installation, the docker service fails to start. This could be due to previous installs (I recently updated from 16.04 to 17.10 and reinstalled docker). In case others encounter this error:

Nov 09 13:06:27 DV-X270 systemd[1]: Starting Docker Application Container Engine...                                                
Nov 09 13:06:27 DV-X270 docker[11520]: `docker daemon` is not supported on Linux. Please run `dockerd` directly
Nov 09 13:06:27 DV-X270 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE

The fix is pretty simple:

sudo sed -i 's/docker daemon/dockerd/' /etc/systemd/system/docker.service
sudo systemctl daemon-reload
sudo service docker start
@punkdata

This comment has been minimized.

Copy link

@punkdata punkdata commented Nov 10, 2017

Gracias 👍

@utkarsh27a

This comment has been minimized.

Copy link

@utkarsh27a utkarsh27a commented Nov 17, 2017

Great job ty

@adityakmr

This comment has been minimized.

Copy link

@adityakmr adityakmr commented Nov 19, 2017

its not working how can i solve this error

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

@akhilesh-k

This comment has been minimized.

Copy link

@akhilesh-k akhilesh-k commented Nov 20, 2017

Dhanyawaad :)

@dmitrytulba

This comment has been minimized.

Copy link

@dmitrytulba dmitrytulba commented Nov 28, 2017

Thanks!

@vingorius

This comment has been minimized.

Copy link

@vingorius vingorius commented Nov 29, 2017

Thank you!

@DamirIlyasov

This comment has been minimized.

Copy link

@DamirIlyasov DamirIlyasov commented Dec 4, 2017

Saved a lot of time, thank you!

@jdebarizon

This comment has been minimized.

Copy link

@jdebarizon jdebarizon commented Dec 5, 2017

Awesome!
Went thru the same issue on installing Oracle Database on an older Docker version.

Here's the error:
oracle/docker-images#648
The --start-period option for HEALTHCHECK got introduced in Docker 17.05-ce. Please upgrade to the latest Docker version, 17.06-ce on OL7.

After the Docker uninstall, I got the error below by following Docker standard installation:

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

This will fix the issue and now Oracle 12c database installation finishes successfully.

Thanks!

@AmineAITBENLAASSEL

This comment has been minimized.

Copy link

@AmineAITBENLAASSEL AmineAITBENLAASSEL commented Dec 5, 2017

thanks 👍 💯

@itlpps

This comment has been minimized.

Copy link

@itlpps itlpps commented Dec 6, 2017

Nice bro!

@btalanski

This comment has been minimized.

Copy link

@btalanski btalanski commented Dec 7, 2017

Great stuff

@teaddict

This comment has been minimized.

Copy link

@teaddict teaddict commented Dec 7, 2017

works very well with ubuntu artful!

@sagar-rout

This comment has been minimized.

Copy link

@sagar-rout sagar-rout commented Dec 7, 2017

Thanks 👍

@kru

This comment has been minimized.

Copy link

@kru kru commented Dec 8, 2017

Thanks!

@katchoua

This comment has been minimized.

Copy link

@katchoua katchoua commented Dec 10, 2017

Cool, that works well 👍

@Adaline1009

This comment has been minimized.

Copy link

@Adaline1009 Adaline1009 commented Dec 11, 2017

Thank you!

@indradhanush

This comment has been minimized.

Copy link

@indradhanush indradhanush commented Dec 12, 2017

Thank you! :)

@kakulukia

This comment has been minimized.

Copy link

@kakulukia kakulukia commented Dec 15, 2017

This should be mentioned in the official docs tho: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/

@sunilsoni

This comment has been minimized.

Copy link

@sunilsoni sunilsoni commented Dec 18, 2017

Thank you! Helped me.

@tgabi333

This comment has been minimized.

Copy link

@tgabi333 tgabi333 commented Dec 20, 2017

Only Docker 17.11 and newer are available for Ubuntu 17.10 , you have to use edge release channel at least until 17.12 stable is released

@kaminskypavel

This comment has been minimized.

Copy link

@kaminskypavel kaminskypavel commented Dec 24, 2017

Thanks!

@brahmanggi

This comment has been minimized.

Copy link

@brahmanggi brahmanggi commented Dec 25, 2017

Thanks!!

@rad8329

This comment has been minimized.

Copy link

@rad8329 rad8329 commented Dec 28, 2017

Gracias!

@iSanchezDev

This comment has been minimized.

Copy link

@iSanchezDev iSanchezDev commented Jan 19, 2018

It worked, thank you!

@LisaNYC

This comment has been minimized.

Copy link

@LisaNYC LisaNYC commented Jan 25, 2018

Please help! I cannot get docker running:
lisa@sam-PowerEdge-T620:~$ systemctl status docker
● docker.service
Loaded: loaded (/etc/systemd/system/docker.service; static; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Active: failed (Result: exit-code) since Wed 2018-01-24 04:27:16 CST; 4min 41s ago
Process: 13275 ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock (co
Main PID: 13275 (code=exited, status=1/FAILURE)

@LisaNYC

This comment has been minimized.

Copy link

@LisaNYC LisaNYC commented Jan 25, 2018

I am running ubuntu 17.10, tried both stable and edge Dockers

@liaozd

This comment has been minimized.

Copy link

@liaozd liaozd commented Jan 28, 2018

+1 for this

 sudo sed -i 's/docker daemon/dockerd/' /etc/systemd/system/docker.service
@the-great-abby

This comment has been minimized.

Copy link

@the-great-abby the-great-abby commented Feb 11, 2018

+1

@gdelca5

This comment has been minimized.

Copy link

@gdelca5 gdelca5 commented Feb 27, 2018

Thanks !

@Boscoand

This comment has been minimized.

Copy link

@Boscoand Boscoand commented Mar 1, 2018

Thanks!

@zideano

This comment has been minimized.

Copy link

@zideano zideano commented Mar 18, 2018

Great, this works for me.

@devwal

This comment has been minimized.

Copy link

@devwal devwal commented Mar 27, 2018

Thank you!

@keNzi

This comment has been minimized.

Copy link

@keNzi keNzi commented Mar 28, 2018

Thanks! :)

@inosjarv

This comment has been minimized.

Copy link

@inosjarv inosjarv commented Apr 8, 2018

sudo apt-get update is showing this error:

"'http://repo.mongodb.org/apt/ubuntu artful/mongodb-org/3.2 Release' does not have a Release file."

what can I do??

@meloBerati

This comment has been minimized.

Copy link

@meloBerati meloBerati commented Apr 18, 2018

E: Package 'docker-ce' has no installation candidate

@tmplinshi

This comment has been minimized.

Copy link

@tmplinshi tmplinshi commented Apr 23, 2018

Thanks

@momilc

This comment has been minimized.

Copy link

@momilc momilc commented Apr 27, 2018

Great ! Thank you !

@var414n

This comment has been minimized.

Copy link

@var414n var414n commented May 17, 2018

Thanks

@Asdafers

This comment has been minimized.

Copy link

@Asdafers Asdafers commented Jun 11, 2018

Getting "The repository 'https://download.docker.com/linux/ubuntu artful Release' no longer has a Release file."

Any ideas what's gone haywire in my setup?

@whoan

This comment has been minimized.

Copy link

@whoan 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

This comment has been minimized.

Copy link

@aditi17142 aditi17142 commented Mar 3, 2021

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.

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