Docker Container Port MappingDocker / Windows Container: how to mount a host folder as data volume on Windows...

What can I do to encourage my players to use their consumables?

Why did Luke use his left hand to shoot?

How to completely remove a package in Ubuntu (like it never existed)

Crack the bank account's password!

Single-row INSERT...SELECT much slower than separate SELECT

Taking headphones when quitting job

Could a warlock use the One with Shadows warlock invocation to turn invisible, and then move while staying invisible?

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

Why does 0.-5 evaluate to -5?

Is there a verb that means to inject with poison?

Can a player sacrifice a creature after declaring that creature as blocker while taking lethal damage?

Reading Mishnayos without understanding

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

Is there a file that always exists and a 'normal' user can't lstat it?

What does MTU depend on?

Can you determine if focus is sharp without diopter adjustment if your sight is imperfect?

Concatenating two int[]

What senses are available to a corpse subjected to a Speak with Dead spell?

How to politely refuse in-office gym instructor for steroids and protein

Count repetitions of an array

Which RAF squadrons and aircraft types took part in the bombing of Berlin on the 25th of August 1940?

Is there any advantage in specifying './' in a for loop using a glob?

How do you funnel food off a cutting board?

Potential client has a problematic employee I can't work with



Docker Container Port Mapping


Docker / Windows Container: how to mount a host folder as data volume on Windows 2016DNS service discovery using Consul in Docker SwarmHow to access the port of a reverse SSH tunnel on the hosts loopback device from within a Docker container?Subdirectories of docker mount not mounted correctly with docker-composeCan a Nano Server host a GUI Windows app (say Word) container running on top it?How do I properly resolve the IP of another container in a Docker Swarm? (DNS)If I change the environment section of docker-compose.yml, do I need to rebuild my service/container?Redirect subdomain to Docker container using NGINXIPv6 does not work in Docker swarm?Is it necessary to specify VIRTUAL_HOST when using an nginx proxy (with docker containers)?













0















We have a docker container with IIS with the following environment Docker, Docker-Swarm, Windows Server 2019, Virtual Box and Portainer.



When the containers are deployed every container with the exception of the Windows container with IIS installed on it is assigned a port. We have this container configured to:



ports:
- "8086:80"


However when running the cmd "docker container ls" the PORTS field for that container is blank. We have tried to change the host port to a different port with a different assigned port i.e. 8999:81 and with the same results (blank PORTS). This is because we thought there was a conflict.



We have a similar Docker container within the swarm that is hosting a .NET Core Application assigned to port 8085:80 using Linux. It works with the following config in the docker-compose.yml file.



ports:
- "8084:80"


We are able to successfully browse to the .NET Core Application hosted in Linux/Docker.



Firewall has been disabled on Windows environment with the container that is not being assigned a port. Security is not a concern for our context. We are also using Portainer which this IIS Windows Docker container is set to spool at 1/1. The docker container is running. If we manually execute the command "docker run -p 8086:80 " we are able to navigate to the IIS website.



Any help would be appreciated.










share|improve this question









New contributor




Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    We have a docker container with IIS with the following environment Docker, Docker-Swarm, Windows Server 2019, Virtual Box and Portainer.



    When the containers are deployed every container with the exception of the Windows container with IIS installed on it is assigned a port. We have this container configured to:



    ports:
    - "8086:80"


    However when running the cmd "docker container ls" the PORTS field for that container is blank. We have tried to change the host port to a different port with a different assigned port i.e. 8999:81 and with the same results (blank PORTS). This is because we thought there was a conflict.



    We have a similar Docker container within the swarm that is hosting a .NET Core Application assigned to port 8085:80 using Linux. It works with the following config in the docker-compose.yml file.



    ports:
    - "8084:80"


    We are able to successfully browse to the .NET Core Application hosted in Linux/Docker.



    Firewall has been disabled on Windows environment with the container that is not being assigned a port. Security is not a concern for our context. We are also using Portainer which this IIS Windows Docker container is set to spool at 1/1. The docker container is running. If we manually execute the command "docker run -p 8086:80 " we are able to navigate to the IIS website.



    Any help would be appreciated.










    share|improve this question









    New contributor




    Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      We have a docker container with IIS with the following environment Docker, Docker-Swarm, Windows Server 2019, Virtual Box and Portainer.



      When the containers are deployed every container with the exception of the Windows container with IIS installed on it is assigned a port. We have this container configured to:



      ports:
      - "8086:80"


      However when running the cmd "docker container ls" the PORTS field for that container is blank. We have tried to change the host port to a different port with a different assigned port i.e. 8999:81 and with the same results (blank PORTS). This is because we thought there was a conflict.



      We have a similar Docker container within the swarm that is hosting a .NET Core Application assigned to port 8085:80 using Linux. It works with the following config in the docker-compose.yml file.



      ports:
      - "8084:80"


      We are able to successfully browse to the .NET Core Application hosted in Linux/Docker.



      Firewall has been disabled on Windows environment with the container that is not being assigned a port. Security is not a concern for our context. We are also using Portainer which this IIS Windows Docker container is set to spool at 1/1. The docker container is running. If we manually execute the command "docker run -p 8086:80 " we are able to navigate to the IIS website.



      Any help would be appreciated.










      share|improve this question









      New contributor




      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      We have a docker container with IIS with the following environment Docker, Docker-Swarm, Windows Server 2019, Virtual Box and Portainer.



      When the containers are deployed every container with the exception of the Windows container with IIS installed on it is assigned a port. We have this container configured to:



      ports:
      - "8086:80"


      However when running the cmd "docker container ls" the PORTS field for that container is blank. We have tried to change the host port to a different port with a different assigned port i.e. 8999:81 and with the same results (blank PORTS). This is because we thought there was a conflict.



      We have a similar Docker container within the swarm that is hosting a .NET Core Application assigned to port 8085:80 using Linux. It works with the following config in the docker-compose.yml file.



      ports:
      - "8084:80"


      We are able to successfully browse to the .NET Core Application hosted in Linux/Docker.



      Firewall has been disabled on Windows environment with the container that is not being assigned a port. Security is not a concern for our context. We are also using Portainer which this IIS Windows Docker container is set to spool at 1/1. The docker container is running. If we manually execute the command "docker run -p 8086:80 " we are able to navigate to the IIS website.



      Any help would be appreciated.







      virtualbox docker vagrant windows-server docker-swarm






      share|improve this question









      New contributor




      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 3 hours ago







      Skyler Sanders













      New contributor




      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 hours ago









      Skyler SandersSkyler Sanders

      11




      11




      New contributor




      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Skyler Sanders is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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
          });


          }
          });






          Skyler Sanders is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409282%2fdocker-container-port-mapping%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








          Skyler Sanders is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Skyler Sanders is a new contributor. Be nice, and check out our Code of Conduct.













          Skyler Sanders is a new contributor. Be nice, and check out our Code of Conduct.












          Skyler Sanders is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1409282%2fdocker-container-port-mapping%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

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...