Frequently used
- Build: docker build -t tag-name # from dir that contains Dockerfile
- Login docker login # default registry is docker hub docker login registry-1.docker.io
- 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