On 2023-10-24 22:30:34 +0000, Fredrik Salomonsson wrote: > Hi, > > I noticed that guix has [distrobox][0] packaged but it does not seem to > work. > > ```sh > $ guix shell distrobox -- distrobox create -i ubuntu:22.04 > Image ubuntu:22.04 not found. > Do you want to pull the image now? [Y/n]: > Error: short-name "ubuntu:22.04" did not resolve to an alias and no containers-registries.conf(5) was found > ``` > > ```sh > guix shell distrobox -- distrobox create -i docker.io/library/ubuntu:22.04 > Image docker.io/library/ubuntu:22.04 not found. > Do you want to pull the image now? [Y/n]: > Error: open /etc/containers/policy.json: no such file or directory > ``` > > From what I understand I need to properly setup podman with > /etc/containers populated with the right configs. I've looked around > but I cannot find any docs or services that allows me to do that. > Checked the mailing and IRC archives but could not find any useful > information. Apart from maybe podman does not work on guix. Podman does work, but there is no built in service to configure it correctly. Snippet from my system configuration: (simple-service 'subugid-config etc-service-type `(("subuid" ,(plain-file "subuid" "wolf:100000:65536\n")) ("subgid" ,(plain-file "subgid" "wolf:100000:65536\n")))) (simple-service 'containers etc-service-type `(("containers/storage.conf" ,(plain-file "containers-storage.conf" "[storage]\ndriver = \"btrfs\"\n")) ("containers/policy.json" ,(local-file "files/policy.json")))) And files/policy.json: { "default": [ { "type": "insecureAcceptAnything" } ], "transports": { "docker-daemon": { "": [{"type":"insecureAcceptAnything"}] } } } After that, guix shell podman -- podman run --rm hello-world . > > Has anyone got distrobox working and if so how? No idea about distrobox, but the above should get the podman working. > > Thanks > > [0] https://distrobox.it/ > -- > s/Fred[re]+i[ck]+/Fredrik/g > T. -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.