Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "Mounted from blah" mean for docker push command?

Tags:

docker

I noticed a strange log statement in our build logs, that seems to only show up the first time a particular image is built. I couldn't find any reference to it in Docker literature. I'm interested in knowing what it means.

The push refers to a repository [mycompany.com:5000/blah]
a35c50f48e25: Preparing
// more preparing
0c3170905795: Waiting
// more waiting
47a9d8491623: Mounted from foo
e856ece746ae: Mounted from foo
f2ec1bba02a6: Mounted from bar
6407c62d4add: Mounted from foo
0c3170905795: Mounted from bar
df64d3292fd6: Mounted from bar
5ed59af669b0: Pushed
a35c50f48e25: Pushed

What this "Mounted from foo" mean in the above log, and why does it only show up the first time?

like image 698
Abhijit Sarkar Avatar asked Sep 25 '18 23:09

Abhijit Sarkar


People also ask

What is Docker push command?

Docker Push is a command that is used to push or share a local Docker image or a repository to a central repository; it might be a public registry like https://hub.docker.com or a private registry or a self-hosted registry.

How do I push a docker image into repository?

To push an image to Docker Hub, you must first name your local image using your Docker Hub username and the repository name that you created through Docker Hub on the web. You can add multiple images to a repository by adding a specific :<tag> to them (for example docs/base:testing ).


1 Answers

This indicates that the specified layers you want to push to that repository do not exist in that repository, but they do exist in another repository on the same registry server which you have read access to. Instead of transferring the layers over the network, docker shares the layers between the repositories.

This change was introduced in the 2.3 registry release and is referred to as Cross Repository Blob Mount.

like image 146
BMitch Avatar answered Oct 20 '22 04:10

BMitch