I installed both: podman and buildah using nix-env --install --prebuilt-only. There were some issues because I had to create a ${HOME}/.config/containers/registries.conf and ${HOME}/.config/containers/policy.json files manually (with some defaults), but after that, I still have the issue with Error: could not get runtime: default OCI runtime "runc" not found: invalid argument — and also some other error(s) related with conmon previously (but I don't have those anymore).
nix-env --install --prebuilt-only buildah podmannano "${HOME}/.config/containers/registries.conf"unqualified-search-registries = ["docker.io", "quay.io"]
nano "${HOME}/.config/containers/policy.json"{
"default": [{ "type": "reject" }],
"transports": {
"dir": {
"": [{ "type": "insecureAcceptAnything" }]
},
"docker": {
"docker.io": [{ "type": "insecureAcceptAnything" }]
}
}
}
podman versionPodman should display version accordingly but instead it will spit out: Error: could not get runtime: default OCI runtime "runc" not found: invalid argument.
Packages should install all required dependencies — by installing
conmonandruncpackages manually all the issues are gone.
[x80486@archbook:~/Workshop/erlang_cowboy]$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (42.36 MiB download, 185.86 MiB unpacked):
/nix/store/0kc0hbd3frb2l8kl5z41aj7n16kgkkj3-diffutils-3.7
/nix/store/4gd7i6ssh08vy9bfbh0i2vr5fzfbm83g-expand-response-params
/nix/store/4v6lzv3bd5vq4ka2qaqlfqs17s33x80n-patchelf-0.9
/nix/store/5fmpwabgb8pqcxw0yjfcr1y30mzn6c4j-findutils-4.7.0
/nix/store/8461s0pk7yyv1lwbq83vpy0n78kwagvx-gawk-5.1.0
/nix/store/al9wk2c1l2j6fdpclj4k9cnxyc4i0k3b-glibc-2.30-dev
/nix/store/aldflgb1kl2xq131dy680s21hlkv156n-stdenv-linux
/nix/store/bkfnf6i5a5ppkb4r21m5q01m417lpr4a-gcc-9.3.0
/nix/store/c7f8fldh41az6mfqh0rys77zd5lig09s-bash-interactive-4.4-p23-dev
/nix/store/ciiissahaqamycmccxqlkbdwabbwlgpc-bash-interactive-4.4-p23-man
/nix/store/dqzqridhid6n6ncw8f9fzqxh5ivm8fih-ed-1.16
/nix/store/jfic3552aibvlg8752hw6zvipi05ycvf-gnumake-4.2.1
/nix/store/klg7ribk7f834yb0hn1fxs6653wzlncb-binutils-2.31.1
/nix/store/lbcfr7fs6kn9mzygk0mv8mhp5x9csfyz-gcc-wrapper-9.3.0
/nix/store/qp7d1gbs4mi3agw653kdqll7n3dxyz1k-patch-2.7.6
/nix/store/qs4560fpmiymixlvbn7x44hnzsyqww7v-linux-headers-5.5
/nix/store/rgbj0waadh6nqfwzk95bkyrpb42mh3dr-nix-info
/nix/store/s9p20aq0kna2c6xxwrlvn7wrfkkxg72p-bash-interactive-4.4-p23-doc
/nix/store/vwjhm6sbp8gmgdaljgnnlhrksqysy6yp-bash-interactive-4.4-p23-info
/nix/store/x6rhz7a1gd6x9bjk5ya1dm2lylxk59fq-binutils-wrapper-2.31.1
/nix/store/y5kkj1p7h9g5gxag0zccry4m52na98vy-xz-5.2.5-bin
copying path '/nix/store/s9p20aq0kna2c6xxwrlvn7wrfkkxg72p-bash-interactive-4.4-p23-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/c7f8fldh41az6mfqh0rys77zd5lig09s-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/vwjhm6sbp8gmgdaljgnnlhrksqysy6yp-bash-interactive-4.4-p23-info' from 'https://cache.nixos.org'...
copying path '/nix/store/ciiissahaqamycmccxqlkbdwabbwlgpc-bash-interactive-4.4-p23-man' from 'https://cache.nixos.org'...
copying path '/nix/store/klg7ribk7f834yb0hn1fxs6653wzlncb-binutils-2.31.1' from 'https://cache.nixos.org'...
copying path '/nix/store/0kc0hbd3frb2l8kl5z41aj7n16kgkkj3-diffutils-3.7' from 'https://cache.nixos.org'...
copying path '/nix/store/dqzqridhid6n6ncw8f9fzqxh5ivm8fih-ed-1.16' from 'https://cache.nixos.org'...
copying path '/nix/store/4gd7i6ssh08vy9bfbh0i2vr5fzfbm83g-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/5fmpwabgb8pqcxw0yjfcr1y30mzn6c4j-findutils-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8461s0pk7yyv1lwbq83vpy0n78kwagvx-gawk-5.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/jfic3552aibvlg8752hw6zvipi05ycvf-gnumake-4.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/qs4560fpmiymixlvbn7x44hnzsyqww7v-linux-headers-5.5' from 'https://cache.nixos.org'...
copying path '/nix/store/rgbj0waadh6nqfwzk95bkyrpb42mh3dr-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/al9wk2c1l2j6fdpclj4k9cnxyc4i0k3b-glibc-2.30-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/qp7d1gbs4mi3agw653kdqll7n3dxyz1k-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/x6rhz7a1gd6x9bjk5ya1dm2lylxk59fq-binutils-wrapper-2.31.1' from 'https://cache.nixos.org'...
copying path '/nix/store/bkfnf6i5a5ppkb4r21m5q01m417lpr4a-gcc-9.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/4v6lzv3bd5vq4ka2qaqlfqs17s33x80n-patchelf-0.9' from 'https://cache.nixos.org'...
copying path '/nix/store/lbcfr7fs6kn9mzygk0mv8mhp5x9csfyz-gcc-wrapper-9.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/y5kkj1p7h9g5gxag0zccry4m52na98vy-xz-5.2.5-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/aldflgb1kl2xq131dy680s21hlkv156n-stdenv-linux' from 'https://cache.nixos.org'...
- system: `"x86_64-linux"`
- host os: `Linux 5.4.47-1-lts, Arch Linux, noversion`
- multi-user?: `no`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.6`
- channels(x80486): `"nixpkgs-20.09pre230446.a84cbb60f02"`
- nixpkgs: `/home/x80486/.nix-defexpr/channels/nixpkgs`
cc @NixOS/podman
nix-env --install podman-wrapper buildah-wrapper or nix-env --install -A nixpkgs.podman -A nixpkgs.buildah should install the wrappers that include the dependencies.
OK, that worked. I could swear I didn't see those wrappers when I did nix-env --query --available ".*(buildah|podman).*", but hey, I could have written that wrongly :roll_eyes:
Thanks for pointing those out. I think this is not an issue with the packages, but something I didn't know :man_shrugging:
Most helpful comment
nix-env --install podman-wrapper buildah-wrapperornix-env --install -A nixpkgs.podman -A nixpkgs.buildahshould install the wrappers that include the dependencies.