@@ -16,22 +16,22 @@ $ docker run -v `pwd`:/var/www/ phppm/ppm --help
1616$ docker run -v `pwd`:/var/www/ phppm/ppm config --help
1717
1818# with nginx as static file server
19- $ docker run -t - -rm --name ppm -v `pwd`:/var/www -p 8080:80 phppm/nginx:latest
19+ $ docker run --rm --name ppm -v `pwd`:/var/www -p 8080:80 phppm/nginx:latest
2020
2121# with php-pm as static file server (dev only)
22- $ docker run -t - -rm --name ppm -v `pwd`:/var/www -p 8080:80 phppm/nginx:latest
22+ $ docker run --rm --name ppm -v `pwd`:/var/www -p 8080:80 phppm/nginx:latest
2323
2424# use `PPM_CONFIG` environment variable to choose a different ppm config file.
25- $ docker run -t - -rm --name ppm -e PPM_CONFIG=ppm-prod.json -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
25+ $ docker run --rm --name ppm -e PPM_CONFIG=ppm-prod.json -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
2626
2727# enable file tracking, to automatically restart ppm when php source changed
28- $ docker run -t - -rm --name ppm -e PPM_DEBUG=1 -e PPM_APP_ENV=dev -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
28+ $ docker run --rm --name ppm -e PPM_DEBUG=1 -e PPM_APP_ENV=dev -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
2929
3030# change static file directory. PPM_STATIC relative to mounted /var/www/.
31- $ docker run -t - -rm --name ppm -e PPM_STATIC=./web/ -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
31+ $ docker run --rm --name ppm -e PPM_STATIC=./web/ -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
3232
3333# Use 16 threads/workers for PHP-PM.
34- $ docker run -t - -rm --name ppm -e PPM_WORKER=16 -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
34+ $ docker run --rm --name ppm -e PPM_WORKER=16 -v `pwd`:/var/www -p 80:80 phppm/nginx:latest
3535```
3636
3737Docker compose
@@ -89,6 +89,6 @@ RUN apk --no-cache add ca-certificates wget
8989```
9090
9191```
92- docker build -t vendor/my-image -f Dockerfile .
92+ docker build vendor/my-image -f Dockerfile .
9393# now use vendor/my-image instead of `phppm/nginx`
9494```
0 commit comments