edit-icon download-icon

Log

Last Updated: Jan 04, 2018

Container Service, integrated with Alibaba Cloud Log Service, collects container logs and sends the logs to Alibaba Cloud Log Service.

Example:

  1. mysql:
  2. image: mysql
  3. ports:
  4. - 80
  5. labels:
  6. aliyun.scale: "1"
  7. environment:
  8. - MYSQL_ROOT_PASSWORD=password
  9. wordpress:
  10. image: registry.aliyuncs.com/jiangjizhong/wordpress
  11. ports:
  12. - 80
  13. labels:
  14. aliyun.routing.port_80: wordpress-with-log
  15. aliyun.log_store_dbstdout: stdout #Note here
  16. links:
  17. - mysql

For more information, see Enable Log Service.

Thank you! We've received your feedback.