docker-compose.yml: Why does restart "no" have to have quotation marks?

Viewed 5333

In the docker docs for docker-compose (https://docs.docker.com/compose/compose-file/#restart) this restart options are given:

restart: "no"
restart: always
restart: on-failure
restart: unless-stopped

I'm just wondering, why the "no" has to be in quotation marks and the other options not? The docker-compose can't start with no without quotation marks.

1 Answers
Related