You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just trying out cAdvisor, but I'm not able to start it using the provided instructions on my Mac OSX 10.11.
My docker-machine is indeed running, however when running the command to start cAdvisor it acts as if there is no docker-machine running. I guess this has something to do with running as sudo?
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cf5fc76aff66 ibmcom/db2express-c:latest "/entrypoint.sh db2st" 3 days ago Up 3 days 22/tcp, 0.0.0.0:50000->50000/tcp notis-db2
f38aefa530ea mysql "/entrypoint.sh mysql" 3 days ago Up 3 days 0.0.0.0:3306->3306/tcp notis-mysql
3241fddf07a5 postgres "/docker-entrypoint.s" 3 days ago Up 3 days 0.0.0.0:5432->5432/tcp notis-postgres
$ sudo docker run \
> --volume=/:/rootfs:ro \
> --volume=/var/run:/var/run:rw \
> --volume=/sys:/sys:ro \
> --volume=/var/lib/docker/:/var/lib/docker:ro \
> --publish=8080:8080 \
> --detach=true \
> --name=cadvisor \
> google/cadvisor:latest
Post http:///var/run/docker.sock/v1.20/containers/create?name=cadvisor: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?
The text was updated successfully, but these errors were encountered:
It looks like it works if I start WITHOUT running as sudo. I tried this but got a bit thrown off by the fact that the container log was completely empty. But when accessing my docker-machine on 8080, the dashboard is indeed there.
Webpage on port 8080 is provided by cAdvisor, which means cAdvisor is up. However, from your log, it seems that the cAdvisor cannot connect to the Docker's socket.
You are using docker on Mac, all containers are running in VMs on your Mac. Maybe you should find out which /var/run path is really mounted, is the same one on the same VM of other containers?
I'm just trying out cAdvisor, but I'm not able to start it using the provided instructions on my Mac OSX 10.11.
My docker-machine is indeed running, however when running the command to start cAdvisor it acts as if there is no docker-machine running. I guess this has something to do with running as sudo?
The text was updated successfully, but these errors were encountered: