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 incorrect when links are used. #2211

Open
MicahZoltu opened this issue Aug 24, 2018 · 8 comments
Open

Container name incorrect when links are used. #2211

MicahZoltu opened this issue Aug 24, 2018 · 8 comments

Comments

@MicahZoltu
Copy link

MicahZoltu commented Aug 24, 2018

Bug description
When linking container foo to container bar, the name displayed for container bar changes to be foo/bar. This does not align with what shows up in docker container list, nor is it a desirable behavior (for me).

Expected behavior
When I name a container foo, I expect to see it listed with then name foo in the container list.

Steps to reproduce the issue:

Steps to reproduce the behavior:

  1. docker container run -d --name foo httpd:alpine
  2. docker container run -d --name bar --link foo httpd:alpine
  3. Look at container list and notice that foo is named bar/foo.

Technical details:

  • Portainer version: 1.19.1
  • Docker version (managed by Portainer): 18.06.1-ce
  • Platform (windows/linux): Linux
  • Command used to start Portainer: docker run -d --name portainer --restart always --mount='type=bind,source=/var/run/docker.sock,dst=/var/run/docker.sock' --mount 'source=portainer,dst=/data' portainer/portainer
  • Browser: Edge
@francescbassas
Copy link

+1

1 similar comment
@openhoat
Copy link

openhoat commented Apr 5, 2019

+1

@thomashilzendegen
Copy link

Portainer's JSON API is returning a Names array, containing the "wrong" name at first place:

"Names": ["/bar/foo", "/foo"]

@ghost
Copy link

ghost commented Apr 16, 2020

Reproduced on 1.23.2

@ghost ghost added the severity/low label Apr 24, 2020
@griou
Copy link

griou commented Aug 2, 2020

Hello, I can still reproduce this issue and it has boring side effects : if you need to stop container to set some environment variables, you can't Duplicate/Edit the containers (having error with the container name because it's using the link and not the container name) and when you use Recreate you can't keep the link beetween the containers. Could you help fix this issue ? Thanks for any help.

@xventil
Copy link

xventil commented Sep 9, 2020

same issue for me also running portainer 1.24

@driesvandamme
Copy link

driesvandamme commented Jan 12, 2021

Same issue here. It makes managing the containers (with Synology Docker application) a mess.

@MarcOrfilaCarreras
Copy link

Same issue using Portainer Community Edition with the version 2.15.0. Using the linux-arm64 image.

Captura desde 2022-09-12 10-02-43

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

No branches or pull requests

9 participants