alexpdp7 / cmdainer

Tries to make it easy to run commands from container images.
4 stars 1 forks source link

thread 'main' panicked error at execution #233

Open notklaatu opened 1 year ago

notklaatu commented 1 year ago

I'm on Fedora Silverblue 38, attempting to use cmdainer for flamel.

After navigating to a course dir, into guides, I execute flamel sg and get this error:

$ flamel sg
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:180:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ RUST_BACKTRACE=1 flamel sg
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:180:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I am not in any toolbox environment.

alexpdp7 commented 1 year ago

This sounds like you don't have neither podman nor docker in your path. Do I know you? My GitHub account has my real name, so you can locate me in our employer's Google Chat (or Slack) and we can troubleshoot).

(That'd be tomorrow, because it's getting late here. But now I'm actually intrigued...)

notklaatu commented 1 year ago

Podman is in my "normal" path but maybe I'm missing a subtly of either Silverblue or containers.

Here's proof:

$ flamel
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:180:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1015 [moloch 10.0.1.172] [/var/home/skenlon/Documents/RH104/guides] [ workspace-seth][🐍 3.11.4] [☕ ]
$ which podman
/usr/bin/podman

I'm in New Zealand, but I'll contact you at work tomorrow, thanks.

alexpdp7 commented 1 year ago

After some debugging, it seems that the which library is failing to find podman in the path, here and here, and thus cmdainer is trying to execute docker instead of podman. As docker is not available either, this fails.