bip.docker

#systemctl stop docker

bip放前面可生效。/etc/docker/daemon.json

{

"bip": "192.168.168.1/24"

}

{

    "runtimes": {

        "nvidia": {

            "path": "nvidia-container-runtime",

            "runtimeArgs": []

        }

    }

}

#systemctl daemon-reload

#systemctl start docker

docker0更改完后,就将bip放到后面

{

    "runtimes": {

        "nvidia": {

            "path": "nvidia-container-runtime",

            "runtimeArgs": []

        }

    }

}

{

"bip": "192.168.168.1/24"

}

#systemctl daemon-reload

#systemctl restart docker

posted @ 2023-10-08 15:22  巴州夜雨  阅读(117)  评论(0编辑  收藏  举报