{"action":"created","issue":{"url":"https://api.github.com/repos/google/cadvisor/issues/537","labels_url":"https://api.github.com/repos/google/cadvisor/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/google/cadvisor/issues/537/comments","events_url":"https://api.github.com/repos/google/cadvisor/issues/537/events","html_url":"https://github.com/google/cadvisor/issues/537","id":58982031,"number":537,"title":"google/cadvisor:0.10.0 over marathon","user":{"login":"samek","id":125693,"avatar_url":"https://avatars.githubusercontent.com/u/125693?v=3","gravatar_id":"","url":"https://api.github.com/users/samek","html_url":"https://github.com/samek","followers_url":"https://api.github.com/users/samek/followers","following_url":"https://api.github.com/users/samek/following{/other_user}","gists_url":"https://api.github.com/users/samek/gists{/gist_id}","starred_url":"https://api.github.com/users/samek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samek/subscriptions","organizations_url":"https://api.github.com/users/samek/orgs","repos_url":"https://api.github.com/users/samek/repos","events_url":"https://api.github.com/users/samek/events{/privacy}","received_events_url":"https://api.github.com/users/samek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-25T22:41:03Z","updated_at":"2015-11-24T07:26:23Z","closed_at":"2015-02-26T16:24:50Z","body":"Hi, \r\nI wanted to start the 0.10.0 from marathon but it keeps restarting. \r\nLooking at the messos logs:\r\n----------------------------------------------------------------------------------------------------------\r\nI0225 23:25:19.067898   414 exec.cpp:132] Version: 0.21.1\r\nI0225 23:25:19.070999   438 exec.cpp:206] Executor registered on slave 20150225-221350-3238002698-5050-20322-S2\r\nE0225 22:25:19.087483 00001 manager.go:180] Failed to start OOM watcher, will not get OOM events: neither /var/log/messages nor /var/log/syslog exists from which to read kernel errors\r\nF0225 22:25:19.087891 00001 cadvisor.go:153] listen tcp :8080: bind: address already in use\r\ngoroutine 1 [running]:\r\ngithub.com/golang/glog.stacks(0x4c2080a5500, 0x0, 0x0, 0x0)\r\n\t/usr/local/google/home/vmarmol/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:726 +0xcd\r\ngithub.com/golang/glog.(*loggingT).output(0xf1a4c0, 0x4c200000003, 0x4c20800c900)\r\n\t/usr/local/google/home/vmarmol/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:677 +0x24c\r\ngithub.com/golang/glog.(*loggingT).print(0xf1a4c0, 0x4c200000003, 0x4c208217f38, 0x1, 0x1)\r\n\t/usr/local/google/home/vmarmol/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:626 +0x17c\r\ngithub.com/golang/glog.Fatal(0x4c208217f38, 0x1, 0x1)\r\n\t/usr/local/google/home/vmarmol/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:1019 +0x50\r\nmain.main()\r\n\t/usr/local/google/home/vmarmol/go/src/github.com/google/cadvisor/cadvisor.go:153 +0x17c6\r\n----------------------------------------------------------------------------------------------------------\r\n\r\n\r\n\r\nSo it want's to bind on 8080 which is already taken but, I've defined it to use marathon delegated host port.. \r\n\r\nmy marathon json: \r\n\r\n{\r\n  \"container\": {\r\n    \"type\": \"DOCKER\",\r\n    \"docker\": {\r\n      \"image\": \"google/cadvisor:0.10.0\"\r\n    },\r\n    \"volumes\": [\r\n      {\r\n        \"containerPath\": \"/rootfs\",\r\n        \"hostPath\": \"/\",\r\n        \"mode\": \"RO\"\r\n      },\r\n      {\r\n        \"containerPath\": \"/var/run\",\r\n        \"hostPath\": \"/var/run\",\r\n        \"mode\": \"RW\"\r\n      },\r\n      {\r\n        \"containerPath\": \"/sys\",\r\n        \"hostPath\": \"/sys\",\r\n        \"mode\": \"RO\"\r\n      },\r\n      {\r\n        \"containerPath\": \"/var/lib/docker\",\r\n        \"hostPath\": \"/var/lib/docker\",\r\n        \"mode\": \"RO\"\r\n      },\r\n      {\r\n        \"containerPath\": \"/cgroup\",\r\n        \"hostPath\": \"/cgroup\",\r\n        \"mode\": \"RO\"\r\n      }\r\n    ],\r\n    \"network\": \"BRIDGE\",\r\n    \"portMappings\": [\r\n\t    { \"containerPort\": 8080, \"hostPort\": 0, \"servicePort\": 8888, \"protocol\": \"tcp\" }\r\n    ]\r\n  },\r\n  \"id\": \"cadvisor-beta\",\r\n  \"instances\": 1,\r\n  \"cpus\": 0.5,\r\n  \"mem\": 512,\r\n  \"constraints\": [\r\n    [\r\n      \"hostname\",\r\n      \"UNIQUE\"\r\n    ]\r\n  ]\r\n}\r\n-----------------------------------------------------------------------------------------------------------------------------\r\nI have lot's of docker images for which i use portmappings this way  (like multiple nginx on same server)..\r\n\r\nam I doing something wrong ? \r\n\r\nP.S. I could not use :latest since I've got a different error:\r\n----------------\r\nI0225 22:44:04.620594 25157 exec.cpp:132] Version: 0.21.1\r\nF0225 21:44:04.595594 00001 cadvisor.go:76] Failed to create a Container Manager: open /sys/class/net/bonding_masters/address: not a directory\r\n----------------\r\nI'm using marathon Version 0.8.0 and mesos 0.21.1 with Docker version 1.5.0 on Ubuntu 12.04.4 LTS "},"comment":{"url":"https://api.github.com/repos/google/cadvisor/issues/comments/159182063","html_url":"https://github.com/google/cadvisor/issues/537#issuecomment-159182063","issue_url":"https://api.github.com/repos/google/cadvisor/issues/537","id":159182063,"user":{"login":"fenglvming","id":2157195,"avatar_url":"https://avatars.githubusercontent.com/u/2157195?v=3","gravatar_id":"","url":"https://api.github.com/users/fenglvming","html_url":"https://github.com/fenglvming","followers_url":"https://api.github.com/users/fenglvming/followers","following_url":"https://api.github.com/users/fenglvming/following{/other_user}","gists_url":"https://api.github.com/users/fenglvming/gists{/gist_id}","starred_url":"https://api.github.com/users/fenglvming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenglvming/subscriptions","organizations_url":"https://api.github.com/users/fenglvming/orgs","repos_url":"https://api.github.com/users/fenglvming/repos","events_url":"https://api.github.com/users/fenglvming/events{/privacy}","received_events_url":"https://api.github.com/users/fenglvming/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T07:26:23Z","updated_at":"2015-11-24T07:26:23Z","body":"marathon : 0.11.1"}}