Using top to view resource usage in docker, an error is reported: term environment variable

Alibaba cloud Q & A 2022-02-13 09:17:33 阅读数:1,001

using view resource usage docker

Docker Next use top Check the resource usage and report an error :TERM environment variable set: image.png

Take the answer 1:

Hello! , This is because ,top The operation of the command needs to specify the terminal type , That's one “TERM” Environment variables of . You can try running top When combined with -b Parameters . Or in docker Of run Command plus -it Parameters . There are similar scenes on the Internet for reference :

[email protected]:/# topTERM environment variable not [email protected]:/# echo [email protected]:/# export TERM=dumb

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.