How to Install Docker On Ubuntu 18.04 Bionic Beaver - LinuxConfig.org


#1

Docker has revolutionized how web applications are hosted and servers are run. Docker containers allow server administrators to compartmentalize their applications like virtual machines, but containers are much lighter weight, are easier to manager, and add less overhead. Installing Docker on Ubuntu is very simple. Because Ubuntu is a popular choice for the cloud, the entire process has been streamlined to a science.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-docker-on-ubuntu-18-04-bionic-beaver

#2

ltdev22

I’m having 18.06.0-ce-dev installed. How can I uninstall it, and install the stable version instead now that is released? I have tried to run sudo apt-get remove docker docker-engine docker.io as per documentation, but I get this

Reading package lists... Done
Building dependency tree 
Reading state information... Done
Package 'docker-engine' is not installed, so not removed
Package 'docker' is not installed, so not removed
Package 'docker.io' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 7 not to upgrade.

#3

Ulises Layera

Not only this helped me by making it work, but also helped me to understand what’s going on.

Stable didn’t worked for me on May 24, 2018.

Thanks.


#4

David Drager

Hello,
Any one else is having problems adding Docker’s GPG key ? I’m running on virtual box Ubuntu 18.04
Thanks,
Dave


#5

ltdev22

Thank you, I have followed the steps from “Install Docker from the Official Docker Repository” section and works - I copied the nightly repository. When I run the $docker --version I get this output: Docker version 18.06.0-ce-dev, build 0e0adf0. I assume this is not a stable version, correct? Can’t I use the latest stable instead? Also you mention that latest stable is not available yet, but can I replace the current one with the stable one when this is out, and if so how to do it?


#6

Milan Divković

Warning can now safely be removed


#7

Lubos Rendek Mod -> Milan Divković

thanks for the notification. Stable docker version is not yet available but warning message removed.


#8

Sada Kubsad

It worked! Thanks Nick for putting this together.


#9

Nikolay

Hi, tried your tutorial, but it still doesn’t find docker “E: Package ‘docker-ce’ has no installation candidate”.

The repository is not available for 18.04.
E: The repository ‘https://download.docker.com/linux/ubuntu/ bionic Release’ does not have a Release file.

It looks like the article just tries to be up-to-date and posted it kind of in advance


#10

Lubos Rendek Mod -> Nikolay

I think you skipped some text. Especially the warning part!:slight_smile:


#11

Nikolay -> Lubos Rendek

No, I didn’t miss anything, when I run sudo apt-get update. I see that there are no releases for version 18.04 yet.

E: The repository ‘https://download.docker.com/ bionic Release’ does not have a Release file.

That is why I think the fake article was just written for users which will switch to 18.04 and will end up on this article in the future, but currently there is no release for 18.04.
Please, correct me if I am wrong.


#12

V. Adad -> Nikolay

Yes you did.

“WARNING: As of now, Bionic is not supported by this
repository. Make sure it is at the time you do this. If not, Artful can
work as a temporary substitute hence replace the above bionic keyword with artful. Next, you need to add Docker’s GPG key.”


#13

Lubos Rendek Mod -> V. Adad

Thanks…I just gave up…:slight_smile:


#14

Wolfgang -> Lubos Rendek

Might be better to put the warning above the line people will get wrong?
So that they might read it first, when following the instructions step by step?


#15

Rorschach -> Wolfgang

That would be too logical…


#16

Hsiao-Ting Wang -> Rorschach

For now (20180507), nightly is workable for bionic.
Edge & Stable are not available.


#17

I needed to add current user to docker group also sudo usermod -a -G docker $USER