Build docker image with: docker build -t phpfastcgi . Run docker image with: docker run -it --rm -p :2015:2015 --name phpfastcgi phpfastcgi or detached with: docker run -d -p :2015:2015 --name phpfastcgi phpfastcgi