You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've always had this issue with Docker for Mac where every now and again I need to clear out all my networks and start over, but it's happening increasingly often now, and has just happened to me today where I run a new docker compose up because I'm out of networks.
My networks:
~ > docker network ls
NETWORK ID NAME DRIVER SCOPE
27f9b9d52378 REDACTED bridge local
35653444f797 REDACTED bridge local
62342258f4c9 REDACTED bridge local
c1b2681fc627 REDACTED bridge local
5377ff88dfb6 REDACTED bridge local
71826180339f REDACTED bridge local
7d03dc42a8c3 REDACTED bridge local
5ce06468c994 REDACTED bridge local
7a2b85411b98 REDACTED bridge local
a8352dad0bae REDACTED bridge local
f7a379308a0f REDACTED bridge local
afec6569dd12 REDACTED bridge local
68730d3287ac REDACTED bridge local
c962983e80cd REDACTED host local
feb09544371b REDACTED bridge local
79ff9b3b3de4 REDACTED bridge local
97f926deb5ab REDACTED bridge local
4b6af8251762 REDACTED bridge local
db840dc45461 REDACTED bridge local
4eaf56560b2e REDACTED bridge local
edc92d1a4c9a REDACTED bridge local
ee8277913b99 REDACTED bridge local
9d1cbca59bcf REDACTED bridge local
01612c5f82c5 REDACTED bridge local
ab0ec921f7de REDACTED bridge local
c6962a921947 REDACTED null local
992e4edd0057 REDACTED bridge local
7e97010a45ac REDACTED bridge local
6f47b655fcc2 REDACTED bridge local
f998ee6d6fa8 REDACTED bridge local
7355d4bf6880 REDACTED bridge local
cfe99de79a53 REDACTED bridge local
7a276d4da169 REDACTED bridge local
I've solved this previously with a docker system prune but I would prefer to solve this by setting my Resources > Network Docker subnet to something like 172.16.20.0/22. However, this field only seems to allow a /24 CIDR. What's going on here? This limitation is super annoying when you work in an agency with lots of projects.
Reproduce
Use docker for Mac
Have many projects
Run out of networks
Try to change config to allow yourself more networks
We recently discussed that internally and an Engine user also opened an issue to change the list of 'default address pools' (see moby/moby#47737) -- this would make more subnets available.
We want to merge another change first, and then we'll change that default value. This should be fixed in a few versions.
As a workaround, you can put this in your daemon.json (Settings > Docker Engine):
@akerouanton thanks so much, and thank you for the temporary workaround. That's especially appreciated, as I mentioned I'm stuck on an older version so wouldn't be able to upgrade anyway. Really appreciate your quick reply on this.
Description
I've always had this issue with Docker for Mac where every now and again I need to clear out all my networks and start over, but it's happening increasingly often now, and has just happened to me today where I run a new
docker compose up
because I'm out of networks.My networks:
I've solved this previously with a
docker system prune
but I would prefer to solve this by setting my Resources > Network Docker subnet to something like172.16.20.0/22
. However, this field only seems to allow a/24
CIDR. What's going on here? This limitation is super annoying when you work in an agency with lots of projects.Reproduce
Expected behavior
I should be able to create many more networks.
docker version
docker info
Diagnostics ID
0FCC5372-02A5-4C31-9906-384A4F1AEEE5/20240501133406
Additional Info
I know I'm on an older version of Docker for Mac but I am affected by this issue and can't upgrade until it's solved.
The text was updated successfully, but these errors were encountered: