Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639762 - app-emulation/docker-17.11.0 - containerd: flag provided but not defined: -metrics-interval
Summary: app-emulation/docker-17.11.0 - containerd: flag provided but not defined: -me...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tianon
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-04 12:58 UTC by Guillaume Ayoub
Modified: 2018-04-09 09:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Ayoub 2017-12-04 12:58:39 UTC
Docker 17.11 doesn't work, even "docker version" hangs. I get an error message in logs:

containerd: flag provided but not defined: -metrics-interval

Containerd version is 1.0.0_beta2_p20171019, and docker-runc is 1.0.0_rc4_p20170926.

I've tried to find this option in my configuration files, but didn't find it.
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2017-12-18 18:19:18 UTC
Check your /etc/docker/daemon.json and /etc/conf.d/docker for that metrics interval flag.
Comment 2 Lucie Anglade 2017-12-20 15:02:17 UTC
(In reply to Manuel Rüger from comment #1)
> Check your /etc/docker/daemon.json and /etc/conf.d/docker for that metrics
> interval flag.

/etc/docker/daemon.json seems to not exist and there is no metrics-interval flag in the other file.
Comment 3 Tianon 2017-12-20 15:12:55 UTC
This looks like a containerd version mismatch to me -- Docker is traditionally very picky about the precise commit of containerd used with a particular release (and they simply assume it supports certain flags, for example, so this is how that mismatch usually exhibits).  _Hopefully_ the new containerd 1.0 used in Docker 17.11+ (https://github.com/docker/docker-ce/releases/tag/v17.11.0-ce) will help with this, since containerd 1.x should stay compatible (post release-candidates, anyhow), but only time will tell.

IMO it'd be prudent for us to create separate "docker-containerd*" binaries using multiple tarballs in SRC_URI to pull in the exact commit of containerd that upstream bundled for a particular release (which is essentially what Debian is doing with https://packages.debian.org/sid/docker-containerd and what Gentoo is kind of doing already with "app-emulation/docker-runc").
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2018-04-09 09:36:19 UTC
17.11.0 isn't available in tree anymore, please try with a later version.