* [meta-virtualization][PATCH] docker: enable docker.socket instead of docker.service
@ 2020-06-03 4:32 Dan Callaghan
2020-06-05 19:32 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Dan Callaghan @ 2020-06-03 4:32 UTC (permalink / raw)
To: meta-virtualization; +Cc: Dan Callaghan
The docker daemon supports systemd socket activation. If we enable
docker.socket (and not docker.service) then the daemon will be started
when it is first used.
Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
---
recipes-containers/docker/docker.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index 32d4a2e..4bcb409 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -49,7 +49,7 @@ PACKAGECONFIG[transient-config] = "transient-config"
inherit systemd update-rc.d
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
-SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service','',d)}"
+SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
INITSCRIPT_PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${PN}','',d)}"
--
2.25.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-virtualization][PATCH] docker: enable docker.socket instead of docker.service
2020-06-03 4:32 [meta-virtualization][PATCH] docker: enable docker.socket instead of docker.service Dan Callaghan
@ 2020-06-05 19:32 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2020-06-05 19:32 UTC (permalink / raw)
To: Dan Callaghan; +Cc: meta-virtualization
Looks fine to me.
Merged.
Bruce
In message: [meta-virtualization][PATCH] docker: enable docker.socket instead of docker.service
on 03/06/2020 Dan Callaghan wrote:
> The docker daemon supports systemd socket activation. If we enable
> docker.socket (and not docker.service) then the daemon will be started
> when it is first used.
>
> Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
> ---
> recipes-containers/docker/docker.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
> index 32d4a2e..4bcb409 100644
> --- a/recipes-containers/docker/docker.inc
> +++ b/recipes-containers/docker/docker.inc
> @@ -49,7 +49,7 @@ PACKAGECONFIG[transient-config] = "transient-config"
> inherit systemd update-rc.d
>
> SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
> -SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service','',d)}"
> +SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}"
> SYSTEMD_AUTO_ENABLE_${PN} = "enable"
>
> INITSCRIPT_PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${PN}','',d)}"
> --
> 2.25.4
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-05 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 4:32 [meta-virtualization][PATCH] docker: enable docker.socket instead of docker.service Dan Callaghan
2020-06-05 19:32 ` Bruce Ashfield
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.