I am trying to specify the max file size for json-file
in docker-compose.yml
, like this,
log-opt:
max-size=50m
but when I tried to docker-compose up
, it threw 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 am using docker 1.11.2