zoraxy icon indicating copy to clipboard operation
zoraxy copied to clipboard

[BUG] Zoraxy doesn't display my Docker Container

Open tukutt opened this issue 1 year ago • 13 comments

Describe the bug My docker containers doesn't appears in the list.

To Reproduce My Docker Compose :

services:
  zoraxy-docker:
    image: zoraxydocker/zoraxy:latest
    container_name: zoraxy
    ports:
      - 80:80
      - 443:443
      - 8005:8000
    volumes:
      - /mnt/nas/docker/Zoraxy:/opt/zoraxy/config/
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      PORT: 8005
      FASTGEOIP: "false"
networks: {}

Clic on "Pick from Docker Containers"

Expected behavior List of my Docker Container

Screenshots image

Browser (if it is a bug appears on the UI section of the system):

  • OS: Archlinux
  • Browser : Firefox and Chrome
  • Version : Last version

Host Environment (please complete the following information):

  • Docker Version (if you are running Zoraxy in docker): 26.1.3

Additional context In the Console, you can see, my docker Container. I think it's just a web problem.

This file : http://dock:8005/script/ao_module.js -> Http 404

tukutt avatar Jul 06 '24 15:07 tukutt

In the Console, you can see, my docker Container. I think it's just a web problem.

Thanks for this details. As I am currently on a vacation, I will follow up this later on.

This file : http://dock:8005/script/ao_module.js -> Http 404

This has been fixed in next version. But for this version this should not effect any other front-end logic and rendering.

tobychui avatar Jul 07 '24 02:07 tobychui

From my test, it seems the whole docker UI is not working with the latest docker image. 圖片

I am using Portainer CE with a fresh installation from zoraxydocker/zoraxy:latest and everything is left as its default value. 圖片

I am not a docker expert, @PassiveLemon you got any clue what might be my issue here? Thanks!

tobychui avatar Jul 13 '24 15:07 tobychui

The current version doesn't have https://github.com/tobychui/zoraxy/pull/213. Could that be why?

PassiveLemon avatar Jul 13 '24 16:07 PassiveLemon

Hi, I just update to version 3.0.9 and my containers doesn't display.

tukutt avatar Jul 21 '24 13:07 tukutt

Hmmm I am not sure how to fix this issue. I didn't change anything regarding the code for listing docker container in recent revisions. The only thing I did is moved it into the mod/dockerux folder (so it didn't mixed up with the global scope of the Zoraxy code base)

https://github.com/tobychui/zoraxy/blob/main/src/mod/dockerux/docker.go

Sorry to bother you @7brend7, would you mind take a look at what might be the issue? Many thanks!!!

tobychui avatar Jul 21 '24 14:07 tobychui

Hey @tukutt @tobychui , I've just pulled the new 3.0.9 image (also clean config), and everything works for me: image May I know if the api/docker/containers endpoint works for you, and if not, what error message it returns? Actually - it can return just a List docker network failed message, more interesing should be in logs.

7brend7 avatar Jul 22 '24 06:07 7brend7

Can we specify the docker api version as a variable?

Here's the error specific to my environment:

[2024-08-03 00:08:33.708047] [Docker] [system:error] List docker container failed: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.42

scottharman avatar Aug 02 '24 23:08 scottharman

I have 1.45 API Version

tukutt avatar Aug 07 '24 10:08 tukutt

@7brend7 Sorry, I don't read correctly your post. Tonight , I try to debug and found a problem with ip :: . When I search the file I see your commit ! I think the next release will work. Thanks !

tukutt avatar Aug 14 '24 22:08 tukutt

Any update on this?

[2024-10-04 09:40:01.200226] [Docker] [system:error] List docker container failed: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41

Leave-MeAlone avatar Oct 04 '24 09:10 Leave-MeAlone

Same error here:

[2024-10-08 13:29:02.134026] [Docker] [system:error] List docker container failed: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.41

fernandeusto avatar Oct 08 '24 13:10 fernandeusto

Hi @fernandeusto,

Currently there are no long-term maintainer for any docker function involved in Zoraxy. If anyone want to fix this, please feel free to create a PR and I will approve it if the PR compiles without issues.

tobychui avatar Oct 11 '24 13:10 tobychui

@Leave-MeAlone @fernandeusto @tobychui I didn’t look into the details of the client version is too new error… Does this happen because of a mismatch between the go-docker library version and the installed Docker version? I haven’t encountered this error, possibly because I have an older version of Docker installed. It’s strange that they can’t maintain compatibility between versions (I hope it’s justified.).

7brend7 avatar Oct 11 '24 13:10 7brend7

With the new implementation that automatic negotiate the protocol version, this should be fixed by now.

https://github.com/tobychui/zoraxy/blob/650d61ba245427ae58cdd3161c9d84a517f0ed85/src/mod/dockerux/docker.go#L23C1-L29C25

If there are further issues with the new implementation, please open a new issue instead.

tobychui avatar Jun 15 '25 12:06 tobychui