Additional properties 'logging' not allowed #499
Unanswered
roadhazard
asked this question in
Q&A
Replies: 1 comment
-
|
the logging section needs proper indentation in docker-compose. it should be inside the service, not at root level. should look like: services:
jellystat:
image: ...
logging:
driver: json-file
options:
max-size: 10mif youre using compose v2 (docker compose instead of docker-compose) the syntax is slightly different too. also check your docker compose version with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I copied and pasted the sample yml file into docker-compose.yml and when I try to launch it: docker compose up -d, I get the following error: additional properties 'logging' not allowed
I'm sort of a newbie when it comes to docker and did some Googling and it seems that the 'logging' line isn't where it needs to be. So the sample yml file on the main page is incorrect?
Beta Was this translation helpful? Give feedback.
All reactions