From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#34333: Docker daemon failing to start on boot Date: Mon, 18 Mar 2019 11:53:03 +0100 Message-ID: <20190318115303.2c543d1d@scratchpost.org> References: <26bbaae65fb9ab18036684e9f676ac1e@adair.io> <87pns2vtaz.fsf@gnu.org> <20190211114651.2b32e555@scratchpost.org> <20190211183155.30861768@scratchpost.org> <8a67633984fd5547e69b09fff29223ba@adair.io> <20190212184517.77edfb58@scratchpost.org> <87imx5gvth.fsf@adair.io> <20190227165327.72fc918e@alma-ubu> <20190227163121.GA17110@jurong> <87pnrbotsj.fsf@adair.io> <20190301130932.GA1867@jurong> <20190301144324.75b81902@alma-ubu> <87d0na3dqo.fsf@adair.io> <20190301185944.550d0ee7@scratchpost.org> <87imwpeqhk.fsf@adair.io> <20190312204704.1d74475a@scratchpost.org> <87pnqoh46g.fsf@adair.io> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/V5.mcTZ3hqJL14dcKo22Uum"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5pu8-0007Zt-TE for bug-guix@gnu.org; Mon, 18 Mar 2019 06:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5pu6-0005Jc-NZ for bug-guix@gnu.org; Mon, 18 Mar 2019 06:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h5pu6-0005JW-Bc for bug-guix@gnu.org; Mon, 18 Mar 2019 06:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h5pu6-0003IU-5a for bug-guix@gnu.org; Mon, 18 Mar 2019 06:54:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87pnqoh46g.fsf@adair.io> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Allan Adair Cc: 34333@debbugs.gnu.org --Sig_/V5.mcTZ3hqJL14dcKo22Uum Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 :=3D os.Open("/proc/filesystems") if err !=3D nil { return err } defer f.Close() s :=3D bufio.NewScanner(f) for s.Scan() { if s.Text() =3D=3D "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--l= oading 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 operatin= g-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 thin= g (by udev, or just by using it etc). =20 In this case, they do if err :=3D mount("overlay", mountTarget, "overlay", 0, mountData);= err !=3D nil { later on. And that's how it should have been detecting it, too. --Sig_/V5.mcTZ3hqJL14dcKo22Uum Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlyPeI8ACgkQ5xo1VCww uqVpLwf+JsDtFRDttC069P7dgrlI92OuSIS3e3ZQ3aNd0zxHROqJfLsh6uliPEWv yV5mt5y6DzVkEI7BhP+f2pPTNKtU7adcc96L0PcKP3NfRzlvIKI6+YJcpbpgX4xL XPtPSNHl2c11jsnu4xu/eYMrMF783behA8Xy6cmWiJXpqdaCBQQFmOk7uNeuNcEK +cg6hjqSRwsJ78nJfCD/isqi9Fk1Z08tn24FC4uc0KW6YO4MmbHC7xxfyE+/euJB 8hRg1bIJqv8knVCtoUkowVD+VfnpEWBvMfLa4Chv8rwTWjeMHEdYfZ84yCwT5VAx If3XDU6YQP+k8qP3c5qeo7M5tjjNwg== =Fg15 -----END PGP SIGNATURE----- --Sig_/V5.mcTZ3hqJL14dcKo22Uum--