Comments (6)
I had a similar issue and docker run -it --rm --entrypoint powershell aspnet worked
from aspnet-docker.
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.
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.
@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.
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.
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)
- Add support for Windows Server 2019 HOT 15
- manifest for microsoft/aspnet:4.7.2-windowsservercore-ltsc2019 not found HOT 2
- small typo in 4.7.2-windowsservercore-ltsc2019 directory
- microsoft/aspnet:4.7.2-windowsservercore-1803 is not supported in web app windows container HOT 1
- [Powershell] A positional parameter cannot be found that accepts argument HOT 1
- 'Host.docker.internal' does not resolve from inside container HOT 1
- aspnetcore-runtime doesn't have an assembly to compile razor views HOT 1
- aspnet:4.7.2-windowsservercore-ltsc2019 printers not available HOT 2
- microsoft/dotnet:2.2-runtime doesn't support [email protected] HOT 1
- ERROR: Failed to start or query status of service 'w3svc' error, while setting IIS Web Application authentication HOT 1
- No matching manifest for unknown in the manifest list entries HOT 2
- .NET Core docker image doesn't support JavaScriptServices HOT 2
- dotnet framework linux support HOT 1
- Using images in Azure d
- Using images in Azure DevOps pipeline not working HOT 2
- microsoft/iis:windowsservercore-1709 is not supported in web app windows container HOT 7
- You guys broke Swashbuckle/Swagger in the latest version of microsoft/aspnet:4.6.2-windowsservercore-ltsc2016 HOT 3
- Tag list has not been updated since January 2019 HOT 2
- Failed to run as a self-contained app. If this should be a framework-dependent app, add the /app/Servicesruntimeconfig.json file specifying the appropriate framework. HOT 1
- Question: Is There a Way to Get Notify/Email/Webhook If Offical Image is Updated? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnet-docker.