how to build image from existing docker container code example Example: how to build docker image docker build -t image-name