Docker not starting on latest Ubuntu Image

Hello,

Previously, I have successfully setup multiple instances on servers running docker containers and they worked perfectly until today.

After spinning up a server and trying to install docker gets me this error in the log

-- Logs begin at Sun 2018-08-12 17:28:51 UTC. --
Aug 13 01:57:32 localhost dockerd[3435]: time="2018-08-13T01:57:32.357778735Z" level=error msg="[graphdriver] prior storage driver devicemapper failed: loopback attach failed"
Aug 13 01:57:32 localhost dockerd[3435]: Error starting daemon: error initializing graphdriver: loopback attach failed
Aug 13 01:57:32 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 01:57:32 localhost systemd[1]: Failed to start Docker Application Container Engine.
Aug 13 01:57:32 localhost systemd[1]: docker.service: Unit entered failed state.
Aug 13 01:57:32 localhost systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 13 01:57:32 localhost systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Aug 13 01:57:32 localhost systemd[1]: Stopped Docker Application Container Engine.
Aug 13 01:57:32 localhost systemd[1]: docker.service: Start request repeated too quickly.
Aug 13 01:57:32 localhost systemd[1]: Failed to start Docker Application Container Engine.

I have searched and tried a couple of solutions but it seems the error has something to do with ubuntu kernel. I don't have much experience in that area. Any help will be appreciated.

Thanks

2 Replies

Are you using the Linode latest kernel or the distro-supplied Ubuntu kernel? Docker relies on a few kernel modules that our Linode kernel doesn't include.

Our Ubuntu 18.04 image is set up to boot with the Ubuntu-supplied kernel by default, using GRUB 2. I'd recommend double checking to make sure that the Configuration Profile has GRUB 2 set as the kernel under the boot settings. If it's not, try booting with GRUB 2 and then install Docker once more.

Be sure to update the software on your Linode before installing Docker:

apt-get update && apt-get upgrade

From there, if it's still not working, double check your Ubuntu kernel version:

uname -a

It looks like the latest version of the Ubuntu kernel for 18.04 is 4.15.18, which should be provided as part of the update and upgrade along with any other updates.

The problem was grub. I created a configuration profile with grub and rebooted. Docker ran successfully after that.

Thank you!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct