SaaShup / netbox-docker-agent

Agent for Netbox Docker Plugin
https://saashup.com
BSD 3-Clause "New" or "Revised" License
33 stars 1 forks source link

:adhesive_bandage: temporary fix for image repulled #100

Closed lvenier closed 4 months ago

lvenier commented 4 months ago

Output for docker image pull is a stream on of the registry image. For the moment we consider it successfull if the stream is > 1024 bytes as is it quite large output for pulling images.

In case of the image it being repulled allt thre registries are not pulled as they are cached locally. It may reduce the stream output to smaller piece.

This PR will reduce it to 512bytes. It may be able to reduce more but would need to test few failed refistry images to check.