distrobox keeps my terminal host name the same when entering a container. #1537
Unanswered
bitzorbites
asked this question in
Q&A
Replies: 1 comment
-
Hey I was having the same issue, I know this was 2 months a go, But if someone else is facing the same issue please try with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in some places I'm reading this seems like the correct behavior, however, every video I've watch shows the hostname part of the shell prompt change to the name of the container.
expected behavior: entering a distrobox causes the hostname portion of my shell prompt to change to containers host name.
example: user@originalhostname becomes user@ubuntucontainer1 when entering the container named ubuntucontainer1
actual behavior: my user deck@steamdeck remains deck@steamdeck even while inside a new ubuntu container. using the command apt proves my container does work, because my host is an arch based distro.
screenshot of terminal creating and entering an ubuntu-20-04 container:
screenshot from a popular youtube channel using distrobox:
This is very confusing behavior, and its quite hard to tell when you are actually inside of a container. for almost a day, i thought distrobox just wasnt working at all until I tried a simple apt command and realized I was actually in a container even though the prompt wasn't changed.
i am using a steamdeck with manual installation of latest distrobox and podman-launcher in /home/deck/.local/bin and added to the $PATH variable. on a side note, as a second issue, i had to remove the "xhost +si:localuser:$USER" from .bashrc because everytime I created a container it would say "xhost: command not found" So I have been unable to get any gui applications to work.
Beta Was this translation helpful? Give feedback.
All reactions