Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Document container naming mechanism #157

Open
candlerb opened this issue Aug 24, 2018 · 2 comments
Open

Document container naming mechanism #157

candlerb opened this issue Aug 24, 2018 · 2 comments

Comments

@candlerb
Copy link

When using the sample lxdock.yml, I get containers whose names are <project name>-<container name>-<some digits>.

+--------------------------+---------+---------------------+------+------------+-----------+
| myproject-test01-5902851 | RUNNING |                     |      | PERSISTENT | 0         |
+--------------------------+---------+---------------------+------+------------+-----------+
| myproject-test02-5902851 | RUNNING |                     |      | PERSISTENT | 0         |
+--------------------------+---------+---------------------+------+------------+-----------+

I couldn't see any documentation about how containers are named, and it's not easy to find in the code either. I did eventually find it - it seems the suffix is project_id and comes from the inode number of the containing folder.

Worth adding a note to the documentation?

@robvdl
Copy link
Member

robvdl commented Aug 26, 2018

Maybe worth adding something short about this. As far as I know the reason for this is that some people may want to clone the same project in two locations, do a lxdock up, and end up with two differently named containers.

@salotz
Copy link

salotz commented May 11, 2020

This issue should be about being able to customize this. I don't like having this. In my scripting I have to parse lxd outputs to do anything with the container.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants