{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15504","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15504/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15504/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15504/events","html_url":"https://github.com/ansible/ansible/issues/15504","id":149787976,"number":15504,"title":"cannot unmarshal array into Go value","user":{"login":"danielhauagge","id":1358818,"avatar_url":"https://avatars.githubusercontent.com/u/1358818?v=3","gravatar_id":"","url":"https://api.github.com/users/danielhauagge","html_url":"https://github.com/danielhauagge","followers_url":"https://api.github.com/users/danielhauagge/followers","following_url":"https://api.github.com/users/danielhauagge/following{/other_user}","gists_url":"https://api.github.com/users/danielhauagge/gists{/gist_id}","starred_url":"https://api.github.com/users/danielhauagge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielhauagge/subscriptions","organizations_url":"https://api.github.com/users/danielhauagge/orgs","repos_url":"https://api.github.com/users/danielhauagge/repos","events_url":"https://api.github.com/users/danielhauagge/events{/privacy}","received_events_url":"https://api.github.com/users/danielhauagge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T14:43:13Z","updated_at":"2016-04-20T14:43:13Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.1.0\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n\r\n##### OS / ENVIRONMENT\r\nUbuntu 14.04\r\nDocker version 1.10.3, build 20f81dd (also tried version 1.11.0 with same error)\r\nDocker-Py version 1.8.0\r\n\r\n##### SUMMARY\r\nI get the error \"cannot unmarshal array into Go value\" when I try to launch a docker container with volumes attached to it. The error only occurs when I specify a mounting point.\r\n\r\n##### STEPS TO REPRODUCE\r\nJust run `ansible-playbook test2.yml`\r\n```\r\n---\r\n- hosts: dl2\r\n  tasks:\r\n  - name: Launch ubuntu\r\n    docker:\r\n      state: started\r\n      image: ubuntu\r\n      command: sleep 1d\r\n      volumes:\r\n        - \"/tmp:/inbox\"\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n\r\n##### ACTUAL RESULTS\r\n###### short version of output\r\n```\r\nPLAY [dl2] *********************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [dl2]\r\n\r\nTASK [Launch ubuntu] ***********************************************************\r\nfatal: [dl2]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Docker API Error: json: cannot unmarshal array into Go value of type string\"}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @test2.retry\r\n\r\nPLAY RECAP *********************************************************************\r\ndl2                        : ok=1    changed=0    unreachable=0    failed=1   \r\n\r\n```\r\n###### verbose version of output\r\n```\r\nNo config file found; using defaults\r\nLoaded callback default of type stdout, v2.0\r\n\r\nPLAYBOOK: test2.yml ************************************************************\r\n1 plays in test2.yml\r\n\r\nPLAY [dl2] *********************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\n<dl2> ESTABLISH LOCAL CONNECTION FOR USER: daniel\r\n<dl2> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `\" && echo \"` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `\" )'\r\n<dl2> PUT /tmp/tmpg0NEE7 TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup\r\n<dl2> EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup; rm -rf \"/home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/\" > /dev/null 2>&1'\r\nok: [dl2]\r\n\r\nTASK [Launch ubuntu] ***********************************************************\r\ntask path: .../test2.yml:4\r\n<dl2> ESTABLISH LOCAL CONNECTION FOR USER: daniel\r\n<dl2> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `\" && echo \"` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `\" )'\r\n<dl2> PUT /tmp/tmpX_tBFI TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker\r\n<dl2> EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker; rm -rf \"/home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/\" > /dev/null 2>&1'\r\nfatal: [dl2]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"cap_add\": null, \"cap_drop\": null, \"command\": \"sleep 1d\", \"count\": 1, \"cpu_set\": null, \"cpu_shares\": 0, \"debug\": false, \"detach\": true, \"devices\": null, \"dns\": null, \"docker_api_version\": \"1.22\", \"docker_url\": null, \"docker_user\": null, \"domainname\": null, \"email\": null, \"entrypoint\": null, \"env\": null, \"env_file\": null, \"expose\": null, \"extra_hosts\": null, \"hostname\": null, \"image\": \"ubuntu\", \"insecure_registry\": false, \"labels\": {}, \"links\": null, \"log_driver\": null, \"log_opt\": null, \"lxc_conf\": null, \"memory_limit\": \"0\", \"memory_swap\": \"0\", \"name\": null, \"net\": null, \"password\": null, \"pid\": null, \"ports\": null, \"privileged\": false, \"publish_all_ports\": false, \"pull\": \"missing\", \"read_only\": null, \"registry\": null, \"restart_policy\": null, \"restart_policy_retry\": 0, \"signal\": null, \"state\": \"started\", \"stdin_open\": false, \"stop_timeout\": 10, \"timeout\": 60, \"tls_ca_cert\": null, \"tls_client_cert\": null, \"tls_client_key\": null, \"tls_hostname\": null, \"tty\": false, \"ulimits\": null, \"use_tls\": null, \"username\": null, \"volumes\": [\"/tmp:/inbox\"], \"volumes_from\": null}, \"module_name\": \"docker\"}, \"msg\": \"Docker API Error: json: cannot unmarshal array into Go value of type string\"}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @test2.retry\r\n\r\nPLAY RECAP *********************************************************************\r\ndl2                        : ok=1    changed=0    unreachable=0    failed=1   \r\n```"}}