-
Notifications
You must be signed in to change notification settings - Fork 69
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
Enabling other container tools then docker #24
base: main
Are you sure you want to change the base?
Conversation
This supports providing a specific env variable to override the usage of docker. Tested with Podman, should also work with finch. Basically any drop-in replacement of Docker would work
Also I found there was a typo in your latest script @Guiorgy |
Podman remove the --latest -l option from their ps call. Reverting of using just -n 1 for the latest created container.
Any update on the review? |
We probably should wait for someone to test this on Finch just in case before considering merging, less we want a repeat of |
I can try this one on finch, have it running as well. I'll need to plan this in, so maybe 1-2 days. |
So, was a bit faster. It does not run nicely, however the error is weird, as it does not read the redlink before it starts a container, it did no occur with Podman, which is strange, as it should have fired an error. Anyway, if I comment out the readlink portion, it complains about relative paths, but as nerdctl can use that, it works: I will continue to test tomorrow again with Podman. Something seems amiss in the directory resolution of fulldirname(). |
@Guiorgy It seems that the readlink call with option -m is not supported, and it looks like doing it mit -f solves the problem. However in the latest OSX versions, this seems to be rectified. |
readline -m is not recognized, switch to -f seems to work. /usr/bin bash can on macOS systems usually point to the system shell. As this I quite old, and you have a newer shell, it's better to use the first bash provided in Path, which is mostly newer.
@Guiorgy : I did with the latest version do a test with Finch and Podman on macOS 14.7.1 on a MacBook Pro M1 Pro. |
Added Handling instructions and example inside for multi tool usage
From man pages:
Edit: Also, please refrain from modifications that fall outside the intent of this PR, like Edit:
Not familiar with either, have never used them. I'll try them if I have the time next weekend. |
I created a new PR here: #27 |
I find this script highly useful. As we are also using other docker cmd capable tools out there, like Podman or Finch, I want to adapt the script to be able to supply a docker/oci capable tool here.
I tested with docker the import export. However the save / load does not yet work, as the output of "$CONTAINER ps -lq" exists only in docker and Podman has others.
Still the base is working.