-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Virtual Container IDs #600
Comments
@aluzzardi what is the Use case for containers getting re-scheduled other than node fail-over. Any ways Swarm is trying to enforce a unique naming scheme for containers across the cluster . May I know more about how Virtual ID is useful. |
This is work in progress, so feedback is very much welcome. Yes, the only re-scheduling reason (for the foreseeable future) is node fail-over. Some reasons why we would need this:
In order to work easily with Virtual IDs, we would use labels to tag containers with their Virtual ID. |
So does all the docker commands will try to find the ID in both docker names/ids and also the labels virtual IDs then? ie: docker stop virtualId1 |
@tnachen yes, that's the plan. I also think that |
cool, the user experience definitely becomes a bit interesting. I think we have to tell the user this is a virtual ID, since when docker ps is called users will get confused which one to look at. |
Docker use a UUID for a reason, but what's the point of using a generated ID in a swarm instance? the user should just be able to use a good name to define a "job" with a good name , that has a number of "tasks" (which is actually containers ) running in the swarm cluster. |
Merged in #745 |
Re-scheduling containers (see #599) means they will change ID. This is unacceptable since it's the only link between the user and a container.
Swarm should create a Virtual Swarm ID for every container that maps to an actual Physical ID from the engine.
Only the Virtual ID is exposed to the user, and Swarm maintains a mapping between the two. A rescheduled container will have a different Physical ID but the same Virtual ID.
Virtual IDs could be stored as labels, see #288.
The text was updated successfully, but these errors were encountered: