Connecting to a docker host!

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Does any one how to connect to a docker host uri??
i need to setup jenkins to perform task on a docker host??
This is the docker host info.
This is Ubuntu based machine.



root@node1:~# netstat -tulnp | grep LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1263/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 3526/0
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 3793/1
tcp6 0 0 :::22 :::* LISTEN 1263/sshd
tcp6 0 0 ::1:6010 :::* LISTEN 3526/0
tcp6 0 0 ::1:6011 :::* LISTEN 3793/1
root@node1:~#
root@node1:~#
root@node1:~# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2017-12-14 06:44:46 UTC; 1 day 2h ago
Docs: https://docs.docker.com
Main PID: 1249 (dockerd)
Tasks: 17
Memory: 69.5M
CPU: 2min 233ms
CGroup: /system.slice/docker.service
├─1249 /usr/bin/dockerd -H fd://
└─1401 containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libco

Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551798058Z" level=info msg="Daemon has completed initialization"
Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551973729Z" level=info msg="Docker daemon" commit=092cba3 graphdriver=aufs version=1.13.1
Dec 14 06:44:46 node1 systemd[1]: Started Docker Application Container Engine.
Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.580061946Z" level=info msg="API listen on /var/run/docker.sock"
Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.897610342Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.900105358Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.836355744Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.838301865Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.272709345Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.274916674Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver






