Attach to a running container where container ID is 07a2f64399Af docker exec -i -t 07a2 /bin/sh Build image from Dockerfile docker build -t imageName .