From: wolf <wolf@wolfsden.cz>
To: Fredrik Salomonsson <plattfot@posteo.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Anyone got distrobox working?
Date: Wed, 25 Oct 2023 13:34:45 +0200 [thread overview]
Message-ID: <ZTj9VQMwSVlMVR8H@ws> (raw)
In-Reply-To: <87zg071wmt.fsf@d2.com>
[-- Attachment #1: Type: text/plain, Size: 2359 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-10-25 11:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 22:30 Anyone got distrobox working? Fredrik Salomonsson
2023-10-25 11:34 ` wolf [this message]
2023-10-25 17:39 ` Fredrik Salomonsson
[not found] ` <86wmtcrxkz.fsf@riseup.net>
2024-01-06 3:59 ` Csepp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZTj9VQMwSVlMVR8H@ws \
--to=wolf@wolfsden.cz \
--cc=help-guix@gnu.org \
--cc=plattfot@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).