Sign inSign up

homecentr/cadvisor

By homecentr

Updated about 6 years ago

Image
0

1.9K

homecentr/cadvisor repository overview

Project status

CI/CD on master Regular Docker image vulnerability scan

HomeCentr - cAdvisor

This docker image is a repack of the original cAdvisor compliant with the HomeCenter docker images standard (S6 overlay, privilege drop etc.).

Usage

version: "3.7"
services:
  cadvisor:
    build: .
    image: homecentr/cadvisor
    restart: unless-stopped
    ports:
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /etc/machine-id:/etc/machine-id:ro

Environment variables

NameDefault valueDescription
PUID7077UID of the user cadvisor should be running as. The UID must have sufficient rights to read from the Docker socket and the mounted directories (e.g. /var/lib/docker).
PGID7077GID of the user cadvisor should be running as. You must set the PUID if you want to set the PGID variable.
CADVISOR_ARGS-logtostderrCommand line arguments to cadvisor executable. By default the logs are redirected to the container output

Exposed ports

PortProtocolDescription
8080TCPMetrics in Prometheus format

Volumes

Make sure you mount the Docker socket

Security

The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.

Container user

The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The cadvisor process runs as UID/GID provided in the PUID and PGID environment variables.

:warning: Do not change the container user directly using the user Docker compose property or using the --user argument. This would break the privilege drop logic.

:bulb: To grant a user the permission to read Docker socket, you can add them to the docker group which is automatically created as a part of the Docker installation.

Tag summary

Content type

Image

Digest

Size

54.9 MB

Last updated

about 6 years ago

docker pull homecentr/cadvisor