Gangmax Blog

Remove Docker Instance Content from Host

This a troubleshooting record when I find some Docker instances on a Docker host do not work.

  1. First I find “docker ps” does not show me the expected result. Instead, it says docker service does not work properly.

  2. I try “sudo service docker restart” before “docker ps” but get the same result.

  3. Restart does not fix the problem.

  4. I find the disk is full by “df -Th”. So that is the root cause.

  5. Obviously some Docker instance on this host exhausted all the disk space. I need to remove the content of it.

  6. Finally I find it:

1
2
root@bq177:/var/lib/docker/aufs/diff/4491e00fe0d51e79301e5db598e28b5ec38ed95a9fba4f718e857f3866bdf218/root/ecom-sim/ecom/log# ll simulator-provider.log 
-rw-r--r-- 1 root root 300889444352 Feb 16 15:40 simulator-provider.log

Now my only question is that why the author of this program made this happen: a 300GB log file after 30 days running.

Comments