如何对docker容器使用strace进行debug?
命令如下:
alias cstrace='cstrace(){PID=$(cpid "$1");shift;sudo strace -tt -T -f -s 200 -p "${PID}" };cstrace '
使用方法
假设docker容器名叫test
cstrace test
相关推荐
咏月东南 2020-06-11
caspertian 2020-05-26
spartmap 2013-07-29
atb 2019-12-25
shlamp 2015-03-27
Ongoingcre 2019-11-06
poloyzhang 2019-08-05
airfish000 2010-12-06
viplinux 2018-12-21
GDLinux 2019-08-13
六六哥 2015-03-27
sunln00 2012-02-15
Ongoingcre 2011-12-15
GodLong 2011-08-27
zhongcanw 2011-07-18
LinuxStory 2011-04-15
SIstvan 2017-08-04
leeknives 2012-12-02