Expected behavior
Being able to hit the container with a request coming from host machine
Actual behavior
I cannot seem to find a way to expose a port or to ping the container I just created.
Information
Windows 10 10.0.10586
- the output of:
-
Moby Notification > Diagose & Feedback
on Windows
-
- a reproducible case if this is a bug, Dockerfiles FTW
- page URL if this is a docs issue or the name of a man page
- host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )
Steps to reproduce the behavior
- Using Docker for Windows Tools for Visual Studio
- Use this docker file on a blank project
-
FROM microsoft/dotnet:1.0.0-core
FROM microsoft/dotnet:1.0.0-preview2-sdk
ENV NUGET_XMLDOC_MODE skip
Install debugging components
ARG CLRDBG_VERSION=VS2015U2
WORKDIR /clrdbg
RUN curl -SL https://raw.githubusercontent.com/Microsoft/MIEngine/getclrdbg-release/scripts/GetClrDbg.sh --output GetClrDbg.sh
&& chmod 700 GetClrDbg.sh
&& ./GetClrDbg.sh $CLRDBG_VERSION
&& rm GetClrDbg.sh
Set the Working Directory
WORKDIR /app
Configure the listening port to 80
ENV ASPNETCORE_URLS http://*:81
EXPOSE 81
Copy the app
COPY . /app
If we are launching through a remote debugger wait for it, otherwise start the app
ENTRYPOINT ["/bin/bash", “-c”, “if [ “$REMOTE_DEBUGGING” -eq 0 ]; then dotnet DockerDeployExample.dll; else sleep infinity; fi”]
- This container launches, but you cannot interact with it.