https://github.com/silarsis/docker-proxy/blob/ca22003158c2128c5b3d080270dd1d442a332210/run.sh#L8 To be more concise I would use IMAGE_NAME in stead of CONTAINER_NAME in the beginning of this script.