Docker push: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:
To push to Docker Hub:
To push to Docker Hub:


1. Export credentials to environment:
1. Log in:


  export DOCKER_ID_USER=ovidiufeodorov
docker login


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


  docker login
  docker tag postgresql-debug novaordis/playground/postgresql-95-debug:1


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


  docker tag postgresql-debug novaordis/playground/postgresql-95-debug:1
  docker push novaordis/playground/postgresql-95-debug:1

Revision as of 21:05, 5 December 2017

External

Internal

Overview

Push an image or a repository to a registry:

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

Procedure

To push to Docker Hub:

1. Log in:

docker login

2. 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

3. Push

docker push novaordis/playground/postgresql-95-debug:1