eth-cscs / sarus

OCI-compatible engine to deploy Linux containers on HPC environments.
https://sarus.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
129 stars 10 forks source link

sarus run --pull #6

Open jdahm opened 4 years ago

jdahm commented 4 years ago

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.

Madeeks commented 4 years ago

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?

jdahm commented 4 years ago

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!