Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container name as env in toolbox or as hostname #926

Closed
mvala opened this issue Nov 15, 2021 · 3 comments
Closed

Container name as env in toolbox or as hostname #926

mvala opened this issue Nov 15, 2021 · 3 comments
Labels
1. Feature request A request for a new feature

Comments

@mvala
Copy link

mvala commented Nov 15, 2021

We are using multiple containers and we would like to know what container we are running it via PS1. Would it be possible that container name would be passed as ENV variable so we can adjust it, or better set hostname as container name or at least to have this option while creating toolbox

@mvala mvala added the 1. Feature request A request for a new feature label Nov 15, 2021
@mvala
Copy link
Author

mvala commented Nov 15, 2021

Maybe it is duplicate of #771

@HarryMichal
Copy link
Member

One could use /run/.containerenv to read the name of the container.

@mvala
Copy link
Author

mvala commented Dec 7, 2021

Thanks this is solution.

@mvala mvala closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Feature request A request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants