Open DrPyser opened 1 year ago
When using --root
option I don't get those errors and I can enter the containers, but I get flaky behavior on the first runs of the command:
❯ .nix-profile/bin/distrobox create -r --volume /tmp/.X11-unix:/tmp/.X11-unix --image quay.io/toolbx-images/archlinux-toolbox
Image quay.io/toolbx-images/archlinux-toolbox not found.
Do you want to pull the image now? [Y/n]: Y
Using default tag: latest
latest: Pulling from toolbx-images/archlinux-toolbox
7db0a613b381: Pull complete
0549be721c1e: Pull complete
f290565f6df2: Pull complete
935179f20949: Pull complete
2ae6caf89940: Pull complete
229389866c44: Pull complete
42444ba2ffcc: Pull complete
Digest: sha256:ba6d213de74d6573a70de0a74eb35ec65c3ee979a3c82c96bea775a3121dc9fe
Status: Downloaded newer image for quay.io/toolbx-images/archlinux-toolbox:latest
quay.io/toolbx-images/archlinux-toolbox:latest
Creating 'archlinux-toolbox' using image quay.io/toolbx-images/archlinux-toolbox [ OK ]
Distrobox 'archlinux-toolbox' successfully created.
To enter, run:
distrobox enter --root archlinux-toolbox
❯ distrobox enter --root archlinux-toolbox
Container archlinux-toolbox is not running.
Starting container archlinux-toolbox
run this command to follow along:
sudo docker logs -f archlinux-toolbox
Starting container... ⏎
drpyser@drpyser-thinkpad[10.0.0.48] in flow.py main 「𝚫 ✔ 📁 」
❌1 ❯ distrobox enter --root archlinux-toolbox
unable to find user drpyser: no matching entries in passwd file
126 ❯ distrobox enter --root archlinux-toolbox
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
drpyser@archlinux-toolbox ~/p/c/flow.py (main)>
So it takes some time/a few tries. But I can't still start X11 app from the container.
I've been trying to get systemd in the container to work without success, if you don't need systemd, using the command below should successfully create an archlinux
use podman, docker don't work!
~ via v18.18.0 via 🐍 v3.9.18
❯ cat ~/.config/distrobox/distrobox.conf
container_manager="podman"
container_additional_volumes="/etc/static/profiles/per-user:/etc/profiles/per-user:ro"
distrobox create --image quay.io/toolbx-images/archlinux-toolbox:latest --name archlinux --volume /etc/static/profiles/per-user:/etc/profiles/per-user:ro --verbose
with systemd
distrobox create --image archlinux:latest --name archlinux --additional-packages "systemd" --volume /etc/static/profiles/per-user:/etc/profiles/per-user:ro --init --verbose
distrobox enter archlinux
sudo systemctl status
Describe the bug
When trying out a freshly installed distrobox,
distrobox enter
on any container fails. It seems to want to mount itself in the containers and fails because those binaries are in the read-only nix store.Steps To Reproduce
Steps to reproduce the behavior:
distrobox create
distrobox enter
Expected behavior
No read-only filesystem error. distrobox/docker should be able to mount those binaries read-only.
Notify maintainers
@AtilaSaraiva
Metadata