How to completely delete and remove data from host? #460

Open
opened 2025-12-29 01:19:25 +01:00 by adam · 2 comments
Owner

Originally created by @timvisee on GitHub (Jan 23, 2023).

I've installed and ran this using this command successfully.

What steps to I need to take to remove everything from the host system, does running this leave a system image/drive somewhere?

I've run:

  • docker rmi sickcodes/docker-osx:*

Are there other steps I need to take?

Originally created by @timvisee on GitHub (Jan 23, 2023). I've installed and ran this using [this](https://github.com/sickcodes/Docker-OSX#ventura-) command successfully. What steps to I need to take to remove everything from the host system, does running this leave a system image/drive somewhere? I've run: - `docker rmi sickcodes/docker-osx:*` Are there other steps I need to take?
Author
Owner

@sickcodes commented on GitHub (Jan 23, 2023):

sudo rm -rf /var/lib/docker/ will nuke all your images

You can use docker inspect so see all the other files.

Anything worth nuking would end in .img

So find /var/lib/docker | grep img and remove all/some of those as appropriate

@sickcodes commented on GitHub (Jan 23, 2023): `sudo rm -rf /var/lib/docker/` will nuke all your images You can use `docker inspect` so see all the other files. Anything worth nuking would end in `.img` So `find /var/lib/docker | grep img` and remove all/some of those as appropriate
Author
Owner

@timvisee commented on GitHub (Jan 25, 2023):

So that means running a VM won't clutter the host with other files, other than images, right?

Fantastic!

@timvisee commented on GitHub (Jan 25, 2023): So that means running a VM won't clutter the host with other files, other than images, right? Fantastic!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#460