Monday, 28 November 2022

How to change the docker network default base?

sudo vim /etc/docker/daemon.json

old:-

{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}


new:-

{
    "bip": "192.168.1.1/24",
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}


No comments:

Post a Comment