All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: David Antliff <David.Antliff@aviatnet.com>
Cc: "meta-virtualization@yoctoproject.org"
	<meta-virtualization@yoctoproject.org>
Subject: Re: Docker init script possibly uses wrong invocation?
Date: Thu, 2 Aug 2018 23:41:53 -0300	[thread overview]
Message-ID: <CADkTA4McPwViJsYLZVo4CHV5s2xYU_1PcG0oLGZcDqzmFeMR-A@mail.gmail.com> (raw)
In-Reply-To: <1533182670806.88977@Aviatnet.com>

On Thu, Aug 2, 2018 at 1:04 AM, David Antliff
<David.Antliff@aviatnet.com> wrote:
> I've installed the "docker" (docker_git.bb) recipe in my ARM64 yocto image,
> from meta-virtualization 1e67a44 (24 July).
>
>
> I note that it installed /etc/init.d/docker.init, however this fails to
> start the daemon.
>
>
> The script runs `/usr/bin/docker daemon ...` however this command is not
> recognised by this program:
>
>
> # /usr/bin/docker daemon
> docker: 'daemon' is not a docker command.
>
> Instead, /usr/bin/dockerd run manually seems to do something more useful:
> # /usr/bin/dockerd
> INFO[2018-08-02T04:05:04.144036840Z] libcontainerd: started new
> docker-containerd process  pid=4643
> INFO[0000] starting containerd                           module=containerd
> revision=cfd04396dc68220d1cecbe686a6cc3aa5ce3667c.m version=v1.0.2.m
> ...
>
> I've noticed that docker.service also uses this invocation:
>
> https://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/recipes-containers/docker/files/docker.service
>
> This makes me wonder if I've misconfigured something, or am I unlucky in my
> timing such that docker-from-git has changed its behaviour in this area very
> recently?

I can't say that I've tested the sysvinit version of docker for quite
some time, so it very well could have some bitrot.

I do run the systemd version though, and haven't been having any issues.

Taking a look at things, I can see that yes, it should be dockerd and
the sysvinit variant has rotted. The confusion around the systemd one
is that the service file in the layer is no longer used, and is also
out of date. We use the docker.service file from the source repo
itself, and it has the correct daemon startup.

Did you want to submit a patch to update the sysvinit startup script ?

I'll cleanup the invalid/old systemd one, but since you are in a
position to test the sysvinit one, it would be better if you could do
it.

Cheers,

Bruce

>
> --
> David.
>
>
>
>
>
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


  reply	other threads:[~2018-08-03  2:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-02  4:04 Docker init script possibly uses wrong invocation? David Antliff
2018-08-03  2:41 ` Bruce Ashfield [this message]
2018-08-03  2:47   ` EXTERNAL: " David Antliff

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=CADkTA4McPwViJsYLZVo4CHV5s2xYU_1PcG0oLGZcDqzmFeMR-A@mail.gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=David.Antliff@aviatnet.com \
    --cc=meta-virtualization@yoctoproject.org \
    /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.
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.