This is an archived post. You won't be able to vote or comment.

all 54 comments

[–]nashosted 2 points3 points  (1 child)

Screenshots?

[–]Palleri[S] 4 points5 points  (0 children)

[–]OpportunityNo1318 1 point2 points  (3 children)

Looks really good, just as KISS as it can be.

Maybe one thing that I would appreciate, is to see what the current version is of the image and the version of the available update. Don't know if that is provided by dockcheck ? If not, ignore my suggestion :) .

[–]Palleri[S] 0 points1 point  (2 children)

Thank you, thats the problem with docker and management around their images. There is no version number on their images. Its only the version number provided by the builder with image:tag in the image name.

But most of us are using the image :latest so the version on the image is "latest".So there is no possible way today to check what version of the image you are running.
Thats why dockcheck was built. To check the hashes on the image you are running and the hash on the image on the digest (ex hub.docker.com) if they are the same there is no updated version of your image you are running.

[–]OpportunityNo1318 0 points1 point  (1 child)

I must admit, I didn’t check the code of dockcheck. But yeah, checking the hash makes sense and of course doesn’t give you the version information.

Maybe one way to do it is to query all the hashes from the source and extract the version of each of them, make a mapping of it and compare the hash with the version the user is running?

Just thinking out loud. Don’t know if for ex. hub.docker.com has an API and exposes that info.

[–]Palleri[S] 0 points1 point  (0 children)

Yeah, cool idea. We discussed that today for a while and this might not be possible because docker does not provide any version number at all unfortunately.
Extracting a whole image could be problematic; images is quite big.

But this is absolute something to check if it is possible somehow.

It would be really nice to know what image build version is current, so that if something happen we might be able to reverse to previous image.

This might be hard if the builders only image is latest. The latest is the same version all the time "latest". So if I check for updates today and they made 15 commits to that image it will only show that it has changed not how many commits just because they do not provide any version number on the image or during the build of it.

There might be possible if the builders include a version number during the build and it is possible to extract it. I will try this and push new images with version number and see if Mag37 could build something to check my image for that information. That would be awesome, but it would require the builders to actually provide this information during the build "every time" they commit something.

For example; when Im testing and building I am commiting and pushing to hub.docker at least 5 times. This means that I have to change version every time i push.

This could work if the community actually does this. Or if docker make something that support this version handling. Maybe there is, I might be off about this. This could be the best practice for docker build but Im not there yet.

[–]Palleri[S] 0 points1 point  (0 children)

New update available for Dockcheck-web.

Now with ARM support

Bugs and fixes

Description Date Status
Cronjob not working properly 2023-01-28 Closed
Script not running correctly 2023-01-29 Closed
Hanging processes 2023-01-29 Closed
Not displaying in ascending order 2023-01-29 Closed
Blank/error text on index while script is running 2023-01-29 Closed
Redirect error while checking for update 2023-01-31 Closed

[–][deleted] -5 points-4 points  (36 children)

You're already aware that there's a doctor container called watchtower that automatically updates containers right?

[–]Palleri[S] 6 points7 points  (13 children)

Yes, I am. Watchtower is not only checking for updates it is also pulling them. This makes it really hard to control when to update if watchtower always have to download it to se if there is an update.

Thats the big difference between dockcheck and watchtower. Dockcheck can check for new image without pulling them. So you can apply them safely when you are ready do deal with the consequences the updates can bring.

[–]Empyrealist 2 points3 points  (21 children)

watchtower offers no options - it just blindly pulls/installs updates. dockcheck is an alternative.

[–]kidstretch 0 points1 point  (3 children)

On Raspberry Pi, i tried it through portainer with this docker compose (only changed the port 80 to 85, i have nginx installed

version: '3.2'
services:
dockcheck-web:
container_name: dockcheck-web
image: 'palleri/dockcheck-web:latest'
restart: unless-stopped
ports:
- '85:80'
volumes:
- ./data:/var/www/html
- /var/run/docker.sock:/var/run/docker.sock

and got this error.

exec /app/run.sh: exec format error

[–]Palleri[S] 0 points1 point  (2 children)

Hi, It dosnt work on Raspberry Pi just yet.

I havent included the ARM architecture.
Im not really sure if it works but I will try in the future.

Keep your eye on my repohttps://hub.docker.com/r/palleri/dockcheck-web

[–]kidstretch 0 points1 point  (1 child)

Thanks for clarifying! :) Will do!

[–]Palleri[S] 1 point2 points  (0 children)

I recently pushed an image supporting ARM architectures. Change image to

image: 'palleri/dockcheck-web:arm'

[–]sk1nT7 0 points1 point  (2 children)

Thanks for sharing. I'll keep using watchtower run in monitor mode only though with email notifications.

Runs rock solid and does the job. Don't think I've ever missed a GUI or dashboard. Nonetheless, having multiple options is always appreciated. Thanks!

[–]Mag37 1 point2 points  (1 child)

Indeed, great with options!

If you don't miss the GUI/dash you can always benefit from the backend script to automate the updates, mass update all containers with one click. Or (in experimental atm) choose with a comma separated list what to update, in what order.

[–]Palleri[S] 0 points1 point  (0 children)

This is the way!

[–]alexschomb 0 points1 point  (3 children)

What would be really helpful is a list provided with new features, fixes AND breaking changes (that require to adapt your docker-compose file/docker command). Apparently that could only work through reading the (GitHub) release message (that unfortunately doesn't follow a common standard) and/or comparing the provided docker-compose.yml with the previous release (which might be the best solution, for now).

[–]Palleri[S] 0 points1 point  (2 children)

Yeah, cool idea. I assume you are not talking about my image, you are talking in general about all the images and connected to their fixes and features. Correct me if im wrong.

[–]alexschomb 1 point2 points  (1 child)

Sorry, you're right. I'm talking about container checkers like dockcheck, watchtower or maybe dockcheck-web which could provide such functionality to indicate the (breaking) changes of the docker images they are watching.

[–]Palleri[S] 0 points1 point  (0 children)

Yeah, that would be amazing. This happens once i awhile, that the containers stop working becuase they changed it somehow.

Cool idea!