The quickest but not the best way to get it up is:
docker run --detach --publish 80:80/tcp --publish 443:443/tcp --interactive --tty --name debian-nginx creased/debian-nginxPlease consider using:
docker create --publish 80:80/tcp --publish 443:443/tcp --interactive --tty --name debian-nginx creased/debian-nginx
docker start debian-nginxWhen done, turn on your web browser and crawl your docker machine (e.g., http://127.0.0.1/) to see your phpinfo().
/etc/nginx/: Nginx's configuration directory ;/etc/php5/fpm/: PHP-FPM's configuration directory ;/usr/share/nginx/: HTTP's data directory ;/var/www/: Alternative to default HTTP's data directory. Must be defined as root directory inside Nginx configuration file to be effective.
Let's suppose that debian-nginx is the name of your container.
Using docker logs:
docker logs --follow debian-nginxUsing docker attach:
docker attach --detach-keys="ctrl-w" debian-nginxLet's suppose that debian-nginx is the name of your container:
docker exec --interactive --tty debian-nginx bashThen you will be able to manage your configuration files, debug daemons and much more...