Docker UDP port binding fails with exposeWhy does a Docker container running a server expose port to the...

Script that counts quarters, dimes, nickels, and pennies

Formatting a table to look nice

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

PTIJ: What dummy is the Gemara referring to?

If nine coins are tossed, what is the probability that the number of heads is even?

Why are special aircraft used for the carriers in the United States Navy?

How to get the first element while continue streaming?

Deal the cards to the players

Rationale to prefer local variables over instance variables?

How do you say “my friend is throwing a party, do you wanna come?” in german

Are small insurances worth it

Is there a way to find out the age of climbing ropes?

Can a Trickery Domain cleric cast a spell through the Invoke Duplicity clone while inside a Forcecage?

How do I deal with being envious of my own players?

Is there a math equivalent to the conditional ternary operator?

Create chunks from an array

Why would the IRS ask for birth certificates or even audit a small tax return?

The need of reserving one's ability in job interviews

is 'sed' thread safe

How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?

What is better: yes / no radio, or simple checkbox?

Practical reasons to have both a large police force and bounty hunting network?

How can I highlight parts in a screenshot

PTIJ: Mordechai mourning



Docker UDP port binding fails with expose


Why does a Docker container running a server expose port to the outside world even though said port is blocked by iptables?Docker 1.6.0 on RHEL 6.5 with SELinux, can't run containers without rootuwsgi sometimes fails to compile in Alpine Linux in a Docker container'docker logs' throws error when trying to access an exited containerUDP traffic not forwarded from Docker containers -> Docker hostdocker nginx proxy with poste.io mailserverHow to connect Docker Swarm services to an ordinary Docker network?Google Compute Engine App nothing listening on ports 80 and 443Mirroring Docker Traffic to Different Port in Same ContainerHow to access database on Docker swarm without exposing ports to internet?













0















I have a container that runs a server that listens port 5000 for UDP connections. Dockerfile has EXPOSE 5000/udp set and when I run the container, I can see that PORTS has 5000/udp correctly.



However it doesn't work as expected because the client can't connect to it. To make matters even more confusing, netcat can connect to the port 5000 via udp just fine.



I can get everything to work by specifying -p 5000:5000/udp manually. This would be fine but I have to run this container in a swarm and --publish 5000:5000/udp doesn't seem to do the trick.



Any ideas what I'm doing wrong here?









share



























    0















    I have a container that runs a server that listens port 5000 for UDP connections. Dockerfile has EXPOSE 5000/udp set and when I run the container, I can see that PORTS has 5000/udp correctly.



    However it doesn't work as expected because the client can't connect to it. To make matters even more confusing, netcat can connect to the port 5000 via udp just fine.



    I can get everything to work by specifying -p 5000:5000/udp manually. This would be fine but I have to run this container in a swarm and --publish 5000:5000/udp doesn't seem to do the trick.



    Any ideas what I'm doing wrong here?









    share

























      0












      0








      0








      I have a container that runs a server that listens port 5000 for UDP connections. Dockerfile has EXPOSE 5000/udp set and when I run the container, I can see that PORTS has 5000/udp correctly.



      However it doesn't work as expected because the client can't connect to it. To make matters even more confusing, netcat can connect to the port 5000 via udp just fine.



      I can get everything to work by specifying -p 5000:5000/udp manually. This would be fine but I have to run this container in a swarm and --publish 5000:5000/udp doesn't seem to do the trick.



      Any ideas what I'm doing wrong here?









      share














      I have a container that runs a server that listens port 5000 for UDP connections. Dockerfile has EXPOSE 5000/udp set and when I run the container, I can see that PORTS has 5000/udp correctly.



      However it doesn't work as expected because the client can't connect to it. To make matters even more confusing, netcat can connect to the port 5000 via udp just fine.



      I can get everything to work by specifying -p 5000:5000/udp manually. This would be fine but I have to run this container in a swarm and --publish 5000:5000/udp doesn't seem to do the trick.



      Any ideas what I'm doing wrong here?







      docker docker-swarm





      share












      share










      share



      share










      asked 6 mins ago









      jimmyjimmy

      1114




      1114






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957137%2fdocker-udp-port-binding-fails-with-expose%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957137%2fdocker-udp-port-binding-fails-with-expose%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...