<p>I have a virtualbox <code>development</code>:</p>

<pre><code>$docker-machine ls

NAME          ACTIVE   DRIVER     STATE        URL             SWARM  DOCKER ERRORS
development    -     virtualbox  Running  tcp://*.*.*.*:****  v18.05.0-ce   
</code></pre>

<p>Inside <code>development</code> I have this:</p>

<pre><code>$docker images
REPOSITORY            TAG      IMAGE ID         CREATED         SIZE
busybox              latest   e1ddd7948a1c      1 day ago      1.16MB
pritam/play-docker   latest   34eb2664f14e      1 day ago      1.4GB
</code></pre>

<p>Now I want to push this image inside virtual box to google repository. How do I that? </p>

Pritam Banerjee
<p>you can use docker push command </p>

<pre><code>docker push imageTagName
</code></pre>

<blockquote>
  <p><a href="http://docs.docker.com/engine/reference/commandline/push" rel="nofollow noreferrer">http://docs.docker.com/engine/reference/commandline/push</a></p>
</blockquote>

<p>For your own registry you can use</p>

<pre><code> docker push registry.example.com/image 
</code></pre>

<blockquote>
  <p><a href="http://blog.docker.com/2013/07/how-to-use-your-own-registry" rel="nofollow noreferrer">http://blog.docker.com/2013/07/how-to-use-your-own-registry</a>.</p>
</blockquote>

<p>And for google container registry reference:</p>

<blockquote>
  <p><a href="http://cloud.google.com/container-registry/docs/pushing-and-pulling" rel="nofollow noreferrer">http://cloud.google.com/container-registry/docs/pushing-and-pulling</a></p>
</blockquote>

<pre><code>docker [push/pull] gcr.io/{PROJECT_ID}/{image}:tag 
</code></pre>

<p>for authentication you can check google container registry reference</p>

<blockquote>
  <p><a href="https://medium.com/google-cloud/using-googles-private-container-registry-with-docker-1b470cf3f50a" rel="nofollow noreferrer">https://medium.com/google-cloud/using-googles-private-container-registry-with-docker-1b470cf3f50a</a></p>
</blockquote>

<p>after you get google auth keys as json format (key.json)</p>

<pre><code>docker login -u _json_key -p “$(cat key.json)”
</code></pre>

<p>after login success you can push your image </p>

<pre><code> docker push gcr.io/project_id/imageName:tag
</code></pre>
