docker-archive / for-azure

27 stars 18 forks source link

Unexpected pid '100050root': strconv.Atoi: parsing "100050root": invalid syntax #56

Closed djeeg closed 6 years ago

djeeg commented 6 years ago

Find a container

$ docker ps | grep redis
eff366c1acb0 8 days ago          Up 8 days (unhealthy) hdtl_data_redis.1.pfma6polo8

Try docker top command

$ docker top eff366c1acb0
Error response from daemon: Unexpected pid '100050root': strconv.Atoi: parsing "100050root": invalid syntax

Check maximum pid allowed

$ cat /proc/sys/kernel/pid_max
131072

Dumping processes, I can see after 99999, the pid and uid get joined in the output (possibly related to how the docker top command is handling an internal function?)

$ps afjx
99772 root       0:01 [cifsd]
99932 root       0:01 [cifsd]
100050root       0:00 [cifsd]
100525root       0:01 [cifsd]
100590root       0:00 [cifsd]
100710root       0:01 [cifsd]
100736root       0:01 [cifsd]
101482root       0:01 [cifsd]

Dont seem to get this problem on dev because maxiumim pid is under 100k

$ cat /proc/sys/kernel/pid_max
65536

Could a workaround be limiting pid to 99999 in docker for-azure image?

djeeg commented 6 years ago

Closing as it looks like its an engine issue

https://github.com/moby/moby/issues/30580 https://github.com/moby/moby/issues/34282