{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27202","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27202/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27202/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27202/events","html_url":"https://github.com/docker/docker/issues/27202","id":181499805,"number":27202,"title":"/dev/console of docker implementation breaks systemd >= 231","user":{"login":"DirkTheDaring","id":8758376,"avatar_url":"https://avatars.githubusercontent.com/u/8758376?v=3","gravatar_id":"","url":"https://api.github.com/users/DirkTheDaring","html_url":"https://github.com/DirkTheDaring","followers_url":"https://api.github.com/users/DirkTheDaring/followers","following_url":"https://api.github.com/users/DirkTheDaring/following{/other_user}","gists_url":"https://api.github.com/users/DirkTheDaring/gists{/gist_id}","starred_url":"https://api.github.com/users/DirkTheDaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirkTheDaring/subscriptions","organizations_url":"https://api.github.com/users/DirkTheDaring/orgs","repos_url":"https://api.github.com/users/DirkTheDaring/repos","events_url":"https://api.github.com/users/DirkTheDaring/events{/privacy}","received_events_url":"https://api.github.com/users/DirkTheDaring/received_events","type":"User","site_admin":false},"labels":[{"id":73641990,"url":"https://api.github.com/repos/docker/docker/labels/area/runtime","name":"area/runtime","color":"fbca04","default":false},{"id":181681881,"url":"https://api.github.com/repos/docker/docker/labels/area/systemd","name":"area/systemd","color":"fbca04","default":false},{"id":182417459,"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-10-06T19:07:23Z","updated_at":"2016-11-29T23:30:28Z","closed_at":null,"body":"Hi guys,\n\nI heard bad reports abouts that systemd and docker folks cannot get along. \nHope this is not the case. With fedora-25 (alpha, now approaching beta)  systemd stopped working correctly within a docker container as process 1, if it configured to log to  /dev/console. It worked until fedora 24 because  systemd actually contained a bug, which made docker \"just work.\" Now with the technically more correct implementation /dev/console stopped working with docker, which actually needs now work the docker guys. \nPlease have a look at \n\nhttps://github.com/systemd/systemd/pull/4262\n\nIt contains a technical sound description of Lennart, what needs to investigated/changed into docker to make it work again in the comments to the broken /dev/console\n\nWithout any change, systemd will stop working from this point  which is, not a systemd, but a docker issue, from a technical point of view.\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/263734338","html_url":"https://github.com/docker/docker/issues/27202#issuecomment-263734338","issue_url":"https://api.github.com/repos/docker/docker/issues/27202","id":263734338,"user":{"login":"mrunalp","id":53798,"avatar_url":"https://avatars.githubusercontent.com/u/53798?v=3","gravatar_id":"","url":"https://api.github.com/users/mrunalp","html_url":"https://github.com/mrunalp","followers_url":"https://api.github.com/users/mrunalp/followers","following_url":"https://api.github.com/users/mrunalp/following{/other_user}","gists_url":"https://api.github.com/users/mrunalp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrunalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrunalp/subscriptions","organizations_url":"https://api.github.com/users/mrunalp/orgs","repos_url":"https://api.github.com/users/mrunalp/repos","events_url":"https://api.github.com/users/mrunalp/events{/privacy}","received_events_url":"https://api.github.com/users/mrunalp/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T23:30:28Z","updated_at":"2016-11-29T23:30:28Z","body":"okay, so this is what I did to run httpd under systemd with docker upstream latest code and fedora 24 based image.\r\nDockerfile:\r\n```\r\nFROM fedora:24\r\nENV container docker\r\nRUN dnf install -y httpd procps-ng && dnf clean all && systemctl enable httpd\r\nSTOPSIGNAL SIGRTMIN+3\r\nEXPOSE 80\r\nCMD [ \"/sbin/init\" ]\r\n```\r\nStarting the container:\r\n```\r\n[root@home docker]# ./bundles/1.14.0-dev/dynbinary-client/docker run --security-opt=seccomp:unconfined --cap-add SYS_ADMIN -v /sys/fs/cgroup/systemd:/sys/fs/cgroup/sy\r\nstemd --tmpfs /run --tmpfs /tmp -it --rm fedora-httpd \r\nsystemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD \r\n+IDN)\r\nDetected virtualization docker.\r\nDetected architecture x86-64.\r\nRunning with unpopulated /etc.\r\n\r\nWelcome to Fedora 24 (Twenty Four)!\r\n\r\nSet hostname to <fcf064ef8783>.\r\nInitializing machine ID from random generator.\r\nFailed to populate /etc with preset unit settings, ignoring: No such file or directory\r\n[  OK  ] Started Dispatch Password Requests to Console Directory Watch.\r\n[  OK  ] Listening on Journal Socket (/dev/log).\r\n[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.\r\n[  OK  ] Reached target Encrypted Volumes.\r\n[  OK  ] Reached target Swap.\r\n[  OK  ] Reached target Local File Systems.\r\n[  OK  ] Reached target Remote File Systems.\r\n[  OK  ] Listening on Journal Socket.\r\n[  OK  ] Created slice System Slice.\r\n         Starting Rebuild Journal Catalog...\r\n         Starting Journal Service...\r\n         Starting Rebuild Dynamic Linker Cache...\r\n         Starting First Boot Wizard...\r\n         Starting Load/Save Random Seed...\r\n[  OK  ] Started Forward Password Requests to Wall Directory Watch.\r\n[  OK  ] Reached target Paths.\r\n[  OK  ] Listening on Process Core Dump Socket.\r\n[  OK  ] Reached target Slices.\r\n[  OK  ] Started Rebuild Journal Catalog.\r\n[  OK  ] Started First Boot Wizard.\r\n[  OK  ] Started Load/Save Random Seed.\r\n         Starting Create System Users...\r\n[  OK  ] Started Rebuild Dynamic Linker Cache.\r\n[  OK  ] Started Create System Users.\r\n         Starting Update is Completed...\r\n[  OK  ] Started Journal Service.\r\n[  OK  ] Started Update is Completed.\r\n         Starting Flush Journal to Persistent Storage...\r\n[  OK  ] Started Flush Journal to Persistent Storage.\r\n Starting Create Volatile Files and Directories...\r\n[  OK  ] Started Create Volatile Files and Directories.\r\n         Starting Update UTMP about System Boot/Shutdown...\r\n[  OK  ] Started Update UTMP about System Boot/Shutdown.\r\n[  OK  ] Reached target System Initialization.\r\n[  OK  ] Listening on D-Bus System Message Bus Socket.\r\n[  OK  ] Reached target Sockets.\r\n[  OK  ] Started Daily Cleanup of Temporary Directories.\r\n[  OK  ] Started dnf makecache timer.\r\n[  OK  ] Reached target Timers.\r\n[  OK  ] Reached target Basic System.\r\n         Starting Permit User Sessions...\r\n         Starting The Apache HTTP Server...\r\n[  OK  ] Started D-Bus System Message Bus.\r\n[  OK  ] Started Permit User Sessions.\r\n[  OK  ] Started The Apache HTTP Server.\r\n[  OK  ] Reached target Multi-User System.\r\n         Starting Update UTMP about System Runlevel Changes...\r\n[  OK  ] Started Update UTMP about System Runlevel Changes.\r\n```\r\n\r\nOne can exec into this container and curl localhost:80\r\n```\r\n[root@home dockerfiles]# docker exec -it 659 sh\r\nsh-4.3# ps -ef\r\nUID        PID  PPID  C STIME TTY          TIME CMD\r\nroot         1     0  0 23:24 ?        00:00:00 /sbin/init\r\nroot        21     1  0 23:24 ?        00:00:00 /usr/lib/systemd/systemd-journald\r\ndbus        27     1  0 23:24 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation\r\nroot        29     1  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\napache      30    29  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\napache      32    29  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\napache      33    29  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\napache      37    29  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\napache      41    29  0 23:24 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND\r\nroot        62     0  0 23:24 ?        00:00:00 sh\r\nroot        68    62  0 23:24 ?        00:00:00 ps -ef\r\nsh-4.3# curl localhost:80\r\n...\r\n\r\nI expect this to fail when one switches image to fedora:latest or fedora:rawhide.\r\n"}}
{"actor":{"display_login":"mrunalp"}}