{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10453","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10453/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10453/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10453/events","html_url":"https://github.com/ansible/ansible/issues/10453","id":60933263,"number":10453,"title":"Ansible Docker Module Errors out.","user":{"login":"bdastur","id":8317046,"avatar_url":"https://avatars.githubusercontent.com/u/8317046?v=3","gravatar_id":"","url":"https://api.github.com/users/bdastur","html_url":"https://github.com/bdastur","followers_url":"https://api.github.com/users/bdastur/followers","following_url":"https://api.github.com/users/bdastur/following{/other_user}","gists_url":"https://api.github.com/users/bdastur/gists{/gist_id}","starred_url":"https://api.github.com/users/bdastur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdastur/subscriptions","organizations_url":"https://api.github.com/users/bdastur/orgs","repos_url":"https://api.github.com/users/bdastur/repos","events_url":"https://api.github.com/users/bdastur/events{/privacy}","received_events_url":"https://api.github.com/users/bdastur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-12T23:21:21Z","updated_at":"2015-03-13T05:17:18Z","closed_at":null,"body":"Summary:\r\nExecuting a task using the docker module throws an error. Note that the same task was working fine on the same host, but has suddenly started throwing and error.  \r\n\r\nAlso if I convert this to execute the task using command module it works.\r\n\r\nI am executing the following task from my playbook to start a docker container.\r\n```\r\n- name: Start the Galera Docker Service \r\n  docker:\r\n    name: \"mariadb_v1\"\r\n    image: \"{{ dockers.mariadb.image_id }}\" \r\n    volumes: \"{{ dockers.mariadb.host_data_dir }}:{{ dockers.mariadb.host_data_dir }}\"\r\n    stdin_open: yes\r\n    ports: \"3306:3306, 4567:4567\"\r\n    privileged: yes\r\n    net: \"host\"\r\n    command: \"{{ dockers.mariadb.host_data_dir }}/mariadb_start.sh\"\r\n  when: command_result.stdout == \"\" \r\n```\r\n\r\nTASK: [galera_server | Start the Galera Docker Service] *********************** \r\n<172.22.191.206> ESTABLISH CONNECTION FOR USER: centos\r\n...\r\n<172.22.191.206> REMOTE_MODULE docker ports='3306:3306, 4567:4567' net=host volumes=/dockers/mariadb:\r\n/dockers/mariadb command=/dockers/mariadb/mariadb_start.sh image=e9198fa0274a name=mariadb_v1\r\n<172.22.191.207> REMOTE_MODULE docker ports='3306:3306, 4567:4567' net=host volumes=/dockers/mariadb:\r\n/dockers/mariadb command=/dockers/mariadb/mariadb_start.sh image=e9198fa0274a name=mariadb_v1\r\n<172.22.191.208> REMOTE_MODULE docker ports='3306:3306, 4567:4567' net=host volumes=/dockers/mariadb:\r\n/dockers/mariadb command=/dockers/mariadb/mariadb_start.sh image=e9198fa0274a name=mariadb_v1\r\n<172.22.191.206> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/\r\nbdastur/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication\r\n=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentic\r\nation=no -o User=centos -o ConnectTimeout=120 172.22.191.206 /bin/sh -c 'sudo -k && sudo -H -S -p \"[s\r\nudo via ansible, key=pxezevjstnzroeefsfsjkhiraikpqaht] password: \" -u root /bin/sh -c \"echo BECOME-SU\r\nCCESS-pxezevjstnzroeefsfsjkhiraikpqaht; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python\"'\r\n<172.22.191.207> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/\r\nbdastur/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication\r\n=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentic\r\nation=no -o User=centos -o ConnectTimeout=120 172.22.191.207 /bin/sh -c 'sudo -k && sudo -H -S -p \"[s\r\nudo via ansible, key=rnyxokantfsypwbjkmurcqcjfzaboxmp] password: \" -u root /bin/sh -c \"echo BECOME-SU\r\nCCESS-rnyxokantfsypwbjkmurcqcjfzaboxmp; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python\"'\r\n<172.22.191.208> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/\r\nbdastur/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication\r\n=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentic\r\nation=no -o User=centos -o ConnectTimeout=120 172.22.191.208 /bin/sh -c 'sudo -k && sudo -H -S -p \"[s\r\nudo via ansible, key=wcfuqrjabayucinpbrncciuuxvjtzyap] password: \" -u root /bin/sh -c \"echo BECOME-SU\r\nCCESS-wcfuqrjabayucinpbrncciuuxvjtzyap; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python\"'\r\nfailed: [172.22.191.206] => {\"failed\": true, \"parsed\": false}\r\nBECOME-SUCCESS-pxezevjstnzroeefsfsjkhiraikpqaht\r\nOpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011\r\ndebug1: Reading configuration data /etc/ssh_config\r\ndebug1: /etc/ssh_config line 20: Applying options for *\r\ndebug1: /etc/ssh_config line 102: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 25739\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 3032, in <module>\r\n  File \"<stdin>\", line 1406, in main\r\n  File \"<stdin>\", line 1274, in started\r\n  File \"<stdin>\", line 1185, in start_containers\r\nTypeError: start() got an unexpected keyword argument 'pid_mode'\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/78808412","html_url":"https://github.com/ansible/ansible/issues/10453#issuecomment-78808412","issue_url":"https://api.github.com/repos/ansible/ansible/issues/10453","id":78808412,"user":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T05:17:18Z","updated_at":"2015-03-13T05:17:18Z","body":"PR where this was added: https://github.com/ansible/ansible-modules-core/pull/890"}}