docker build --tag <image-name>:<tag> <dockerfile-path>
#EXAMPLE
docker build --tag my-image:1.2.3 .
#or
docker build --tag my-image:1.2.3 ./dockerfile
docker run -p <docker-host-port>:<container-port> <image-id or image-name:tag>
#EXAMPLE
docker run -p 8080:80 abc123def456
docker exec -it <container-id> /bin/bash
#EXAMPLE
docker exec -it abc123def456 /bin/bash