Using users created at image build time #1493
Unanswered
RafaelPalomar
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Look at the error message when trying to create the distrobox: Distrobox named 'test' already exists. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
❯ podman build -t test .
STEP 1/2: FROM debian:bookworm
STEP 2/2: RUN useradd -s /bin/bash testuser
--> Using cache 4f1e67e8433f722c4de10339ff81f167e1dc03b21f2398db3c47f31bd27aff18
COMMIT test
--> 4f1e67e8433f
Successfully tagged localhost/test:latest
4f1e67e8433f722c4de10339ff81f167e1dc03b21f2398db3c47f31bd27aff18
/tmp/test
❯ DBX_CONTAINER_ALWAYS_PULL=0 distrobox create -i test
Creating 'test' using image test [ OK ]
Distrobox 'test' successfully created.
To enter, run:
distrobox enter test
/tmp/test
❯ distrobox enter test
Starting container... [ OK ]
Installing basic packages... [ OK ]
Setting up devpts mounts... [ OK ]
Setting up read-only mounts... [ OK ]
Setting up read-write mounts... [ OK ]
Setting up host's sockets integration... [ OK ]
Integrating host's themes, icons, fonts... [ OK ]
Setting up package manager exceptions... [ OK ]
Setting up package manager hooks... [ OK ]
Setting up dpkg exceptions... [ OK ]
Setting up apt hooks... [ OK ]
Setting up distrobox profile... [ OK ]
Setting up sudo... [ OK ]
Setting up user groups... [ OK ]
Setting up kerberos integration... [ OK ]
Setting up user's group list... [ OK ]
Setting up existing user... [ OK ]
Setting up user home... [ OK ]
Ensuring user's access... [ OK ]
Container Setup Complete!
📦[rafael@test test]$ id testuser
id: ‘testuser’: no such user
Beta Was this translation helpful? Give feedback.
All reactions