build docker image with dockerfile code example Example: docker build image docker build --tag hello .