Docker - Publish

> Virtualization - (Virtual Machine|Container) > Docker

1 - About

How to publish an image to a repository (for now docker hub)

See also: Docker - Continuous integration

3 - Code

docker login
docker build -t yourDockerHubId/imageName:tag .
docker push yourDockerHubId/imageName:tag

4 - Example

For an image name as dockiql and my docker hub id as gerardnico

docker login
docker build -t gerardnico/dockiql:1.0.0 .
docker push yourDockerHubId/imageName:tag
Advertising