I'm still learning docker and AWS, and I've had a docker process running awhile with 50gb EBS storage, and now I'm out of disk space and as a result, docker no longer starts up when I reboot my instance.
When I try sudo du -h / | grep '[0-9\.]\+G'
I get:
1.8G /var/lib/docker/containers/f7cf0...
17G /var/lib/docker/containers/55b7e...
2.8G /var/lib/docker/containers/987b0...
22G /var/lib/docker/containers/726b0...
44G /var/lib/docker/containers
4.3G /var/lib/docker/devicemapper/devicemapper
4.3G /var/lib/docker/devicemapper
48G /var/lib/docker
48G /var/lib
48G /var
0 /sys/bus/mdio_bus/drivers/Generic 10G PHY
50G /
And when I try sudo docker ps -a
I get:
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
I don't want to touch the 726b0... process, that's the most important. Will it cause problems if I delete the .log file for 55b7e...? Is there a cleaner way to do that than to just remove the file?
:> whatever.log