docker: enable docker.service by default

Some platforms are seeing long (2+ minute) start times to
get the docker daemon initialized.

This doesn't happen when the daemon is started on boot.

To avoid this usability issue, we enable both the socket
and service automatically.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2025-03-13 18:35:54 +00:00
parent 49127b1156
commit 2ea9f15939

View File

@ -125,7 +125,7 @@ do_install() {
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}"
SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service docker.socket','',d)}"
SYSTEMD_AUTO_ENABLE:${PN} = "enable"
# inverted logic warning. We ony want the sysvinit init to be installed if systemd