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 <[email protected]> --- 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5382): https://lists.yoctoproject.org/g/meta-virtualization/message/5382 Mute This Topic: https://lists.yoctoproject.org/mt/74643998/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
