sarus icon indicating copy to clipboard operation
sarus copied to clipboard

sarus run --pull

Open jdahm opened this issue 4 years ago • 2 comments

docker run --pull ensures the latest version of the image is pulled from the repository. Currently We have a sarus pull before the sarus run invocation, but this takes 30s-1min each time building a new squashfs image. Is it possible to not incur this cost on each run but yet ensure we have the latest image? If so, I suggest adding this as a --pull to mimic the docker interface.

jdahm avatar Mar 16 '20 18:03 jdahm

Hello @jdahm, thank you for your suggestion. If sarus pull only performed the pull process if the image on the remote registry changed, therefore eliminating the current overhead when the image is already up-to-date, would that be enough for your use case? Or you would still prefer to have sarus run --pull for a one-line command?

Madeeks avatar Apr 06 '20 17:04 Madeeks

If sarus pull only performed the pull process if the image on the remote registry changed, therefore eliminating the current overhead when the image is already up-to-date, would that be enough for your use case?

@Madeeks Thanks for the suggestion. Yes, this would be sufficient!

jdahm avatar Apr 28 '20 15:04 jdahm