xcore Posted June 16 Share Posted June 16 (edited) Hi, I changed my question to answer since I figured it out. Might be it will help soneone else down the road. By default Docker assigns 172.17/16 subnet to the bridge. In my case I needed 172.17/16 for macvlan network, so I swapped default allocation to 172.18/16. In order to do this: 1. # mkdir /etc/docker && cd /etc/docker 2. # echo > /etc/docker/daemon.json <<EOF { "bip": "172.18.0.1/16", "default-address-pools": [ {"base": "172.18.0.0/16", "size": 24} ] } EOF 3. Restart Docker and enjoy your new bridge allocation. If at any point you need to observe Docker log: # tail -f /var/log/docker.log Thank you. Edited June 16 by xcore solved 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.