<p>Actually this is not possible as <code>docker push</code> command will look for a local image or a repository.<br />
You will have to load your image first from tar file, the push it to your registry.</p>
<pre><code>docker load --input repo.tar
docker image tag myrepo registry-host:5000/myrepo/myrepo:v1
docker image push registry-host:5000/myrepo/myrepo:v1
</code></pre>

CC BY-SA 4.0
2021-08-24T07:39:05.017Z
2021-08-24T07:39:05.017Z
storm
<p>I have a tarred docker repository created by using docker save.</p>
<p>I want to push this tar to a registry, say dockerhub. Is there a way we can do that without loading on local docker?</p>

<docker><docker-registry><dockerhub>
Is there a way to push tarred repository to dockerhub without loading on local
vinayawsm
# Is there a way to push tarred repository to dockerhub without loading on local

(Asked by: username_0 on 2021-08-23)

I have a tarred docker repository created by using docker save.

I want to push this tar to a registry, say dockerhub. Is there a way we can do that without loading on local docker?

**Tags:** docker, docker-registry, dockerhub


---

## 1 answers

### Answer by username_1 on 2021-08-24. Score: 1

Actually this is not possible as docker push command will look for a local image or a repository.
You will have to load your image first from tar file, the push it to your registry.
docker load --input repo.tar
docker image tag myrepo registry-host:5000/myrepo/myrepo:v1
docker image push registry-host:5000/myrepo/myrepo:v1


---

