Docker Community Forums

Share and learn in the Docker community.

Docker does not apply settings from daemon.json

Expected behavior

Docker should apply network settings written in daemon.json

Actual behavior

Docker dosn’t do it

Information

In the steps to reproduce the behavior

Steps to reproduce the behavior

  1. I add settings:
    {
    “fixed-cidr”:“192.168.4.0/22”
    }
    in daemon.json file, located at c:\program files\docker.
    Dockerd.exe located in the same location
  2. Restart docker service
  3. Run a container
  4. After starting container, i type ipconfig and see network settings, which are default - the network is not that is written in daemon.json:

IPv4 Address. . . . . . . . . . . : 172.17.244.17
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.17.240.1

  • How to resolve the problem ?