I don't think you should **mount** the `/etc/nginx` folder directly. This will **override** your `nginx` **configuration** and cause the container to fail. Instead, you can mount your **configuration file** to `/etc/nginx/nginx.conf`. Check the official `nginx` **documentation** in [Dockerhub][1] for more details on how to properly run the container. [1]: https://hub.docker.com/_/nginx