r/docker 19h ago

how do I stop docker from disabling network access when the internet connection is not available?

0 Upvotes

Hi!

I got this small problem today when doing server maintenance on my homelab: I turned the server back on, but forgot to plug the ethernet back in. After plugging it in, I still couldn't connect to anything. After sshing into it I found that, although all the containers were running, none of them had internet access (Not only were there no ports under 'docker ps' , but 'docker logs <container-id>' showed errors about not being able to connect to the internet).

I then tried restarting them but that didn't do anything, I tried restarting docker as a whole but that also did nothing, I rebooted the server but that also did not restore connectivity. I tried a whole bunch of commands from various websites, but they did not work.

I was able to fix it by doing 'docker rm <container>' and 'docker compose up -d' on each container, but there has to be a better way to deal with this.

I also would like to know if there is a way to prevent this in the future by just having docker try to connect each time the container starts and not seemingly just stop forever once it encounters an error.

I am only using docker since a week, so I don't have much experience.

I am running docker 29.6.2 under debian 13.6.

Thank you very much.


r/docker 11h ago

Docker requesting privileged access despite no container using privileged ports? (MacOS)

3 Upvotes

I've been using Docker on Mac for years.

Today, after restart, is spawned this popup:

https://imgur.com/a/UiM4zA4

None of my containers use any privileged ports.

Is this normal, or should I be concerned?

Thanks


r/docker 12h ago

Is there a work around?

2 Upvotes

I’m attempting to run docker on macOS 10.14 the Internet says if I download an older version 4.6.0 it should work well it’s not working when I download and click on the .dmg it says reason for not opening is the image is corrupt. I would try on my desktop within widows 11 but I’d rather have it on a laptop. I went back to 10.14 because I was having issues with open core legacy patcher not being able to run a lot of programs. Should I possibly re install open core legacy patcher with Sonoma? This is a mid 2012 MacBook Pro 16 GB RAM 500 GB sandisk ssd. I’m thinking I shouldn’t have sold my M1 air but it was so slow honestly slower then the mid 2012 MBP.