My app runs in a Docker container and I'm using off-line deployment where I
docker save
the image on my development machine and bundle it with the app- manually transfer the bundle of tarfile and my app via USB stick
docker load
it on the target machine (target is not connected to a network)
Steps 1 & 3 are performed by BASH scripts (Linux).
App updates often do not require an update of the Docker image and since docker save
and docker load
are both quite slow and resource intensive, I would like to avoid these steps whenever possible.
Is there a way to find out if a tar
'ed image equals an image IMAGE:TAG
on my Docker daemon?
I have tried skopeo inspect docker-archive:...
vs. docker image inspect ...
output for comparison but there does not seem to be an image ID to compare. I have seen RootFS layers to be equal but is that a strong guarantee I can skip docker save
/ docker load
?