Docker push: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:


* [[Docker Client Operations#Registry_Operations|Registry Operations]]
* [[Docker Client Operations#Registry_Operations|Registry Operations]]
* [[Docker Hub Operations]]


=Overview=
=Overview=
Line 16: Line 17:
=Procedure=
=Procedure=


To push to Docker Hub:
==Push to Individual Docker Hub Account==


1. Export credentials to environment:
Log in:


  export DOCKER_ID_USER=ovidiufeodorov
[[docker login]]


2. Log in:
Tag the image you want pushed, and which must exist in the local registry with the remote repository namespace/name/tag (note that the image could be originally created with the namespace/name/tag intended for the remote repository, and then just "docker push"ed):


  docker login
  docker tag postgresql-debug <''dockerhub-userid''>|<''organization-id''>/postgresql-95-debug:1


1. Tag the image you want pushed, and which must exist in the local registry with the remote repository info:
Push:


  docker tag postgresql-debug novaordis/playground/postgresql-95-debug:1
  docker push <''dockerhub-userid''>|<''organization-id''>/postgresql-95-debug:1

Latest revision as of 01:31, 23 January 2018

External

Internal

Overview

Push an image or a repository to a registry:

docker push [options] <name>[:tag]

Procedure

Push to Individual Docker Hub Account

Log in:

docker login

Tag the image you want pushed, and which must exist in the local registry with the remote repository namespace/name/tag (note that the image could be originally created with the namespace/name/tag intended for the remote repository, and then just "docker push"ed):

docker tag postgresql-debug <dockerhub-userid>|<organization-id>/postgresql-95-debug:1

Push:

docker push <dockerhub-userid>|<organization-id>/postgresql-95-debug:1