-
Notifications
You must be signed in to change notification settings - Fork 175
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 displays label from another container #8545
Comments
@aviratna I cannot reproduce the issue in VIC 1.5.2, and I think there is no change related to label between VIC 1.5.0 and VIC 1.5.2. You may double check here. |
@wjun we verified this issue on VIC 1.5.2, we are able to reproduce it. Below are steps and our observation:
We can not use different docker labels for different containers created from same docker image because of this issue. Docker Image Inspect: Labels updated for docker image which were passed as parameter during container creation. Please let us know if any logs or any additional details are required. |
These are the steps I use when trying to reproduce by creating two containers from the same image and one with label another one without. it works as expected: Please paste the docker commands you use here and see if we can reproduce. Or you can try the above commands in your local environment. |
@wjun Hi, I did some test on docker label to reproduce it.
E.g Step:
Docker Image inspect: Please let us know if any logs or additional details are required. One more observation: If we restart the VCH endpoint, issue will be fixed. Custom Docker label will be deleted from docker image and container which was created without docker label parameter. Not sure if its related to VCH cache. |
@aviratna Thanks for the information, and now I understand when the issue happens. The PR above should able to fix this issue. |
Background
We are using docker label for various use cases like chargeback, load balancer etc. We came across below issue with docker label.
Issue: If we create a container with docker label and use same docker image to create another container, new container will get created with same docker label though we did not provide the docker label for new container.
vSphere and vCenter Server version
vSphere 6.5
VIC version
VIC 1.5 (probably all versions in the past too)
##### Steps to reproduce
e.g. docker run --label xyz
docker inspect <container id 1>
docker run
docker inspect <container id 2>
##### Actual behavior
Container copies the label from another container which are created using same docker image.
##### Expected behavior
Container should only show docker label which are part of docker image or docker label provided during docker run command. Container should not copy label from another container.
Docker Image is immutable, it should not get updated with docker label provided during docker run.
##### Observation
We tried the docker inspect on docker image. Labels got updated for that docker image which were provided during docker run command.
@malikkal
The text was updated successfully, but these errors were encountered: