You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When a new container is launched with docker run --name bar --link foo, the display name of the existing foo target container changes to bar/foo in the portainer container list. However, if you click the bar/foo container from the list, portainer correctly shows its name as foo.
Expected behavior
The foo container should be displayed by it's name "foo", not the link alias name created when launching the bar container.
Steps to reproduce the issue:
docker run -d --name foo bash yes
docker run -it --name bar --link foo bash echo bar
docker ps -a --format '{{.ID}}: {{.Names}}' | egrep 'foo|bar' shows the correct names of the containers
0424d33aaf40: bar
90082da90384: foo
Look at portainer container list, filter by search word bar
Click on the incorrectly displayed bar/foo container, see that its still named foo and its name is displayed correctly in the container details page
Technical details:
Portainer version: 2.6.0 (I also tested this in 2.5.0 and 2.5.1, same behaviour)
Docker version (managed by Portainer): moby-engine-20.10.6-1.fc34.x86_64
Kubernetes version (managed by Portainer): n/a
Platform (windows/linux): Linux, Fedora 34 64bit
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer): docker run -d --name portainer -v "/var/run/docker.sock:/var/run/docker.sock" -v "vol_dir/data:/data" --restart always -p 9000:9000/tcp portainer/portainer-ce:latest -H unix:///var/run/docker.sock
Browser: Google Chrome | 91.0.4472.114 (Official Build) (64-bit)
Use Case (delete as appropriate): Using Portainer at Home
Have you reviewed our technical documentation and knowledge base? Yes
The text was updated successfully, but these errors were encountered:
Hi
There is a discussion already happening on link containers, kindly pl refer these tickets for link container issue #2211 #329
Oops, sorry, I had searched for link based issues before submitting this one, I guess I missed those.
I also didn't realize this behavior was that old, as I did not have this issue on my previous setup, which I believe was running Moby engine 18 and portainer 2.5 on fedora 32. Creating a link on that older setup did not rename the target container.
Bug description
When a new container is launched with
docker run --name bar --link foo
, the display name of the existingfoo
target container changes tobar/foo
in the portainer container list. However, if you click thebar/foo
container from the list, portainer correctly shows its name asfoo
.Expected behavior
The
foo
container should be displayed by it's name "foo", not the link alias name created when launching thebar
container.Steps to reproduce the issue:
docker run -d --name foo bash yes
docker run -it --name bar --link foo bash echo bar
docker ps -a --format '{{.ID}}: {{.Names}}' | egrep 'foo|bar'
shows the correct names of the containersbar
bar/foo
container, see that its still named foo and its name is displayed correctly in the container details pageTechnical details:
docker run -p 9000:9000 portainer/portainer
):docker run -d --name portainer -v "/var/run/docker.sock:/var/run/docker.sock" -v "vol_dir/data:/data" --restart always -p 9000:9000/tcp portainer/portainer-ce:latest -H unix:///var/run/docker.sock
The text was updated successfully, but these errors were encountered: