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