{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/mysql/issues/146","repository_url":"https://api.github.com/repos/docker-library/mysql","labels_url":"https://api.github.com/repos/docker-library/mysql/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/mysql/issues/146/comments","events_url":"https://api.github.com/repos/docker-library/mysql/issues/146/events","html_url":"https://github.com/docker-library/mysql/issues/146","id":135634486,"number":146,"title":"5.7.10-fails to mount volume `/var/log/mysql`","user":{"login":"zmpandzmp","id":5378517,"avatar_url":"https://avatars.githubusercontent.com/u/5378517?v=3","gravatar_id":"","url":"https://api.github.com/users/zmpandzmp","html_url":"https://github.com/zmpandzmp","followers_url":"https://api.github.com/users/zmpandzmp/followers","following_url":"https://api.github.com/users/zmpandzmp/following{/other_user}","gists_url":"https://api.github.com/users/zmpandzmp/gists{/gist_id}","starred_url":"https://api.github.com/users/zmpandzmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmpandzmp/subscriptions","organizations_url":"https://api.github.com/users/zmpandzmp/orgs","repos_url":"https://api.github.com/users/zmpandzmp/repos","events_url":"https://api.github.com/users/zmpandzmp/events{/privacy}","received_events_url":"https://api.github.com/users/zmpandzmp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-23T05:01:44Z","updated_at":"2016-03-23T17:45:03Z","closed_at":null,"body":"In oder to collect mysql `error log` and `slow query log` to logstash, I mount host volume `/data/logs/mysql` to the container `/var/log/mysql`:\r\nMy docker-compose.yml:\r\n>\r\nversion: '2'\r\nservices:\r\n  mysql:\r\n    image: clkj.com/docker/mysql:5.7.10\r\n    container_name: mysql\r\n    restart: always\r\n    network_mode: \"bridge\"\r\n    privileged: true\r\n    environment:\r\n      - MYSQL_ROOT_PASSWORD=password\r\n    volumes:\r\n      - /data/mysql/var/lib/mysql:/var/lib/mysql\r\n      - ./conf:/etc/mysql/conf.d\r\n      - /data/logs/mysql:/var/log/mysql\r\n\r\nand my conf/log.cnf:\r\n>\r\n[mysqld]\r\nlog-error             = /var/log/mysql/error.log\r\nslow_query_log        = ON\r\nslow_query_log_file   = /var/log/mysql/slow.log\r\nslow_launch_time      = 2\r\n\r\nbut the container `exited with code 0`. The container runs up when I remove the ` - /data/logs/mysql:/var/log/mysql` configuration;\r\n\r\nOS: CentOS 7\r\nMySQL: 5.7.10"},"comment":{"url":"https://api.github.com/repos/docker-library/mysql/issues/comments/200462419","html_url":"https://github.com/docker-library/mysql/issues/146#issuecomment-200462419","issue_url":"https://api.github.com/repos/docker-library/mysql/issues/146","id":200462419,"user":{"login":"yosifkit","id":896423,"avatar_url":"https://avatars.githubusercontent.com/u/896423?v=3","gravatar_id":"","url":"https://api.github.com/users/yosifkit","html_url":"https://github.com/yosifkit","followers_url":"https://api.github.com/users/yosifkit/followers","following_url":"https://api.github.com/users/yosifkit/following{/other_user}","gists_url":"https://api.github.com/users/yosifkit/gists{/gist_id}","starred_url":"https://api.github.com/users/yosifkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosifkit/subscriptions","organizations_url":"https://api.github.com/users/yosifkit/orgs","repos_url":"https://api.github.com/users/yosifkit/repos","events_url":"https://api.github.com/users/yosifkit/events{/privacy}","received_events_url":"https://api.github.com/users/yosifkit/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T17:45:03Z","updated_at":"2016-03-23T17:45:03Z","body":"@ltangvald can we use the same `--vebose --help` to get any log directories that they have configured?"}}