I'd like to add the CTID on the Container bash prompt. How can I achive this? Something like:
Code:
[CTID 100 /home ] : _
[CTID 100 /home ] : _
Hi,
you can achieve this by modifying the PS1 variable in the .bashrc, see here for examples https://wiki.archlinux.org/index.php/Bash/Prompt_customization
I thought there were a variable of something like that in order to get it. So is there nothing to do?Ah you want some form of automated procedure, sorry for the misunderstanding. The easiest way is obviously adding the id on creation to the hostname or leaving it blank which defaults to the CTID. Otherwise there is no straight forward way to get the CTID from within the CT.
We use essential cookies to make this site work, and optional cookies to enhance your experience.