OpenMediaVault-Plugin-Developers / openmediavault-docker-gui

Docker plugin for OpenMediaVault
32 stars 17 forks source link

Container viewer shows "incorrect" name in the column "NAMES " #75

Open weyou opened 6 years ago

weyou commented 6 years ago

I have built a nextcloud server with docker. Nextcloud also requires the mariabdb and redis. Here is the container name list of my server:

I run the nextcloud container with extra args --link mariadb:mariadb --link redis:redis Everything works ok. But the redis container name in the "NAMES" show as "nextcloud/redis". It look strange. It should be "redis" as I set it up in the Container Name when running the redis. So is this by design? or a issue of docker plugin?

BTW. The displayed name of mariadb is "mariadb", that's correct.

subzero79 commented 6 years ago

And the output of the command

docker ps -a

Does it shows the same ?

weyou commented 6 years ago

The redis name in the output of "docker ps -a" is correct.

f3cb3ad3b21e        linuxserver/nextcloud:latest   "/init"                  3 hours ago         Up 2 hours          80/tcp, 0.0.0.0:443->443/tcp                                                           nextcloud
be6eb10a4f86        redis:latest                   "docker-entrypoint.s…"   3 hours ago         Up 2 hours          6379/tcp                                                                               redis
1f586cffac98        linuxserver/mariadb:latest     "/init"                  4 days ago          Up 2 hours          3306/tcp                                                                               mariadb
subzero79 commented 6 years ago

There must be an error in the plugin parsing the names the api is returning. What version of omv is this? It will be while for me to get into this as I am on holidays away from my pve server.

If you don’t mind the disrupt you can attempt a cli container rename see if it reflects the change in the GUI.

weyou commented 6 years ago

omv version: 4.1.11 docker-gui: 4.0.1

Never mind, it's just a small display issue. Hoping you have a good holiday.

luchmhor commented 5 years ago

I got the same problem:

using nginx as a proxy and also via --link connecting to another container. In the docker-gui the nginx container gets renamed.