{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/docker/issues/542","labels_url":"https://api.github.com/repos/chef-cookbooks/docker/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/docker/issues/542/comments","events_url":"https://api.github.com/repos/chef-cookbooks/docker/issues/542/events","html_url":"https://github.com/chef-cookbooks/docker/issues/542","id":115008127,"number":542,"title":"Docker 1.9.0 support","user":{"login":"manuelmazzuola","id":1757492,"avatar_url":"https://avatars.githubusercontent.com/u/1757492?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelmazzuola","html_url":"https://github.com/manuelmazzuola","followers_url":"https://api.github.com/users/manuelmazzuola/followers","following_url":"https://api.github.com/users/manuelmazzuola/following{/other_user}","gists_url":"https://api.github.com/users/manuelmazzuola/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelmazzuola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelmazzuola/subscriptions","organizations_url":"https://api.github.com/users/manuelmazzuola/orgs","repos_url":"https://api.github.com/users/manuelmazzuola/repos","events_url":"https://api.github.com/users/manuelmazzuola/events{/privacy}","received_events_url":"https://api.github.com/users/manuelmazzuola/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/docker/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-04T09:23:34Z","updated_at":"2015-12-17T11:22:13Z","closed_at":"2015-11-12T00:06:59Z","body":"Issue with docker 1.9.0\r\n\r\n ```\r\n Docker::Error::ConflictError\r\n           ----------------------------\r\n           Conflicting options: -h and the network mode (--net)\r\n           \r\n           Cookbook Trace:\r\n           ---------------\r\n           /tmp/kitchen/cookbooks/docker/files/default/vendor/gems/docker-api-1.22.4/lib/docker/connection.rb:48:in `rescue in \r\nrequest'\r\n           /tmp/kitchen/cookbooks/docker/files/default/vendor/gems/docker-api-1.22.4/lib/docker/connection.rb:38:in `request'\r\n           /tmp/kitchen/cookbooks/docker/files/default/vendor/gems/docker-api-1.22.4/lib/docker/connection.rb:65:in `block (2 l\r\nevels) in <class:Connection>'\r\n           /tmp/kitchen/cookbooks/docker/files/default/vendor/gems/docker-api-1.22.4/lib/docker/container.rb:234:in `create'\r\n           /tmp/kitchen/cookbooks/docker/libraries/docker_container.rb:181:in `block (3 levels) in <class:DockerContainer>'\r\n           /tmp/kitchen/cookbooks/docker/libraries/helpers_base.rb:67:in `call'\r\n           /tmp/kitchen/cookbooks/docker/libraries/helpers_base.rb:67:in `with_retries'\r\n           /tmp/kitchen/cookbooks/docker/libraries/docker_container.rb:180:in `block (2 levels) in <class:DockerContainer>'\r\n           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:50:in `converge_if_ch\r\nanged'\r\n           /tmp/kitchen/cookbooks/docker/libraries/docker_container.rb:177:in `block in <class:DockerContainer>'\r\n           /tmp/kitchen/cookbooks/docker/libraries/docker_container.rb:159:in `call_action'\r\n           /tmp/kitchen/cookbooks/docker/libraries/docker_container.rb:272:in `block in <class:DockerContainer>'\r\n\r\n   docker_container(\"sample-app\") do\r\n             action [:run]\r\n             updated true\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :default\r\n             declared_type :docker_container\r\n             cookbook_name :\"cd-docker\"\r\n             recipe_name \"default\"\r\n             repo \"cloudesire/sample-app\"\r\n             tag \"0.0.1\"\r\n             container_name \"sample-app\"\r\n             detach true\r\n             network_mode \"host\"\r\n             env [\"CLOUDESIRE_VHOST=test-cd-docker.appstaging.cloudesire.local\", \"DEFAULT_PORT_5000_TCP_PORT=3333\", \"DEFAULT_PO\r\nRT_5000_TCP_ADDRESS=localhost\"]\r\n             connection #<Docker::Connection:0x00000007845970 @url=\"unix:///\", @options={:socket=>\"/var/run/docker.sock\", \"read\r\n_timeout\"=>60}>\r\n             log_driver \"json-file\"\r\n             restart_policy \"no\"\r\n             security_opts [\"\"]\r\n             signal \"SIGKILL\"\r\n           end\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/docker/issues/comments/165428196","html_url":"https://github.com/chef-cookbooks/docker/issues/542#issuecomment-165428196","issue_url":"https://api.github.com/repos/chef-cookbooks/docker/issues/542","id":165428196,"user":{"login":"manuelmazzuola","id":1757492,"avatar_url":"https://avatars.githubusercontent.com/u/1757492?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelmazzuola","html_url":"https://github.com/manuelmazzuola","followers_url":"https://api.github.com/users/manuelmazzuola/followers","following_url":"https://api.github.com/users/manuelmazzuola/following{/other_user}","gists_url":"https://api.github.com/users/manuelmazzuola/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelmazzuola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelmazzuola/subscriptions","organizations_url":"https://api.github.com/users/manuelmazzuola/orgs","repos_url":"https://api.github.com/users/manuelmazzuola/repos","events_url":"https://api.github.com/users/manuelmazzuola/events{/privacy}","received_events_url":"https://api.github.com/users/manuelmazzuola/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T11:22:12Z","updated_at":"2015-12-17T11:22:12Z","body":"I'm still experiencing this isuee with the latest `2.3.16` cookbook.\r\n```\r\n[staging-nxt] out:   * docker_container[logstash-forwarder] action run\r\n[staging-nxt] out:     - stopping logstash-forwarder \r\n[staging-nxt] out:     - deleting logstash-forwarder\r\n[staging-nxt] out:     ================================================================================\r\n[staging-nxt] out:     Error executing action `run` on resource 'docker_container[logstash-forwarder]'\r\n[staging-nxt] out:     ================================================================================\r\n[staging-nxt] out:     \r\n[staging-nxt] out:     Docker::Error::ConflictError\r\n[staging-nxt] out:     ----------------------------\r\n[staging-nxt] out:     Conflicting options: -h and the network mode (--net)\r\n[staging-nxt] out:     \r\n\r\n[staging-nxt] out:     docker_container(\"logstash-forwarder\") do\r\n[staging-nxt] out:       params {:name=>\"logstash-forwarder\", :image_name=>\"digitalwonderland/logstash-forwarder\", :image_version=>\"latest\",\r\n:image_latest=>false, :port=>[], :env=>\"LOGSTASH_HOST=staging-nxt.cloudesire.com:5043\",  :subscribes=>[], :action=>nil, :command=>nil, :privileged=>false}\r\n[staging-nxt] out:       action [:run]\r\n[staging-nxt] out:       retries 0\r\n[staging-nxt] out:       retry_delay 2\r\n[staging-nxt] out:       default_guard_interpreter :default\r\n[staging-nxt] out:       declared_type :docker_container\r\n[staging-nxt] out:       cookbook_name :\"cd-infrastructure\"\r\n[staging-nxt] out:       recipe_name \"docker-logstash-forwarder\"\r\n[staging-nxt] out:       detach true\r\n[staging-nxt] out:       container_name \"logstash-forwarder\"\r\n[staging-nxt] out:       repo \"digitalwonderland/logstash-forwarder\"\r\n[staging-nxt] out:       tag \"latest\"\r\n[staging-nxt] out:       network_mode \"host\"\r\n[staging-nxt] out:       timeout 15\r\n[staging-nxt] out:       restart_policy \"always\"\r\n[staging-nxt] out:       restart_maximum_retry_count 2\r\n[staging-nxt] out:       connection #<Docker::Connection:0x0000000515e2a8 @url=\"unix:///\", @options={:socket=>\"/var/run/docker.sock\", :read_\r\ntimeout=>60}>\r\n[staging-nxt] out:     end\r\n```\r\n\r\n```\r\nubuntu@staging-nxt:~$ docker version\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n```"}}