Background
We are running a local Docker repository inside a machine that is running Docker.
I'm trying to find out:
Question
Do the local repository and the daemon, share same images and, therefore, does not increase the disk usage. Or, for every image X with size Y(MB), the fact that X in both the local repo and the demon X takes 2Y(MB)?
Thanks
EDIT 1
Is it possible to force the local repository to share its images with the daemon?
Well thought question. Answer from my experience is it must store separately. So when you do
docker rmiimages your local images must get removed not the ones from repository, even though you have hosted your repository on local, its still a repository.There are ways to test this by yourself.
- See whether pulls are faster - i mean blazing faster when you do from daemon.
- Perform
docker rmi IMAGEand pull again, see whether the image gets pulled.- Delete the image from your repo, and see
docker imageslists it.