开启remote api

  1. 修改配置
    [Service]
    ExecStart=
    ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2376 --registry-mirror=https://xxxx
    

    注意:新增参数-H tcp://0.0.0.0:2376

  2. 重新加载
    sudo systemctl daemon-reload
    
  3. 重启docker服务
    sudo systemctl restart docker
    

results matching ""

    No results matching ""