Giter Site home page Giter Site logo

Comments (6)

caokennedy avatar caokennedy commented on May 20, 2024 6

I had a similar issue and docker run -it --rm --entrypoint powershell aspnet worked

from aspnet-docker.

caoimhek7 avatar caoimhek7 commented on May 20, 2024 2

I had a similar issue and docker run -it --rm --entrypoint powershell aspnet worked

This worked for me. Not sure why. Mind explaining @caokennedy

--rm deletes the container once it's finished running, erase everything related to it and save the disk space. I usually do this when running containers interactively so they're destroyed after I exit them.
--entrypoint powershell sets the entry point to powershell, so when the container runs interactively it's in a PowerShell shell

I did this following the advise of @bsedg, who suggested changing the entry point to powershell (he suggested doing it in the Dockerfile but I just did it when running the image)

from aspnet-docker.

allenerb avatar allenerb commented on May 20, 2024

Any update on this? I have the same problem.

Added Docker Support to an existing application in Visual Studio 2017, and when I try to launch a debug version of the docker container, I get this same problem.

Running Windows 10 Pro inside VMWare Fusions from Macbook Pro
OS: Windows 10 Pro
Version: 1703
Build: 15063.674

Docker Info:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 6
Server Version: 17.09.0-ce
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 15063 (15063.0.amd64fre.rs2_release.170317-1834)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 6.835GiB
Name: AUNDERWOODVMWIN
ID: OLCF:LZ5Y:TK67:GOKS:5PSF:M6WY:DV7E:YHPQ:RJ2X:Q7NP:GT7C:5AFE
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 37
System Time: 2017-11-03T15:27:59.7896702-04:00
EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

from aspnet-docker.

bsedg avatar bsedg commented on May 20, 2024

@shirhatti Not sure if this directly answers your question, but you could try creating a Dockerfile and specify the entrypoint to be ["powershell"]:

FROM microsoft/aspnet

ENTRYPOINT ["powershell"]

Otherwise if you don't overwrite the entrypoint, the entrypoint is defined as ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]. When you add cmd.exe as the run parameter, it is attempting to add that as an argument after ServiceMonitor.exe w3svc.

With that Dockerfile, you could then do docker build -t aspnet . and then run it interactively by docker run -it aspnet.

from aspnet-docker.

Jinhuafei avatar Jinhuafei commented on May 20, 2024

The aspnet base image uses ServiceMonitor.exe as entrypoint which is not an interactive process. You either have to change your entrypoint, like what @bsedg suggested. Or you can use enter-pssession -containerid [cointainerId] to connect to the container.

from aspnet-docker.

sisimogangg avatar sisimogangg commented on May 20, 2024

I had a similar issue and docker run -it --rm --entrypoint powershell aspnet worked

This worked for me. Not sure why. Mind explaining @caokennedy

from aspnet-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.