Usually in my experience docker puts its images in /var/lib/docker. If your /var is on its own partition, or overall your disk space isn't big enough you'll have a bad time.
If you have other partitions with spare room, you can move the subdir docker from /var/lib to the other partition/drive, then symlink /var/lib/docker to that.