letri Posted February 15, 2020 Share Posted February 15, 2020 I recently had an issue with my cache drive and lost all my docker container configurations. So I've had to start over. I previously had a custom docker network defined and a number of my docker containers connected to that network and things worked great. All those containers could connect to one another using internal IP addresses and the docker containers could connect to the outside world (internet) as well. However, now that I'm trying to set everything up from scratch again it seems like no matter how I define the custom network in docker any docker containers running using that network have no internet access. For example, I'm defining the network using: "docker network create --subnet=172.1.0.0/24 letsencrypt-nginx" Then if I run any docker container and have it run on that network and give it an ip in that subnet (say, 172.1.0.20), that container cannot connect to the internet. This has been frustrating me to no end for 2 hours now so I decided to resort to asking for help here in the forums. If anyone can tell me how I can allow my containers connected to my custom network access to the internet I'd appreciate it! Quote Link to comment
letri Posted February 15, 2020 Author Share Posted February 15, 2020 Well - turns out the solution was to reboot After rebooting everything now works as expected. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.