share|improve this question
























    up vote
    1
    down vote

    favorite












    Does any one how to connect to a docker host uri??
    i need to setup jenkins to perform task on a docker host??
    This is the docker host info.
    This is Ubuntu based machine.



    root@node1:~# netstat -tulnp | grep LISTEN
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1263/sshd
    tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 3526/0
    tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 3793/1
    tcp6 0 0 :::22 :::* LISTEN 1263/sshd
    tcp6 0 0 ::1:6010 :::* LISTEN 3526/0
    tcp6 0 0 ::1:6011 :::* LISTEN 3793/1
    root@node1:~#
    root@node1:~#
    root@node1:~# systemctl status docker
    ● docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2017-12-14 06:44:46 UTC; 1 day 2h ago
    Docs: https://docs.docker.com
    Main PID: 1249 (dockerd)
    Tasks: 17
    Memory: 69.5M
    CPU: 2min 233ms
    CGroup: /system.slice/docker.service
    ├─1249 /usr/bin/dockerd -H fd://
    └─1401 containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libco

    Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551798058Z" level=info msg="Daemon has completed initialization"
    Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551973729Z" level=info msg="Docker daemon" commit=092cba3 graphdriver=aufs version=1.13.1
    Dec 14 06:44:46 node1 systemd[1]: Started Docker Application Container Engine.
    Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.580061946Z" level=info msg="API listen on /var/run/docker.sock"
    Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.897610342Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
    Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.900105358Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
    Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.836355744Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
    Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.838301865Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
    Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.272709345Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
    Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.274916674Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver






    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Does any one how to connect to a docker host uri??
      i need to setup jenkins to perform task on a docker host??
      This is the docker host info.
      This is Ubuntu based machine.



      root@node1:~# netstat -tulnp | grep LISTEN
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1263/sshd
      tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 3526/0
      tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 3793/1
      tcp6 0 0 :::22 :::* LISTEN 1263/sshd
      tcp6 0 0 ::1:6010 :::* LISTEN 3526/0
      tcp6 0 0 ::1:6011 :::* LISTEN 3793/1
      root@node1:~#
      root@node1:~#
      root@node1:~# systemctl status docker
      ● docker.service - Docker Application Container Engine
      Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      Active: active (running) since Thu 2017-12-14 06:44:46 UTC; 1 day 2h ago
      Docs: https://docs.docker.com
      Main PID: 1249 (dockerd)
      Tasks: 17
      Memory: 69.5M
      CPU: 2min 233ms
      CGroup: /system.slice/docker.service
      ├─1249 /usr/bin/dockerd -H fd://
      └─1401 containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libco

      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551798058Z" level=info msg="Daemon has completed initialization"
      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551973729Z" level=info msg="Docker daemon" commit=092cba3 graphdriver=aufs version=1.13.1
      Dec 14 06:44:46 node1 systemd[1]: Started Docker Application Container Engine.
      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.580061946Z" level=info msg="API listen on /var/run/docker.sock"
      Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.897610342Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.900105358Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
      Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.836355744Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.838301865Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
      Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.272709345Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.274916674Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver






      share|improve this question












      Does any one how to connect to a docker host uri??
      i need to setup jenkins to perform task on a docker host??
      This is the docker host info.
      This is Ubuntu based machine.



      root@node1:~# netstat -tulnp | grep LISTEN
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1263/sshd
      tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 3526/0
      tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 3793/1
      tcp6 0 0 :::22 :::* LISTEN 1263/sshd
      tcp6 0 0 ::1:6010 :::* LISTEN 3526/0
      tcp6 0 0 ::1:6011 :::* LISTEN 3793/1
      root@node1:~#
      root@node1:~#
      root@node1:~# systemctl status docker
      ● docker.service - Docker Application Container Engine
      Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      Active: active (running) since Thu 2017-12-14 06:44:46 UTC; 1 day 2h ago
      Docs: https://docs.docker.com
      Main PID: 1249 (dockerd)
      Tasks: 17
      Memory: 69.5M
      CPU: 2min 233ms
      CGroup: /system.slice/docker.service
      ├─1249 /usr/bin/dockerd -H fd://
      └─1401 containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libco

      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551798058Z" level=info msg="Daemon has completed initialization"
      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.551973729Z" level=info msg="Docker daemon" commit=092cba3 graphdriver=aufs version=1.13.1
      Dec 14 06:44:46 node1 systemd[1]: Started Docker Application Container Engine.
      Dec 14 06:44:46 node1 dockerd[1249]: time="2017-12-14T06:44:46.580061946Z" level=info msg="API listen on /var/run/docker.sock"
      Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.897610342Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 06:41:09 node1 dockerd[1249]: time="2017-12-15T06:41:09.900105358Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
      Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.836355744Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 08:56:46 node1 dockerd[1249]: time="2017-12-15T08:56:46.838301865Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver
      Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.272709345Z" level=warning msg="failed to retrieve runc version: unknown output format: runc version sp
      Dec 15 09:06:19 node1 dockerd[1249]: time="2017-12-15T09:06:19.274916674Z" level=warning msg="failed to retrieve docker-init version: unknown output format: tini ver








      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 15 '17 at 10:02









      Mohd

      146114




      146114




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          netstat is missing port 2375 or 2376



          https://docs.docker.com/engine/installation/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall



          edit /lib/systemd/system/docker.service



          ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375



          then /etc/default/docker



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



          and restart.



          source: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/17






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411013%2fconnecting-to-a-docker-host%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            netstat is missing port 2375 or 2376



            https://docs.docker.com/engine/installation/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall



            edit /lib/systemd/system/docker.service



            ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375



            then /etc/default/docker



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



            and restart.



            source: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/17






            share|improve this answer


























              up vote
              1
              down vote



              accepted










              netstat is missing port 2375 or 2376



              https://docs.docker.com/engine/installation/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall



              edit /lib/systemd/system/docker.service



              ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375



              then /etc/default/docker



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



              and restart.



              source: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/17






              share|improve this answer
























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                netstat is missing port 2375 or 2376



                https://docs.docker.com/engine/installation/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall



                edit /lib/systemd/system/docker.service



                ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375



                then /etc/default/docker



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



                and restart.



                source: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/17






                share|improve this answer














                netstat is missing port 2375 or 2376



                https://docs.docker.com/engine/installation/linux/linux-postinstall/#allow-access-to-the-remote-api-through-a-firewall



                edit /lib/systemd/system/docker.service



                ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375



                then /etc/default/docker



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



                and restart.



                source: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/17







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 15 '17 at 14:12

























                answered Dec 15 '17 at 10:39









                invad0r

                307




                307






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411013%2fconnecting-to-a-docker-host%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?