How to connect to Docker API from another machine?

后端 未结 4 1758
抹茶落季
抹茶落季 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 20:45

    Please note that in doing this, you have given anyone, and any URL sent to you by email access to your Docker API, and thus root permission.

    you should, at minimum, secure your socket using https: http://docs.docker.com/articles/https/

提交回复
热议问题