[Yocto][SC206] Add docker-ce package to image

I was able to build an image without adding any packages. After that, i’ve tried to build an image with docker-ce package, which I added to poky/qti-conf/local.conf.

image

After running the commands:

source build.sh
build-qti-robotics-med-image

I get this error:

I will provide the patch.
It might help you.

Hello,

I’ve added the patch to poky/meta-virtualization/recipes-containers/docker/files. Then I’ve updated the SRC_URI in file docker-ce_git.bb:

But when i tried to make rebake docker-ce I get the following error while running the
docker-ce_git.bb:do_patch task

ERROR: docker-ce-19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0 do_patch: Applying patch ‘0001-docker-support.patch’ on target directory ‘/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/git’
Command Error: ‘quilt --quiltrc /home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/recipe-sysroot-native/etc/quiltrc push’ exited with 0 Output:
Applying patch 0001-docker-support.patch
can’t find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|From ba68e4fbabf8a1a652ba47e91113f3075bd7ea4f Mon Sep 17 00:00:00 2001
|From: “heter.hou” heter.hou@quectel.com
|Date: Mon, 10 Jul 2023 09:58:24 +0800
|Subject: [PATCH] docker support
|
|—
| poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf | 2 ±
| src/kernel/msm-5.4/init/do_mounts.c | 2 ±
| 2 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf b/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf
|index 9d8d6efb38…780b5d5c8e 100755
|— a/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf

+++ b/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can’t find file to patch at input line 27
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/src/kernel/msm-5.4/init/do_mounts.c b/src/kernel/msm-5.4/init/do_mounts.c
|index 9634ecf374…a92147375f 100644
|— a/src/kernel/msm-5.4/init/do_mounts.c

+++ b/src/kernel/msm-5.4/init/do_mounts.c
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch 0001-docker-support.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/temp/log.do_patch.7933
ERROR: Task (/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/poky/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_patch) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 2085 tasks of which 2081 didn’t need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 13 seconds

Summary: 1 task failed:
/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/poky/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_patch
Summary: There were 141 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

From the log, it failed to apply the patch.
The format do not match.
Please check it by yourself.

What if you won’t change anything, just try

bitbake -c do_compile docker-ce

Will it succeed?