What to do when Centos 7 runs out of space on /

I recently ran into the problem of Centos 7 running out of space on / and when I restarted the machine it was unable to boot into the gui because it ran out of hard drive space. I was also not able to boot into emergency mode systemd.unit=emergency.target or rescue mode systemd.unit=rescue.target because / was just out of space.

How I solved this problem was to boot into the main image and pressed Esc on the keyboard to watch the boot process happening. I saw that SSH was able to start up and the network was able to be established. I SSH into the box and ran sudo du -h –max-depth=1 on / to see where all the space was taken up. After some searching I was able to locate /var/lib/docker that was using up the entire space allocated to /. The space was taken up in the /containers and the /volumes folders. I ran rm /var/lib/docker/container/* and rm /var/lib/docker/volumes/* This freed up almost all the space on /. I rebooted and Centos 7 came up as expected.

2020 Book list

  1. Outliers
  2. The Longest Ride
  3. Mort
  4. Pirates Past Noon
  5. The Crucible: A Play in Four Acts
  6. Freakonomics
  7. White Fang
  8. The Complete Idiot’s Guide to Simple Home Repair
  9. Everything Is F*cked: A Book About Hope
  10. Master Builder Roblox
  11. On Stranger Tides
  12. The Origin of Species
  13. Attached
  14. A Tale of Two Cities
  15. The Subtle Art of Not Giving A F**k, Counterintuitive Approach to Living A Good Life
  16. Breakfast of Champions
  17. Sourcery: A Novel of Discworld
  18. Salem’s Lot
  19. 26 Marathons: What I Learned About Faith, Identity, Running, and Life from My Marathon Career
  20. Dear Girls: Intimate Tales, Untold Secrets & Advice for Living Your Best Life
  21. Black Beauty
  22. In cold blood
  23. Here Be Monsters
  24. The Advanced Roblox Coding Book
  25. The song of Solomon
  26. Artemis Fowl
  27. The Secret Garden

2020 Goals

  1. Redacted ███████████ – in process
  2. Redacted ███████████ – in process
  3. Read more books – 38 books last year is going to be hard to beat but I can try. -20 already so I am on track to beat 38 books.
  4. Year of the Rattie? – this is going to be a next year thing
  5. Review 2019 Goals – should be an easy one right except I can not find them. Lets just say last year was a hurricane that I survived and became stronger because of it. – Done
  6. Make a goals list of 10 or more – really throwing myself a softball here huh. – Done
  7. Under two hours for the Mini Marathon – Event was virtualized and I walked it on my own.
  8. Finally run the Monumental Marathon – 26.2 miles baby – Event went virtual and I will move this goal to next year.
  9. Learn two things I have in mind – slow going on this.
  10. Work on website again – doing so and having fun.
  11. Try to update one page a day – seems to be a good challenge – should have made this one page a week.
  12. Mark off goal six already – yippee – Done
  13. Lucky number?
  14. Remind myself to make lucky number 11 instead of 13.
  15. Try out streaming
  16. 2019 Wash it all away!
  17. 2020 Best year ever!!! – Boy was this way wrong.
  18. Try out ██████ again – slow going.