[BUG] Zoraxy doesn't display my Docker Container
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
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
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.
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!
The current version doesn't have https://github.com/tobychui/zoraxy/pull/213. Could that be why?
Hi, I just update to version 3.0.9 and my containers doesn't display.
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!!!
Hey @tukutt @tobychui , I've just pulled the new 3.0.9 image (also clean config), and everything works for me:
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.
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
I have 1.45 API Version
@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 !
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
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
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.
@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.).
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.