HiveBrain v1.2.0
Get Started
← Back to all entries
patterndockerMinor

Is there a way to push tarred repository to dockerhub without loading on local

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
localwithouttarreddockerhubwaypushrepositoryloadingthere

Problem

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?

Solution

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

Code Snippets

docker load --input repo.tar
docker image tag myrepo registry-host:5000/myrepo/myrepo:v1
docker image push registry-host:5000/myrepo/myrepo:v1

Context

StackExchange DevOps Q#14569, answer score: 1

Revisions (0)

No revisions yet.