I am trying to specify the maximum file size for json-filein docker-compose.yml, for example,
log-opt:
max-size=50m
but when I tried docker-compose up, he gave me an error,
ERROR: In file './docker-compose.yml', service 'log-opt' must be a mapping not a string.
How to fix it?
ps. I usedocker 1.11.2
source
share