17 August 2018
tags: Docker
How to push Docker images to DockerHub
Step 1
Create an account @DockerHub
Step 2
Create a repository. You can name it “test” for example.
Step 3
Create a Dockerfile. e.g.
FROM alpine:3.7
ENTRYPOINT ['sh']
Step 4
Build and push with following commands
docker login docker.io
# login with your user id and password
# docker build -t <dockerhub-user-id>/<repository-name>[:<tag>]
docker build -t precompiler/test:v1.0.0 .
docker push precompiler/test:v1.0.0