Frequently used

  1. Build: docker build -t tag-name # from dir that contains Dockerfile
  2. Login docker login # default registry is docker hub docker login registry-1.docker.io
  3. Push i. create a repository on docker hub and copy the command, “docker push jaaved9/assessment:tagname” docker push jaaved9/assessment:latest ii. To push to private or non docker hub repo docker push localhost.localdomain:5000/ubuntu # give full URL