{"action":"created","issue":{"url":"https://api.github.com/repos/ehazlett/interlock/issues/48","labels_url":"https://api.github.com/repos/ehazlett/interlock/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ehazlett/interlock/issues/48/comments","events_url":"https://api.github.com/repos/ehazlett/interlock/issues/48/events","html_url":"https://github.com/ehazlett/interlock/issues/48","id":91075333,"number":48,"title":"No ports exposed on a Swarm cluster","user":{"login":"yoanisgil","id":918271,"avatar_url":"https://avatars.githubusercontent.com/u/918271?v=3","gravatar_id":"","url":"https://api.github.com/users/yoanisgil","html_url":"https://github.com/yoanisgil","followers_url":"https://api.github.com/users/yoanisgil/followers","following_url":"https://api.github.com/users/yoanisgil/following{/other_user}","gists_url":"https://api.github.com/users/yoanisgil/gists{/gist_id}","starred_url":"https://api.github.com/users/yoanisgil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoanisgil/subscriptions","organizations_url":"https://api.github.com/users/yoanisgil/orgs","repos_url":"https://api.github.com/users/yoanisgil/repos","events_url":"https://api.github.com/users/yoanisgil/events{/privacy}","received_events_url":"https://api.github.com/users/yoanisgil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-25T21:02:53Z","updated_at":"2015-06-25T22:38:29Z","closed_at":null,"body":"Hi, I am getting the warning below:\r\n\r\n```\r\ntime=\"2015-06-25T20:53:53Z\" level=\"info\" msg=\"[interlock] dispatching event to plugin: name=haproxy version=0.1\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"info\" msg=\"[interlock] dispatching event to plugin: name=haproxy version=0.1\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"info\" msg=\"[interlock] dispatching event to plugin: name=haproxy version=0.1\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"info\" msg=\"[interlock] dispatching event to plugin: name=haproxy version=0.1\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] 8b53f9427351: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\ntime=\"2015-06-25T20:53:53Z\" level=\"warning\" msg=\"[haproxy] c433e7535019: no ports exposed\"\r\n```\r\n\r\nThis is all run in a swarm cluster. I launced interlock with:\r\n\r\n```\r\ndocker run -d -p 8080:8080 ehazlett/interlock --swarm-url tcp://10.1.8.43:2375 --plugin haproxy start\r\n```\r\n\r\nThis is the output from docker inspect on one those containers:\r\n\r\n```json\r\n[{\r\n    \"AppArmorProfile\": \"\",\r\n    \"Args\": [\r\n        \"-ip\",\r\n        \"10.1.8.52\",\r\n        \"consul://10.1.8.42:8500\"\r\n    ],\r\n    \"Config\": {\r\n        \"AttachStderr\": true,\r\n        \"AttachStdin\": false,\r\n        \"AttachStdout\": true,\r\n        \"Cmd\": [\r\n            \"-ip\",\r\n            \"10.1.8.52\",\r\n            \"consul://10.1.8.42:8500\"\r\n        ],\r\n        \"CpuShares\": 0,\r\n        \"Cpuset\": \"\",\r\n        \"Domainname\": \"crakmedia.lan\",\r\n        \"Entrypoint\": [\r\n            \"/bin/registrator\"\r\n        ],\r\n        \"Env\": [\r\n            \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\r\n        ],\r\n        \"ExposedPorts\": null,\r\n        \"Hostname\": \"aws038\",\r\n        \"Image\": \"jmaitrehenry/registrator\",\r\n        \"Labels\": {},\r\n        \"MacAddress\": \"\",\r\n        \"Memory\": 0,\r\n        \"MemorySwap\": 0,\r\n        \"NetworkDisabled\": false,\r\n        \"OnBuild\": null,\r\n        \"OpenStdin\": false,\r\n        \"PortSpecs\": null,\r\n        \"StdinOnce\": false,\r\n        \"Tty\": false,\r\n        \"User\": \"\",\r\n        \"Volumes\": null,\r\n        \"WorkingDir\": \"\"\r\n    },\r\n    \"Created\": \"2015-06-25T16:31:18.262059841Z\",\r\n    \"Driver\": \"devicemapper\",\r\n    \"ExecDriver\": \"native-0.2\",\r\n    \"ExecIDs\": null,\r\n    \"HostConfig\": {\r\n        \"Binds\": [\r\n            \"/var/run/docker.sock:/tmp/docker.sock\"\r\n        ],\r\n        \"CapAdd\": null,\r\n        \"CapDrop\": null,\r\n        \"CgroupParent\": \"\",\r\n        \"ContainerIDFile\": \"\",\r\n        \"CpuShares\": 0,\r\n        \"CpusetCpus\": \"\",\r\n        \"Devices\": [],\r\n        \"Dns\": null,\r\n        \"DnsSearch\": null,\r\n        \"ExtraHosts\": null,\r\n        \"IpcMode\": \"\",\r\n        \"Links\": null,\r\n        \"LogConfig\": {\r\n            \"Config\": null,\r\n            \"Type\": \"json-file\"\r\n        },\r\n        \"LxcConf\": [],\r\n        \"Memory\": 0,\r\n        \"MemorySwap\": 0,\r\n        \"NetworkMode\": \"bridge\",\r\n        \"PidMode\": \"\",\r\n        \"PortBindings\": {},\r\n        \"Privileged\": false,\r\n        \"PublishAllPorts\": false,\r\n        \"ReadonlyRootfs\": false,\r\n        \"RestartPolicy\": {\r\n            \"MaximumRetryCount\": 0,\r\n            \"Name\": \"no\"\r\n        },\r\n        \"SecurityOpt\": null,\r\n        \"Ulimits\": null,\r\n        \"VolumesFrom\": null\r\n    },\r\n    \"HostnamePath\": \"/var/lib/docker/containers/c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b/hostname\",\r\n    \"HostsPath\": \"/var/lib/docker/containers/c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b/hosts\",\r\n    \"Id\": \"c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b\",\r\n    \"Image\": \"3670a23094d05bbf18d54c285e0a1f96af9076ff18b1ac073a6e0e00bc50c5c9\",\r\n    \"LogPath\": \"/var/lib/docker/containers/c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b/c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b-json.log\",\r\n    \"MountLabel\": \"\",\r\n    \"Node\": {\r\n        \"ID\": \"SUG7:SFJX:FAGB:32TC:YEJY:Q5FS:2AIU:TKPG:4JTC:LN7J:2ZPR:Q5DE\",\r\n        \"IP\": \"10.1.8.52\",\r\n        \"Addr\": \"10.1.8.52:2375\",\r\n        \"Name\": \"aws038.crakmedia.lan\",\r\n        \"Cpus\": 4,\r\n        \"Memory\": 8070311936,\r\n        \"Labels\": {\r\n            \"executiondriver\": \"native-0.2\",\r\n            \"kernelversion\": \"3.10.0-229.4.2.el7.x86_64\",\r\n            \"operatingsystem\": \"CentOS Linux 7 (Core)\",\r\n            \"storagedriver\": \"devicemapper\"\r\n        }\r\n    },\r\n    \"Name\": \"/aws038.crakmedia.lan\",\r\n    \"NetworkSettings\": {\r\n        \"Bridge\": \"docker0\",\r\n        \"Gateway\": \"172.17.42.1\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"172.17.0.8\",\r\n        \"IPPrefixLen\": 16,\r\n        \"IPv6Gateway\": \"\",\r\n        \"LinkLocalIPv6Address\": \"fe80::42:acff:fe11:8\",\r\n        \"LinkLocalIPv6PrefixLen\": 64,\r\n        \"MacAddress\": \"02:42:ac:11:00:08\",\r\n        \"PortMapping\": null,\r\n        \"Ports\": {}\r\n    },\r\n    \"Path\": \"/bin/registrator\",\r\n    \"ProcessLabel\": \"\",\r\n    \"ResolvConfPath\": \"/var/lib/docker/containers/c433e7535019d8019bb39c15af01625f2e18d59f92ac57f9966b8c78771fc89b/resolv.conf\",\r\n    \"RestartCount\": 0,\r\n    \"State\": {\r\n        \"Dead\": false,\r\n        \"Error\": \"\",\r\n        \"ExitCode\": 0,\r\n        \"FinishedAt\": \"0001-01-01T00:00:00Z\",\r\n        \"OOMKilled\": false,\r\n        \"Paused\": false,\r\n        \"Pid\": 11847,\r\n        \"Restarting\": false,\r\n        \"Running\": true,\r\n        \"StartedAt\": \"2015-06-25T16:31:19.459395099Z\"\r\n    },\r\n    \"Volumes\": {\r\n        \"/tmp/docker.sock\": \"/run/docker.sock\"\r\n    },\r\n    \"VolumesRW\": {\r\n        \"/tmp/docker.sock\": true\r\n    }\r\n}\r\n]\r\n```\r\n\r\nThe swarm cluster is using Consul and Registrator. Containers are being launched with:\r\n\r\n```\r\n docker-compose -f deploy-blue.yml scale skeletonserviceblue=4\r\n```\r\n\r\nThe service defintion is:\r\n\r\n```\r\nskeletonserviceblue:\r\n  extends:\r\n    file: deploy-common.yml\r\n    service: skeletonservice\r\n  image:\r\n    crakmedia/skeleton-service:blue\r\n```\r\n\r\nwith contens from deploy-common.yml, like:\r\n\r\n```\r\nskeletonservice:\r\n  ports:\r\n   - \"80\"\r\n   - \"443\"\r\n  volumes:\r\n    - /var/log/skeleton-service:/var/log\r\n    - /var/log/skeleton-service/nginx:/var/log/nginx\r\n    - /var/log/skeleton-service/php-fpm:/var/log/php-fpm\r\n    - /var/lib/php/session:/tmp/php-session\r\n``` \r\n\r\nAny ideas what might be causing this?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ehazlett/interlock/issues/comments/115421419","html_url":"https://github.com/ehazlett/interlock/issues/48#issuecomment-115421419","issue_url":"https://api.github.com/repos/ehazlett/interlock/issues/48","id":115421419,"user":{"login":"yoanisgil","id":918271,"avatar_url":"https://avatars.githubusercontent.com/u/918271?v=3","gravatar_id":"","url":"https://api.github.com/users/yoanisgil","html_url":"https://github.com/yoanisgil","followers_url":"https://api.github.com/users/yoanisgil/followers","following_url":"https://api.github.com/users/yoanisgil/following{/other_user}","gists_url":"https://api.github.com/users/yoanisgil/gists{/gist_id}","starred_url":"https://api.github.com/users/yoanisgil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoanisgil/subscriptions","organizations_url":"https://api.github.com/users/yoanisgil/orgs","repos_url":"https://api.github.com/users/yoanisgil/repos","events_url":"https://api.github.com/users/yoanisgil/events{/privacy}","received_events_url":"https://api.github.com/users/yoanisgil/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T22:38:29Z","updated_at":"2015-06-25T22:38:29Z","body":"Hm i am going to double check since it looks like I posted the wrong inspect output "}}