Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.05 KB

DockerHub.MD

File metadata and controls

44 lines (31 loc) · 1.05 KB

What is Docker Hub Registry

Docker Hub is a cloud-based registry service which allows you to link to code repositories, build your images and test them, stores manually pushed images, and links to Docker Cloud so you can deploy images to your hosts. It provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation throughout the development pipeline.

  1. Create a docker hub account in https://hub.docker.com/

  2. Pull a docker image

docker pull ubuntu
  1. pull a docker image with old version
docker pull ubuntu:16.04
  1. create a custom tag to docker image
docker tag ubuntu:latest valaxy/ubuntu:demo
  1. login to your docker hub registry ``sh docker login
6. docker push valaxy/ubuntu:demo

testing

  1. Remove all images in docker server
docker image rm -f <Image_id>
  1. Pull your custom image from your docker account
docker pull valaxy/ubuntu:demo