2

https://docs.docker.com/compose/startup-order/

Could someone point me to some docs or general knowledge of what the "--" means in this docker command?

command: ["./wait-for-it.sh", "db:5432", "--", "python", "app.py"]

I've always been weak at bash and unix things and wanted to learn more.

snakesNbronies
  • 3,619
  • 9
  • 44
  • 73
  • 1
    https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean-also-known-as-bare-double-dash – omajid Apr 09 '19 at 17:33

1 Answers1

1

The precise semantics of options depend entirely on the command. In this case, examine the documentation or source code of wait-for-it.sh. But commonly, a double dash is used to signal the end of options. Here, it looks like the arguments before the double dash are parameters for the script itself, and the stuff after the double dash is a command line (which could conceivably contain additional options, which should not be misunderstood as options for wait-for-it.sh itself).

tripleee
  • 175,061
  • 34
  • 275
  • 318