fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
984 stars 32 forks source link

Podman support? #272

Open Solarunit opened 1 year ago

Solarunit commented 1 year ago

Does WUD work when Podman is used instead of docker?

fmartinou commented 1 year ago

Hi,

I haven't tested with Podman.

If podman can expose a socket or TCP API compatible with the Docker API, it should work.

According to their documentation, they maintain a compatible REST API so it may work 🤞 .

I'll be happy to have your feedback if you could give it a try 🙂 .

Solarunit commented 1 year ago

Hi! Thanks for the quick reply! I am new to podman, I have

/var/run/docker.sock -> /run/podman/podman.sock

WUD logs:

19:18:25.233  WARN whats-up-docker/watcher.docker.local: Error when trying to get the list of the containers to watch (connect EACCES /var/run/docker.sock)

19:18:25.234  INFO whats-up-docker/watcher.docker.local: Cron finished (0 containers watched, 0 errors, 0 available updates)

19:18:25.237  INFO whats-up-docker/watcher.docker.local: Listening to docker events

19:18:25.247  WARN whats-up-docker/watcher.docker.local: Unable to listen to Docker events [connect EACCES /var/run/docker.sock]

Should I edit the docker-compose.yml somehow maybe? BTW I was using this docker-compose.yml with docker just fine before.

UPDATE: WUD running now, the issue was probably related to container permissions

fmartinou commented 1 year ago

UPDATE: WUD running now, the issue was probably related to container permissions

Great!

Is wud working as expected? Does it discover the containers?

If so, can you log here all Podman conf you had to do to make it work? => I'll add it to the documentation

Solarunit commented 1 year ago

Is wud working as expected? Does it discover the containers?

Yes, I see web-ui and containers. I just added privileged: true (when testing) in WUD docker-compose.yml. https://www.redhat.com/sysadmin/container-permission-denied-errors

If so, can you log here all Podman conf you had to do to make it work?

I haven't edit podman.conf at all. I have podman-docker installed, I also checked if

# ls -al /var/run/docker.sock
lrwxrwxrwx. 1 root root 23 Nov  4 10:19 /var/run/docker.sock -> /run/podman/podman.sock

https://access.redhat.com/documentation/fr-fr/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_using-the-container-tools-api_building-running-and-managing-containers

fmartinou commented 1 year ago

Thank you for your feedback; I'll mention podman somewhere in the documentation. 👍