Building CBL-Mariner on Ubuntu docker container #4816
Unanswered
sunilchintu2468
asked this question in
Q&A
Replies: 2 comments
-
I'm not sure building image from a container is supported or easy. CBL-Mariner toolkit uses raw disk mechanism to build images which is, as far as I can remember, is not allowed in "regular" container. Making the container privileged might help though. |
Beta Was this translation helpful? Give feedback.
0 replies
-
More details with respect to a similar discussion: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to build Mariner 2.0-stable on an Ubuntu docker container (started by root user with --privileged mode) by following the steps mentioned here.
The build failed with the following error:

Then I tried to set up a chroot directory and export the path to the CHROOT_DIR env variable:

The build process proceeded and failed after an hour with some more errors:

To avoid this, I created a lock file manually, not sure whether it has any other impacts:

Build proceeded further and failed again :

Not understanding the root cause of these failures, can anybody please help?
Beta Was this translation helpful? Give feedback.
All reactions