{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash-docker/issues/88","repository_url":"https://api.github.com/repos/elastic/logstash-docker","labels_url":"https://api.github.com/repos/elastic/logstash-docker/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash-docker/issues/88/comments","events_url":"https://api.github.com/repos/elastic/logstash-docker/issues/88/events","html_url":"https://github.com/elastic/logstash-docker/issues/88","id":331594480,"node_id":"MDU6SXNzdWUzMzE1OTQ0ODA=","number":88,"title":"Running logstash 6.x in Docker Swarm creates nonconfigurable container","user":{"login":"vlindhol","id":6213477,"node_id":"MDQ6VXNlcjYyMTM0Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/6213477?v=4","gravatar_id":"","url":"https://api.github.com/users/vlindhol","html_url":"https://github.com/vlindhol","followers_url":"https://api.github.com/users/vlindhol/followers","following_url":"https://api.github.com/users/vlindhol/following{/other_user}","gists_url":"https://api.github.com/users/vlindhol/gists{/gist_id}","starred_url":"https://api.github.com/users/vlindhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlindhol/subscriptions","organizations_url":"https://api.github.com/users/vlindhol/orgs","repos_url":"https://api.github.com/users/vlindhol/repos","events_url":"https://api.github.com/users/vlindhol/events{/privacy}","received_events_url":"https://api.github.com/users/vlindhol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-12T13:45:18Z","updated_at":"2018-08-14T23:36:50Z","closed_at":null,"author_association":"NONE","body":"I have the following simple `docker-compose.yml` file:\r\n\r\n```yml\r\nversion: \"3\"\r\n\r\nservices:\r\n  logstash:\r\n      image: docker.elastic.co/logstash/logstash:6.2.4\r\n      volumes:\r\n        - ./logstash/config/:/usr/share/logstash/config/\r\n        - ./logstash/pipeline/:/usr/share/logstash/pipeline/\r\n      deploy:\r\n        mode: replicated\r\n        replicas: 1\r\n```\r\n\r\nwhere the pipeline is configured with a TCP input and elasticsearch output. Logstash 6.x in Docker fails to read the configuration when run in a Docker Swarm, i.e. with the command `docker swarm init; docker stack deploy --compose-file docker-compose.yml asdf`. The symptom: logstash starts up and immediately quits, presumably because it uses the default stdin config.\r\n\r\nRunning the same file with `docker-compose up` works. Running Logstash 5.x works.\r\n\r\nThe culprit MAY be that for some reason the container startup command (obtained by `docker ps --no-trunc`) for the working setups is `\"/usr/local/bin/docker-entrypoint\"` but for some reason the command for the broken 6.x container in the Docker Swarm is `\"/docker-entrypoint -e \"`. In logstash 6.x the empty `-e` flag overrides the configuration file (as far as I know), even if the file mounts correctly into the container.\r\n\r\nI have no idea why this weird command is generated in the Swarm but not in compose. Setting the `entrypoint` property in the compose file to the \"right\" value makes logstash not start at all.\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash-docker/issues/comments/413049299","html_url":"https://github.com/elastic/logstash-docker/issues/88#issuecomment-413049299","issue_url":"https://api.github.com/repos/elastic/logstash-docker/issues/88","id":413049299,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA0OTI5OQ==","user":{"login":"jarpy","id":119659,"node_id":"MDQ6VXNlcjExOTY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119659?v=4","gravatar_id":"","url":"https://api.github.com/users/jarpy","html_url":"https://github.com/jarpy","followers_url":"https://api.github.com/users/jarpy/followers","following_url":"https://api.github.com/users/jarpy/following{/other_user}","gists_url":"https://api.github.com/users/jarpy/gists{/gist_id}","starred_url":"https://api.github.com/users/jarpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarpy/subscriptions","organizations_url":"https://api.github.com/users/jarpy/orgs","repos_url":"https://api.github.com/users/jarpy/repos","events_url":"https://api.github.com/users/jarpy/events{/privacy}","received_events_url":"https://api.github.com/users/jarpy/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T23:36:50Z","updated_at":"2018-08-14T23:36:50Z","author_association":"CONTRIBUTOR","body":"Excellent! Thanks for reporting in, and happy 'stashing!"}}
{"actor":{"display_login":"jarpy"}}