Investigate how ptop gathers system information (likely from /proc or psutil) and why it fails inside Docker. Check if the Docker container lacks necessary permissions or mounts for /proc. Look at the chart rendering code to see if it expects specific data formats. Review any existing comments or linked issues for clues.
Memory and CPU charts are not loaded when run in docker · darxtrix/ptop#17 | Good First Issue