Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can `docker rm -v <container>` to remove a ccontainer + its volumes. For larger stuff typically I just read the docker-compose file with all of that listed in one place, so its pretty easy to just `docker rm` the volumes and networks. With apt I have no idea what files were added or modified and there's no simple "undo".


I wasn't aware of '-v' so thanks for that.

You can list package content with 'dpkg -L', although, granted, it doesn't cover files that were somehow created by the install script. Also 'apt purge' removes all files including config.


It’s very nice, although I had a hard time getting the btrfs driver to actually remove the backing store a year or so back.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: