Docker stats inside incus container doesn't give any information

Anyone know how to get ‘docker stats’ giving me usefull information when running from inside an incus container? docker containers runs fine, but I don’t get any docker performance statistics?

When I run ‘docker stats’ inside an incus container all I get is:

CONTAINER ID   NAME              CPU %     MEM USAGE / LIMIT   MEM %     NET I/O   BLOCK I/O   PIDS 
ee9e4df1391b   cluster           --        -- / --             --        --        --          -- 
e4b8c858dcd4   sensor2mqtt       --        -- / --             --        --        --          -- 
1dd584330c33   mariadb           --        -- / --             --        --        --          -- 
e997834225ce   telegraf          --        -- / --             --        --        --          -- 
7f94321ebdf6   homeassistant     --        -- / --             --        --        --          -- 
10f75d182e30   wiki              --        -- / --             --        --        --          -- 
bc345e802c5c   gitea             --        -- / --             --        --        --          -- 
876011b1d89c   victoriametrics   --        -- / --             --        --        --          -- 
ac54d4cdfb9e   nginx             --        -- / --             --        --        --          -- 
15d8eb4bf4c5   mosquitto         --        -- / --             --        --        --          -- 
f13289810c7e   phpipam-cron      --        -- / --             --        --        --          -- 
a82e68c22b67   smokeping         --        -- / --             --        --        --          -- 
3769a20e8064   grafana           --        -- / --             --        --        --          -- 
085150b25549   phpipam-web       --        -- / --             --        --        --          -- 

Anything specific to your Incus container?
I am able to see the value for docker stats on my end.

Not that I am aware off. It’s running in privileged mode and has security.nesting set to true…anything else needed?

which distro is running in the Incus container?

Thanks for the hint! I am running alpine as incus container and apparently I need something more in there than the bare minimum because when running a debian container with docker it works indeed…

Aside: you shouldn’t need to set security.privileged to run docker. I use:

security.nesting=true security.syscalls.intercept.mknod=true security.syscalls.intercept.setxattr=true

I know, but needed some host bind mounts to have same uid/gid permissions set as on he host. Not sure if that could be more smart, but making it privileged was the easiest :wink: