all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Allan Adair <allan@adair.io>
Cc: 34333@debbugs.gnu.org
Subject: bug#34333: Docker daemon failing to start on boot
Date: Mon, 18 Mar 2019 11:53:03 +0100	[thread overview]
Message-ID: <20190318115303.2c543d1d@scratchpost.org> (raw)
In-Reply-To: <87pnqoh46g.fsf@adair.io>

[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]

Hi Allan,

thanks for the logs!

I've found the problem now.

daemon/graphdriver/overlay2/overlay.go:

func supportsOverlay() error {
        // We can try to modprobe overlay first before looking at
        // proc/filesystems for when overlay is supported
        exec.Command("modprobe", "overlay").Run()

        f, err := os.Open("/proc/filesystems")
        if err != nil {
                return err
        }
        defer f.Close()

        s := bufio.NewScanner(f)
        for s.Scan() {
                if s.Text() == "nodev\toverlay" {
                        return nil
                }
        }
        logrus.WithField("storage-driver", "overlay2").Error("'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.")
        return graphdriver.ErrNotSupported
}

We don't load "overlay" explicitly.  The above is some weird contraption--loading kernel modules from random user space programs.  Seriously?

And I suspect that modprobe is not found in your system profile.

As a workaround, try adding "kmod" to the list of packages in your operating-system in your system configuration and reconfigure.

But the real fix is for Docker to stop doing this weird thing in the first place.  Nowadays, modules are autoloaded when someone is accessing the thing (by udev, or just by using it etc).  

In this case, they do

        if err := mount("overlay", mountTarget, "overlay", 0, mountData); err != nil {

later on.  And that's how it should have been detecting it, too.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2019-03-18 10:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05 11:29 bug#34333: Docker daemon failing to start on boot allan
2019-02-08 21:55 ` Ludovic Courtès
2019-02-11 10:46   ` Danny Milosavljevic
2019-02-11 13:11     ` Allan Adair
2019-02-11 14:24       ` Danny Milosavljevic
2019-02-11 17:31     ` Danny Milosavljevic
2019-02-12  9:05       ` Allan Adair
2019-02-12 17:45         ` Danny Milosavljevic
2019-02-27 14:17           ` Allan Adair
2019-02-27 15:53             ` Björn Höfling
2019-02-27 16:31               ` Andreas Enge
2019-03-01  8:58                 ` Allan Adair
2019-03-01 13:09                   ` Andreas Enge
2019-03-01 13:43                     ` Björn Höfling
2019-03-01 13:50                       ` Allan Adair
2019-03-01 18:00                         ` Danny Milosavljevic
2019-03-11  8:59                           ` Allan Adair
2019-03-12 19:47                             ` Danny Milosavljevic
2019-03-18 10:23                               ` Allan Adair
2019-03-18 10:53                                 ` Danny Milosavljevic [this message]
2019-03-18 11:05                                   ` Danny Milosavljevic
2019-03-18 13:47                                   ` Allan Adair
2019-03-25 21:46                                     ` Danny Milosavljevic
2019-03-26 14:15                                       ` Allan Adair

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190318115303.2c543d1d@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=34333@debbugs.gnu.org \
    --cc=allan@adair.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.