Creating cbreak_sultans_1 … Error
Cannot create container for service sultans
Error:
cbd start
returns the following error:
Creating cbreak_sultans_1 ... error
ERROR: for cbreak_sultans_1 Cannot create container for service sultans: unknown log opt 'max-size' for journald log driver
Creating cbreak_consul_1
Creating cbreak_logrotate_1 ... error
Creating cbreak_periscope_1 ... error
Creating cbreak_mail_1 ... error
Creating cbreak_haveged_1 ... error
ERROR: for cbreak_mail_1 Cannot create container for service mail: unknown log opt 'max-size' for journald log driver
Creating cbreak_uluwatu_1 ... error
Creating cbreak_smartsense_1 ... error
Creating cbreak_consul_1 ... error
Creating cbreak_identity_1 ... error
ERROR: for cbreak_identity_1 Cannot create container for service identity: unknown log opt 'max-file' for journald log driver
Creating cbreak_logsink_1 ... error
Creating cbreak_commondb_1 ... error
ERROR: for cbreak_commondb_1 Cannot create container for service commondb: unknown log opt 'max-size' for journald log driver
ERROR: for haveged Cannot create container for service haveged: unknown log opt 'max-size' for journald log driver
ERROR: for uluwatu Cannot create container for service uluwatu: unknown log opt 'max-size' for journald log driver
ERROR: for consul Cannot create container for service consul: unknown log opt 'max-size' for journald log driver
ERROR: for commondb Cannot create container for service commondb: unknown log opt 'max-size' for journald log driver
ERROR: for logrotate Cannot create container for service logrotate: unknown log opt 'max-size' for journald log driver
ERROR: for periscope Cannot create container for service periscope: unknown log opt 'max-size' for journald log driver
ERROR: for sultans Cannot create container for service sultans: unknown log opt 'max-size' for journald log driver
ERROR: for mail Cannot create container for service mail: unknown log opt 'max-size' for journald log driver
ERROR: for logsink Cannot create container for service logsink: unknown log opt 'max-size' for journald log driver
ERROR: for smartsense Cannot create container for service smartsense: unknown log opt 'max-size' for journald log driver
ERROR: for identity Cannot create container for service identity: unknown log opt 'max-file' for journald log driver
Encountered errors while bringing up the project.
Solution: This error means that your Docker logging drivers are not configured correctly. To resolve the issue, on your Cloudbreak VM:
- Check the Docker Logging Driver
configuration:
docker info | grep "Logging Driver"
If it is set to “Logging Driver: journald”, you must set it to “json-file”.
- Open the
docker
file for editing:vi /etc/sysconfig/docker
- Edit the following part of the file so that it looks like below (showing
log-driver=json-file
):# Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false'
- Restart
Docker:
systemctl restart docker systemctl status docker