Skip to content

Does rootless podman works? Can someone help me with setup? #3500

@frenkye

Description

@frenkye

Hi,

i tried to setup this for 3 scenarios:

  1. docker root - works
  2. docker rootless - works
  3. podman rootles - do not work

I have issue with cadvisor not returning metrics about cpu, memory of running containers. I would appreciate, if anyone could give me some hint how to do it.

I know for long time there wasnt full support in 0.47.2, but this should be now in 0.49.1 available since support was added in 0.48.0

Client:       Podman Engine
Version:      4.9.3
API Version:  4.9.3
Go Version:   go1.21.6
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

Last run command:

        RUN_IMAGE="podman run -d --restart always -p ${PORT}:8080 \
            -v /:/rootfs:ro \
            -v /etc/machine-id:/etc/machine-id:ro \
            -v /sys:/sys:ro \
            -v /dev/disk:/dev/disk:ro \
            -v /run/containerd/containerd.sock:/run/containerd/containerd.sock:rw \
            -v /run/user/${UID}/podman/podman.sock:/var/run/podman/podman.sock:ro \
            -v ${ROOTLESS_HOMEDIR}/.local/share/containers/:/var/lib/containers:ro \
            --name=${CONTAINER_NAME} \
            gcr.io/cadvisor/cadvisor:${CONTAINER_VERSION}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions