Error in docker network

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











up vote
0
down vote

favorite












Here is a link to my relevant configuration
https://github.com/TheGlitchr/acidbox
I'm trying to create a deployable webstack for my own user that's easy to migrate and recreate without data loss while being really secure. So what I am doing is creating a network in docker, where each container is labeled in dns (managed by docker).



I have already tried specifying differing IPs in my caddyfile, the only one that seems to work is my public ip, that is the only way caddy can reach the container (despite being within the same docker subnet)



Specific Error



2018-05-03T15:21:48.050103440Z 03/May/2018:15:21:48 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:50.103522028Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:50.351625626Z 03/May/2018:15:21:50 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:50.841226782Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:51.030022667Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:51.320559407Z 03/May/2018:15:21:51 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
2018-05-03T15:21:51.453915152Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused


By the log above, I can tell the dns is working, because I have the containers listed by their dns name, and here it's shown resolved as the ip, I believe it's a communication error either between docker containers themselves or the way caddy is trying to proxy these services.







share|improve this question

























    up vote
    0
    down vote

    favorite












    Here is a link to my relevant configuration
    https://github.com/TheGlitchr/acidbox
    I'm trying to create a deployable webstack for my own user that's easy to migrate and recreate without data loss while being really secure. So what I am doing is creating a network in docker, where each container is labeled in dns (managed by docker).



    I have already tried specifying differing IPs in my caddyfile, the only one that seems to work is my public ip, that is the only way caddy can reach the container (despite being within the same docker subnet)



    Specific Error



    2018-05-03T15:21:48.050103440Z 03/May/2018:15:21:48 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:50.103522028Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:50.351625626Z 03/May/2018:15:21:50 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:50.841226782Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:51.030022667Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:51.320559407Z 03/May/2018:15:21:51 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
    2018-05-03T15:21:51.453915152Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused


    By the log above, I can tell the dns is working, because I have the containers listed by their dns name, and here it's shown resolved as the ip, I believe it's a communication error either between docker containers themselves or the way caddy is trying to proxy these services.







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Here is a link to my relevant configuration
      https://github.com/TheGlitchr/acidbox
      I'm trying to create a deployable webstack for my own user that's easy to migrate and recreate without data loss while being really secure. So what I am doing is creating a network in docker, where each container is labeled in dns (managed by docker).



      I have already tried specifying differing IPs in my caddyfile, the only one that seems to work is my public ip, that is the only way caddy can reach the container (despite being within the same docker subnet)



      Specific Error



      2018-05-03T15:21:48.050103440Z 03/May/2018:15:21:48 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.103522028Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.351625626Z 03/May/2018:15:21:50 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.841226782Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.030022667Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.320559407Z 03/May/2018:15:21:51 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.453915152Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused


      By the log above, I can tell the dns is working, because I have the containers listed by their dns name, and here it's shown resolved as the ip, I believe it's a communication error either between docker containers themselves or the way caddy is trying to proxy these services.







      share|improve this question













      Here is a link to my relevant configuration
      https://github.com/TheGlitchr/acidbox
      I'm trying to create a deployable webstack for my own user that's easy to migrate and recreate without data loss while being really secure. So what I am doing is creating a network in docker, where each container is labeled in dns (managed by docker).



      I have already tried specifying differing IPs in my caddyfile, the only one that seems to work is my public ip, that is the only way caddy can reach the container (despite being within the same docker subnet)



      Specific Error



      2018-05-03T15:21:48.050103440Z 03/May/2018:15:21:48 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.103522028Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.351625626Z 03/May/2018:15:21:50 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:50.841226782Z 03/May/2018:15:21:50 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.030022667Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.320559407Z 03/May/2018:15:21:51 +0000 [ERROR 502 /] dial tcp 172.18.0.8:8080: connect: connection refused
      2018-05-03T15:21:51.453915152Z 03/May/2018:15:21:51 +0000 [ERROR 502 /index.php] dial tcp 172.18.0.8:8080: connect: connection refused


      By the log above, I can tell the dns is working, because I have the containers listed by their dns name, and here it's shown resolved as the ip, I believe it's a communication error either between docker containers themselves or the way caddy is trying to proxy these services.









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 3 at 17:46









      vfbsilva

      2,54211225




      2,54211225









      asked May 3 at 17:44









      Cameron Bosshard

      11




      11

























          active

          oldest

          votes











          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%2f441622%2ferror-in-docker-network%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441622%2ferror-in-docker-network%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?