I'm a beginner with Docker and I'm facing an issue. I had both a WordPress and an Immich container that were functioning well for months, and I accessed them using my local IP and port. Now, suddenly, they're not working anymore. When I run `docker ps` in the terminal, I can see that the containers are running and healthy, but I can't connect to them via my IP and port. I've double-checked that my IP matches my private IP in the configuration file. What should I do to troubleshoot this issue?
4 Answers
First, try pinging the IP address of your machine to see if it's reachable. If that works, use the telnet command to check if the port is open. It’s also a good idea to check the logs of your containers for any errors.
Are you directly on the machine running Docker? Try accessing your containers through a browser using localhost and the respective port number for each app (http://localhost:xxxxx). If you can access them like this, everything should be fine on the Docker side. You can use `docker inspect` followed by the container name or ID to check the details, including port mapping.
Make sure there's no network overlap. If the network settings are incorrect, it can mess with your connections. You might want to inspect your setup.
Could you share the Docker Compose file or the command you used to set up your containers? That might help in identifying the issue.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux