Difference between revisions of "Docker push"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
  
 
== Errors ==
 
== Errors ==
 +
docker push yourepo.company.com/my-image-name:0.1
 +
 +
 
  docker push your-image yourepo.company.com/my-image-name:0.1
 
  docker push your-image yourepo.company.com/my-image-name:0.1
 
    
 
    
Line 20: Line 23:
 
   
 
   
 
  Push an image or a repository to a registry
 
  Push an image or a repository to a registry
 
+
 
  Solution: use [[docker tag]] first to tag remote repository
 
  Solution: use [[docker tag]] first to tag remote repository
  

Revision as of 11:54, 24 February 2023

docker push push an image or a repository to a registry

docker push [OPTIONS] NAME[:TAG]
docker push my_image_name
docker push yourepo.company.com/my-image-name:0.1 (use docker tag first)
docker push --quiet your_image
docker push --help


Errors

docker push yourepo.company.com/my-image-name:0.1


docker push your-image yourepo.company.com/my-image-name:0.1
 
"docker push" requires exactly 1 argument.
See 'docker push --help'.

Usage:  docker push [OPTIONS] NAME[:TAG] 

Push an image or a repository to a registry

Solution: use docker tag first to tag remote repository

Examples

docker push "your_ecr_repo/elasticsearch:v9.9"
The push refers to repository [xxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/repo/name]
40a381ca46dc: Preparing
f9cd3098ca32: Preparing
c3e87cd6748e: Preparing
3995c6207484: Preparing
9cbb1bc9540c: Preparing
2dca0f18577a: Waiting
e77d17b4c748: Waiting
5fde16b8f2a5: Waiting
bb800dda9d0e: Waiting
f92203fcb38b: Waiting
e9fb19c67236: Waiting
0a367bc63a2a: Waiting
denied: Your authorization token has expired. Reauthenticate and try again.
Solution: docker login

Related terms

See also

Advertising: