diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-03-13 18:35:54 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-03-13 18:38:18 +0000 |
commit | 2ea9f1593932b9ded5846e7ae1b0770b5cfdf8c7 (patch) | |
tree | 687493c5ff95cfb0d8a9683508c50bebf6154f2c | |
parent | 49127b1156fb2bad3a728369ed12d8fe980d8c21 (diff) | |
download | meta-virtualization-2ea9f1593932b9ded5846e7ae1b0770b5cfdf8c7.tar.gz |
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>
-rw-r--r-- | recipes-containers/docker/docker.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc index 4e0aa14f..3843f3b6 100644 --- a/recipes-containers/docker/docker.inc +++ b/recipes-containers/docker/docker.inc | |||
@@ -125,7 +125,7 @@ do_install() { | |||
125 | 125 | ||
126 | 126 | ||
127 | SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" | 127 | SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" |
128 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}" | 128 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service docker.socket','',d)}" |
129 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | 129 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" |
130 | 130 | ||
131 | # inverted logic warning. We ony want the sysvinit init to be installed if systemd | 131 | # inverted logic warning. We ony want the sysvinit init to be installed if systemd |