Add basic root toolbox script for rootless nerdctl #3130
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version of coreos toolbox, using nerdctl instead of systemd.
Uses fedora by default for the toolbox, it can be configured.
Added for a comparison with the
systemd-nspawn
version:https://github.com/afbjorklund/systemd-toolbox (from coreos)
Issue #3107
Note: these are just small shell scripts, and not real programs.
The default image is read-write, so it doesn't really need a toolbox.
When running a read-only OS, you need one to install your tools in...
But when running
lima
you could just as well install them on the VM.This allows you to run
toolbox.lima
and leave the system untouched.If it would be needed for system maintenance, it needs
sudo nerdctl
.Currently it is root on the inside, but still user on the outside (instance)
Running as the user with a home directory mount is better off as a program.
Something like toolbx or distrobox, but with support for
nerdctl
as well?