From: Ming Liu <[email protected]>

Signed-off-by: Ming Liu <[email protected]>
---
 recipes-containers/docker/docker.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-containers/docker/docker.inc 
b/recipes-containers/docker/docker.inc
index 48f7d3ec..53cdc703 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -40,6 +40,7 @@ inherit systemd update-rc.d
 inherit go
 inherit goarch
 inherit pkgconfig
+inherit bash-completion
 
 do_configure[noexec] = "1"
 
@@ -122,8 +123,10 @@ do_install() {
 
        mkdir -p ${D}${datadir}/docker/
        install -m 0755 ${S}/src/import/contrib/check-config.sh 
${D}${datadir}/docker/
-}
 
+       install -d ${D}${datadir}/bash-completion/completions
+       install -m 0644 ${S}/cli/contrib/completion/bash/docker 
${D}${datadir}/bash-completion/completions
+}
 
 SYSTEMD_PACKAGES = 
"${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
 SYSTEMD_SERVICE:${PN} = 
"${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8530): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8530
Mute This Topic: https://lists.yoctoproject.org/mt/103603277/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to