I'm playing around with Docker and nginx and am using the default nginx image.

I wanted to take a look at the default nginx config before I started tweaking it. How do I get to it?

First, once you have a running docker image, go ahead and SSH into it, as I wrote about in my previous post.

Then just traverse the directory:

view plain print about
1cd etc/nginx

And there you can use the cat command to dump the file to the console:

view plain print about
1cat nginx.conf

From there you can start tweaking however you wish. When editing inside a running docker image--or Windows WSL--I'm a fan of Nano.