How do I find the Docker REST API URL?

后端 未结 4 885
面向向阳花
面向向阳花 2020-12-02 12:16

I have installed the Docker build step plugin for Jenkins.

The documentation is telling me:

Name      : Choose a name for this Docker cloud provider
         


        
4条回答
  •  借酒劲吻你
    2020-12-02 12:48

    If you are on Linux and need to connect to Docker API on the local machine, its URL is probably unix:///var/run/docker.sock, like it is mentioned in documentation: Develop with Docker Engine SDKs and API

    By default the Docker daemon listens on unix:///var/run/docker.sock and the client must have root access to interact with the daemon. If a group named docker exists on your system, docker applies ownership of the socket to the group.

    This might be helpful if you are connecting to Docker from a JetBrains IDE.

提交回复
热议问题