Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install: Optionally use host mounted /var/lib/containers #286

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

cgwalters
Copy link
Collaborator

I just keep hitting the host skopeo requirement in corner cases; it's annoying because otherwise the container is self-sufficient. Change our installation instructions to add a /var/lib/containers bind mount.

For the time being of course we continue to support forking off skopeo on the host.

One thing I still want to investigate is dropping some requirements here and switch to dynamically setting up the mount points inside the container as is mentioned in https://brauner.io/2023/02/28/mounting-into-mount-namespaces.html but this currently requires relatively new host kernels.

As far as test coverage, this changes the Github Action that uses ubuntu and needed to build a newer skopeo to stop doing that, and in fact we explicitly remove skopeo to verify it's not being used in the install process.

I didn't change the other install tests to verify they keep working.

Closes: #81

I just keep hitting the host skopeo requirement in corner cases;
it's annoying because *otherwise* the container is self-sufficient.
Change our installation instructions to add a `/var/lib/containers`
bind mount.

For the time being of course we continue to support forking off
`skopeo` on the host.

One thing I still want to investigate is dropping some requirements
here and switch to *dynamically* setting up the mount points
inside the container as is mentioned in https://brauner.io/2023/02/28/mounting-into-mount-namespaces.html
but this currently requires relatively new host kernels.

As far as test coverage, this changes the Github Action that
uses ubuntu and needed to build a newer skopeo to stop doing
that, and in fact we explicitly *remove* skopeo to verify
it's not being used in the install process.

I didn't change the other install tests to verify they keep
working.

Closes: containers#81
Signed-off-by: Colin Walters <[email protected]>
@github-actions github-actions bot added documentation Improvements or additions to documentation area/install Issues related to `bootc install` labels Jan 26, 2024
@jeckersb jeckersb self-requested a review January 29, 2024 17:13
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeckersb jeckersb merged commit 2ef5b3d into containers:main Jan 30, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Issues related to `bootc install` documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop host requirement on skopeo
3 participants