0

https://en.wikipedia.org/wiki/Debug_symbol

When running nginx on the docker, I was curious about -g option.

CMD ["nginx", "-g", "daemon off;"]

Searching wikipedia, it is so hard for me.

-g option, can I use new commands? or Is there any other difference?

Plz, Tell me. Thanks! :D

Artemis
  • 2,553
  • 7
  • 21
  • 36
clucle
  • 164
  • 11

1 Answers1

1

The -g option of NGINX is used for specifying NGINX flags, daemon off in this case.
It has nothing to do with GCC's -g option or the mentioned Wikipedia link.

For NGINX command line options, see:

For explanation about the daemon off setting:

valiano
  • 16,433
  • 7
  • 64
  • 79