I am trying to run a docker container for nginx providing reverse-proxy.
The command I am trying is:
docker run --name nginx-proxy -p 80:80 -v ./nginx.conf:/etc/nginx/nginx.conf:ro -v ./logs/nginx:/var/log/nginx -d nginx
but it stops immediately after started. Result of docker ps -a is:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
89b3526e2c25 nginx "nginx -g 'daemon off" 11 seconds ago Exited (1) 10 seconds ago nginx-proxy
How can I make this container always running?