I should be able to retrieve CPU usage information from the process table of a Docker container on Mac.
Attempting to retrieve CPU usage information causes an error.
OS X: version 10.11.5 (build: 15F34) Docker.app: version v1.11.1-beta12 Running diagnostic tests: [OK] Moby booted [OK] driver.amd64-linux [OK] vmnetd [OK] osxfs [OK] db [OK] slirp [OK] menubar [OK] environment [OK] Docker [OK] VT-x Docker logs are being collected into /tmp/20160524-105904.tar.gz Most specific failure is: No error was detected Your unique id is: C7EE1F29-FE15-48B3-A118-4680F0C7B27B Please quote this in all correspondence.
Steps to reproduce the behavior
- Start a docker container.
docker top [containerid] a -o pid,%cpu
On my Ubuntu system that command produces output like this.
PID %CPU 2453 0.0
On my OS X system that command produces this output:
Error response from daemon: Error running ps: exit status 1