{"action":"created","issue":{"url":"https://api.github.com/repos/adaline/dockermail/issues/6","labels_url":"https://api.github.com/repos/adaline/dockermail/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/adaline/dockermail/issues/6/comments","events_url":"https://api.github.com/repos/adaline/dockermail/issues/6/events","html_url":"https://github.com/adaline/dockermail/issues/6","id":104343049,"number":6,"title":"Failure starting dovecot","user":{"login":"pauldorn","id":684857,"avatar_url":"https://avatars.githubusercontent.com/u/684857?v=3","gravatar_id":"","url":"https://api.github.com/users/pauldorn","html_url":"https://github.com/pauldorn","followers_url":"https://api.github.com/users/pauldorn/followers","following_url":"https://api.github.com/users/pauldorn/following{/other_user}","gists_url":"https://api.github.com/users/pauldorn/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldorn/subscriptions","organizations_url":"https://api.github.com/users/pauldorn/orgs","repos_url":"https://api.github.com/users/pauldorn/repos","events_url":"https://api.github.com/users/pauldorn/events{/privacy}","received_events_url":"https://api.github.com/users/pauldorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-01T20:02:06Z","updated_at":"2015-11-11T10:53:37Z","closed_at":null,"body":"I followed the READMEs and configured everything =.  I believe it is all correct, having rechecked a number of times.\r\nI get this strangeness when I docker-compose up\r\n\r\n**********************************************************\r\n * Restarting IMAP/POP3 mail server dovecot\r\n   ...done.\r\n * Starting IMAP/POP3 mail server dovecot\r\nFatal: Dovecot is already running with PID 2828 (read from /var/run/dovecot/master.pid)\r\n   ...fail!\r\ninvoke-rc.d: initscript dovecot, action \"start\" failed.\r\ndpkg: error processing package dovecot-core (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n dovecot-core\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\nService 'core' failed to build: The command '/bin/sh -c echo \"#!/bin/sh\\nexit 0\" > /usr/sbin/policy-rc.d &&     apt-get update && apt-get install -y     ssl-cert     postfix     dovecot-imapd &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100\r\n"},"comment":{"url":"https://api.github.com/repos/adaline/dockermail/issues/comments/155735464","html_url":"https://github.com/adaline/dockermail/issues/6#issuecomment-155735464","issue_url":"https://api.github.com/repos/adaline/dockermail/issues/6","id":155735464,"user":{"login":"izderadicka","id":2185733,"avatar_url":"https://avatars.githubusercontent.com/u/2185733?v=3","gravatar_id":"","url":"https://api.github.com/users/izderadicka","html_url":"https://github.com/izderadicka","followers_url":"https://api.github.com/users/izderadicka/followers","following_url":"https://api.github.com/users/izderadicka/following{/other_user}","gists_url":"https://api.github.com/users/izderadicka/gists{/gist_id}","starred_url":"https://api.github.com/users/izderadicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izderadicka/subscriptions","organizations_url":"https://api.github.com/users/izderadicka/orgs","repos_url":"https://api.github.com/users/izderadicka/repos","events_url":"https://api.github.com/users/izderadicka/events{/privacy}","received_events_url":"https://api.github.com/users/izderadicka/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T10:53:37Z","updated_at":"2015-11-11T10:53:37Z","body":"I have exactly same issue - it goes down to installation of dovecot  ( I put this into separate step)\r\n\r\n```\r\nStep 8 : RUN apt-get install dovecot-imapd\r\n ---> Running in 6d43c5b2d6fc\r\nReading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nThe following NEW packages will be installed:\r\n  dovecot-imapd\r\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 126 kB of archives.\r\nAfter this operation, 1073 kB of additional disk space will be used.\r\nGet:1 http://archive.ubuntu.com/ubuntu/ wily/main dovecot-imapd amd64 1:2.2.18-2ubuntu2 [126 kB]\r\ndebconf: delaying package configuration, since apt-utils is not installed\r\nFetched 126 kB in 1s (84.4 kB/s)\r\nSelecting previously unselected package dovecot-imapd.\r\n(Reading database ... 9608 files and directories currently installed.)\r\nPreparing to unpack .../dovecot-imapd_1%3a2.2.18-2ubuntu2_amd64.deb ...\r\nUnpacking dovecot-imapd (1:2.2.18-2ubuntu2) ...\r\nProcessing triggers for dovecot-core (1:2.2.18-2ubuntu2) ...\r\n * Restarting IMAP/POP3 mail server dovecot\r\n   ...done.\r\n * Starting IMAP/POP3 mail server dovecot\r\nFatal: Dovecot is already running with PID 60 (read from /var/run/dovecot/master.pid)\r\n   ...fail!\r\ninvoke-rc.d: initscript dovecot, action \"start\" failed.\r\ndpkg: error processing package dovecot-core (--unpack):\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n dovecot-core\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\nThe command '/bin/sh -c apt-get install dovecot-imapd' returned a non-zero code: 100\r\n```\r\n\r\nIt looks like there some bug in post-install script in this package - question is why it works for you - where is the difference.  ( I'm running docker 1.7.1 locally on ubuntu 14.04)"}}