How to push only whats changed with Docker push?
<p><strong>A</strong>. Here is how I created the image:</p>

<ol>
<li>Got latest Ubuntu image</li>
<li>Ran as container and attached to it</li>
<li>Cloned source code from git inside docker container</li>
<li>Tagged and pushed docker image to my registry</li>
</ol>

<p><strong>B</strong>. And from a different machine I pulled, changed and pushed it by doing:</p>

<ol>
<li>Docker pull from the registry</li>
<li>Start container with the pulled image and attach to it</li>
<li>Change something in the cloned git directory</li>
<li>Stop container, tag and push it to registry</li>
</ol>

<p>Now the issue I'm seeing is that every time <strong>B</strong> is repeated it will try to upload ~600MB (which is the public image layer) to the registry which takes a long time in my case.</p>

<p>Is there any way to avoid uploading the whole 600MB and instead pushing the only directory that has changed?</p>

<p>What am I doing wrong? How do you guys use docker for frequent pushes?</p>