How do I find the Docker REST API URL?

后端 未结 4 889
面向向阳花
面向向阳花 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 13:07

    It depends on your host, but look for /etc/default/docker or /var/lib/boot2docker/profile (for Docker Machine hosts using a boot2docker VM).

    You will see the port used by the docker daemon, for instance:

    DOCKER_OPTS="-H unix:// -H tcp://0.0.0.0:2375"
                                            ^^^^^
    

    Then get the IP address of the machine hosting your Docker daemon. (With a Docker Machine created host, that would be: docker-machine ip .)

    The URL to use is the combination of those the IP address and the port.

提交回复
热议问题