How to connect to Docker API from another machine?

后端 未结 4 1757
抹茶落季
抹茶落季 2020-12-22 20:01

I\'m trying to use the Docker API to connect to docker daemon from another machine. I am able to do this command successfully:

docker -H=tcp://127.0.0.1:4243         


        
4条回答
  •  庸人自扰
    2020-12-22 21:04

    You need to listen to 0.0.0.0. When you listen on 127.0.0.1, it means that no one outside your host will be able to connect.

提交回复
热议问题