Docker push: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
=Procedure=
=Procedure=


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


1. Log in:
Log in:


  docker login
  docker login


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


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


3. Push
3. Push


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

Revision as of 21:11, 5 December 2017

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 info:

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

3. Push

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