Skip to contentSkip to conversation

Inquiry Regarding Docker Execution Issue in overlayfs Rootfs Configuration

DISCUSSION [email protected] 2 participants 4 messages Jul 12, 2024 – Aug 12, 2024

lore
Share & tools
lore
#0 lore raw

Dear Yocto developers,

I hope this message finds you well. My name is ChangHyun Woo, and I am currently engaged in developing Embedded Linux devices.

I have been using the recipe from ' https://github.com/marcusfolkesson/meta-readonly-rootfs-overlay ' to configure the rootfs. However, I have encountered an issue: after integrating Docker, I discovered that 'docker exec' does not function within the overlayfs rootfs.

Despite extensive searches across various platforms, I have been unable to find a solution, prompting me to reach out to you for assistance. If I have contacted the wrong place, I kindly ask for guidance on where to direct my inquiry.

Furthermore, if anyone has encountered and resolved a similar issue, I would greatly appreciate any advice or solutions you could provide.

Thank you for your attention to this matter.

Best regards,
ChangHyun Woo

#1 lore raw

Hey ChangHyun,
Sorry for the late response. Which modules do you use for overlayfs?

If you use any of the bbclasses, I recall I had to switch them off, because as for now they can't handle a container. But I would be glad if you have a patch to extend the functionality.

Regards,
Slava

Quoted 35 lines · On Fri, Jul 12, 2024, 07:57 chwoo via lists.yoctoproject.org <chwoo=…

Dear Yocto developers,

I hope this message finds you well. My name is ChangHyun Woo, and I am currently engaged in developing Embedded Linux devices.

I have been using the recipe from '
https://github.com/marcusfolkesson/meta-readonly-rootfs-overlay' to configure the rootfs. However, I have encountered an issue: after integrating Docker, I discovered that 'docker exec' does not function within the overlayfs rootfs.

Despite extensive searches across various platforms, I have been unable to find a solution, prompting me to reach out to you for assistance. If I have contacted the wrong place, I kindly ask for guidance on where to direct my inquiry.

Furthermore, if anyone has encountered and resolved a similar issue, I would greatly appreciate any advice or solutions you could provide.

Thank you for your attention to this matter.

Best regards,
ChangHyun Woo

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

#2 lore raw

Dear Slava,

Thank you for your reply. However, there are a few points I don't quite understand.

I am using the 'initscripts-readonly-rootfs-overlay_1.0.bb' recipe from the 'meta-readonly-rootfs-overlay' layer.

When you asked about modules, were you referring to which recipe I'm using?

Which bbclasses should be turned off to handle containers?

Thank you.

Best regards,

ChangHyun Woo

#3 lore raw

Hey ChangHyun,
I was not aware of this layer. I guess you better ask the maintainer directly then.

When I was answering I referred to the solution currently present in openembedded-core layer, in particular:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initrdscripts
https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/overlayfs.bbclass
https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/overlayfs-etc.bbclass

What I meant is that container support was not fully/properly tested with the aforementioned classes yet.

Regards,
Slava

Quoted 17 lines · ChangHyun Woo via Lists.Yoctoproject.Org

Dear Slava,

Thank you for your reply. However, there are a few points I don't quite understand.

I am using the 'initscripts-readonly-rootfs-overlay_1.0.bb' recipe from the 'meta-readonly-rootfs-overlay' layer.

When you asked about modules, were you referring to which recipe I'm using?

Which bbclasses should be turned off to handle containers?

Thank you.

Best regards,

ChangHyun Woo