How can I completely reset my Docker setup?

0
8
Asked By CuriousCoder92 On

I'm diving into self-hosting and I'm using a project setup from GitHub to run my applications. I've managed to get everything running, but I've hit a snag with port 443 and want to start from scratch so I can carefully document what I'm doing. I found some information online about removing containers and their associated volumes, and I even ran the command `docker system prune -a -f --volumes`. However, when I tried accessing my server at `ipaddress:81`, Nginx was still trying to load, which makes me think my previous setup is still lingering somehow. How do I fully reset or 'nuke' my Docker containers? Am I missing something in the process? By the way, I'm using Linux and I have Tailscale set up for this project, but I'm still new to containers.

2 Answers

Answered By DockerDude24 On

If you're still seeing Nginx when accessing your IP, it might be worth checking your Docker networks. Sometimes, services can linger due to misconfigurations. You can list the networks using `docker network ls` and try removing any that look relevant to your old setup or that you don't need anymore. That could help fully clear things up.

Answered By TechieTom12 On

Before pruning, make sure to stop all running containers. You might want to run `docker stop $(docker ps -a -q)` to stop them all first. After that, using `docker system prune -a -f --volumes` should help you clear everything out, including the volumes. If Nginx is still hanging around, you may also want to check if there are any lingering networks or unused Docker images that could be affecting your setup.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.