how to create a docker image from running container code example Example: how to build docker image docker build <Dockerfile path> -t image-name