PlanktoScope / forklift

Composable, reprovisionable, decentralized management of apps & configs on Raspberry Pis and other embedded Linux systems
Apache License 2.0
6 stars 0 forks source link

caching: Don't try to re-download Docker images which already exist #249

Open ethanjli opened 1 month ago

ethanjli commented 1 month ago

Currently, [dev] plt stage and stage set-next by default attempt to download all container images - even those which are already available in the Docker daemon's container storage; this will lead to a failure+error if we have no internet connection, even if all images are already in the Docker daemon's container storage. The only way to avoid that situation is to add an optional --no-cache-img flag to [dev] plt stage/stage set-next/etc. It would be better if we didn't need to provide that flag in most cases, and we instead changed the default behavior of [dev] plt stage to skip attempting to download any container images which are already in the Docker daemon (by querying the Docker daemon); usually all container images would be in the Docker daemon, and we'd only get an error without internet connection if we actually needed the internet to download a container image we didn't have.