Run .NetCore App in docker container based on .NETCore 3.0 previewHow to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerFrom inside of a Docker container, how do I connect to the localhost of the machine?What is the difference between .NET Core and .NET Standard Class Library project types?run bash command from .NetCore with arguments“It was not possible to find any compatible framework version” with ASP.NET Core 2.1 in DockerABP Update-Database error - The specified framework version '2.1' could not be parsed -It was not possible to find any compatible framework version when trying to scaffold
In native German words, is Q always followed by U, as in English?
Could the Q destroy the universe?
Picking balls from urns.
What exactly did Ant-Man see that made him say that their plan worked?
What's the rule for a natural 20 on a Perception check?
Handling a player (unintentionally) stealing the spotlight
Lifting a probability measure to the power set
What documents are needed when travelling from Botswana to United Kingdom?
Should I report a leak of confidential HR information?
How can my story take place on Earth without referring to our existing cities and countries?
Chords behaving as a melody
Donkey as Democratic Party symbolic animal
How to answer "write something on the board"?
Is it bad to describe a character long after their introduction?
Golf the smallest circle!
How can I deal with extreme temperatures in a hotel room?
Step into the Octagram
Bit-based universe simulation
Most important new papers in computational complexity
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
Prime parity peregrination
Conjugate る-ending verbs into negative form
Does flying two boosters close together affect efficiency?
Are these intended activities legal to do in the USA under the VWP?
Run .NetCore App in docker container based on .NETCore 3.0 preview
How to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerFrom inside of a Docker container, how do I connect to the localhost of the machine?What is the difference between .NET Core and .NET Standard Class Library project types?run bash command from .NetCore with arguments“It was not possible to find any compatible framework version” with ASP.NET Core 2.1 in DockerABP Update-Database error - The specified framework version '2.1' could not be parsed -It was not possible to find any compatible framework version when trying to scaffold
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
On running my app exited with code 150
Output: Debug
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview3-27503-5' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
3.0.0-preview-27324-5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?linkid=2063370
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[31] dotnet' has exited with code 150 (0x96).
The program 'dotnet' has exited with code 150 (0x96).
docker .net-core docker-compose console-application
add a comment |
On running my app exited with code 150
Output: Debug
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview3-27503-5' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
3.0.0-preview-27324-5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?linkid=2063370
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[31] dotnet' has exited with code 150 (0x96).
The program 'dotnet' has exited with code 150 (0x96).
docker .net-core docker-compose console-application
2
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28
add a comment |
On running my app exited with code 150
Output: Debug
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview3-27503-5' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
3.0.0-preview-27324-5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?linkid=2063370
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[31] dotnet' has exited with code 150 (0x96).
The program 'dotnet' has exited with code 150 (0x96).
docker .net-core docker-compose console-application
On running my app exited with code 150
Output: Debug
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview3-27503-5' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
3.0.0-preview-27324-5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?linkid=2063370
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[31] dotnet' has exited with code 150 (0x96).
The program 'dotnet' has exited with code 150 (0x96).
docker .net-core docker-compose console-application
docker .net-core docker-compose console-application
edited Mar 27 at 9:31
Panagiotis Kanavos
61k5 gold badges84 silver badges117 bronze badges
61k5 gold badges84 silver badges117 bronze badges
asked Mar 25 at 13:25
Andrew DzhurAndrew Dzhur
264 bronze badges
264 bronze badges
2
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28
add a comment |
2
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28
2
2
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28
add a comment |
1 Answer
1
active
oldest
votes
If you have problems running the application in the Docker Container, then make sure that the correct Image for your .NET Core SDK is specified in the Dockerfile
For the .NET Core SDK 3.0.100-preview3-010431
Dockerfile was created incorrectly.
You can view Dockerfile samples for various SDKs at hub.docker.com
https://hub.docker.com/_/microsoft-dotnet-core-sdk/?tab=description
Example:
FROM buildpack-deps:stretch-scm
# Install .NET CLI dependencies
RUN apt-get update
&& apt-get install -y --no-install-recommends
libc6
libgcc1
libgssapi-krb5-2
libicu57
libssl1.1
libstdc++6
zlib1g
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 3.0.100-preview3-010431
...
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you askedWhat SDK version should I add to a production Docker image?
the correct answer would beNone, you only need the runtime
. Your answer would be accurate if the question wasWhat SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338873%2frun-netcore-app-in-docker-container-based-on-netcore-3-0-preview%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you have problems running the application in the Docker Container, then make sure that the correct Image for your .NET Core SDK is specified in the Dockerfile
For the .NET Core SDK 3.0.100-preview3-010431
Dockerfile was created incorrectly.
You can view Dockerfile samples for various SDKs at hub.docker.com
https://hub.docker.com/_/microsoft-dotnet-core-sdk/?tab=description
Example:
FROM buildpack-deps:stretch-scm
# Install .NET CLI dependencies
RUN apt-get update
&& apt-get install -y --no-install-recommends
libc6
libgcc1
libgssapi-krb5-2
libicu57
libssl1.1
libstdc++6
zlib1g
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 3.0.100-preview3-010431
...
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you askedWhat SDK version should I add to a production Docker image?
the correct answer would beNone, you only need the runtime
. Your answer would be accurate if the question wasWhat SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
add a comment |
If you have problems running the application in the Docker Container, then make sure that the correct Image for your .NET Core SDK is specified in the Dockerfile
For the .NET Core SDK 3.0.100-preview3-010431
Dockerfile was created incorrectly.
You can view Dockerfile samples for various SDKs at hub.docker.com
https://hub.docker.com/_/microsoft-dotnet-core-sdk/?tab=description
Example:
FROM buildpack-deps:stretch-scm
# Install .NET CLI dependencies
RUN apt-get update
&& apt-get install -y --no-install-recommends
libc6
libgcc1
libgssapi-krb5-2
libicu57
libssl1.1
libstdc++6
zlib1g
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 3.0.100-preview3-010431
...
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you askedWhat SDK version should I add to a production Docker image?
the correct answer would beNone, you only need the runtime
. Your answer would be accurate if the question wasWhat SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
add a comment |
If you have problems running the application in the Docker Container, then make sure that the correct Image for your .NET Core SDK is specified in the Dockerfile
For the .NET Core SDK 3.0.100-preview3-010431
Dockerfile was created incorrectly.
You can view Dockerfile samples for various SDKs at hub.docker.com
https://hub.docker.com/_/microsoft-dotnet-core-sdk/?tab=description
Example:
FROM buildpack-deps:stretch-scm
# Install .NET CLI dependencies
RUN apt-get update
&& apt-get install -y --no-install-recommends
libc6
libgcc1
libgssapi-krb5-2
libicu57
libssl1.1
libstdc++6
zlib1g
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 3.0.100-preview3-010431
...
If you have problems running the application in the Docker Container, then make sure that the correct Image for your .NET Core SDK is specified in the Dockerfile
For the .NET Core SDK 3.0.100-preview3-010431
Dockerfile was created incorrectly.
You can view Dockerfile samples for various SDKs at hub.docker.com
https://hub.docker.com/_/microsoft-dotnet-core-sdk/?tab=description
Example:
FROM buildpack-deps:stretch-scm
# Install .NET CLI dependencies
RUN apt-get update
&& apt-get install -y --no-install-recommends
libc6
libgcc1
libgssapi-krb5-2
libicu57
libssl1.1
libstdc++6
zlib1g
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 3.0.100-preview3-010431
...
answered Mar 26 at 12:31
Andrew DzhurAndrew Dzhur
264 bronze badges
264 bronze badges
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you askedWhat SDK version should I add to a production Docker image?
the correct answer would beNone, you only need the runtime
. Your answer would be accurate if the question wasWhat SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
add a comment |
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you askedWhat SDK version should I add to a production Docker image?
the correct answer would beNone, you only need the runtime
. Your answer would be accurate if the question wasWhat SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
What does this answer? And why would the docker image contain the SDK? It only needs the runtime. If you create a self-contained application, not even that. The runtime will be included in the deployment package
– Panagiotis Kanavos
Mar 27 at 9:30
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
I wrote the answer quite accurately. It clearly states that the image would be suitable for the SDK on which your project is based. it would be better if you read it again and did not write comments
– Andrew Dzhur
Mar 27 at 13:10
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you asked
What SDK version should I add to a production Docker image?
the correct answer would be None, you only need the runtime
. Your answer would be accurate if the question was What SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
The question was downvoted heavily for a reason - there is no question. As for the answer, if you check, you'll see that you don't need the SDK to run .NET Core applications, only the runtime. If you asked
What SDK version should I add to a production Docker image?
the correct answer would be None, you only need the runtime
. Your answer would be accurate if the question was What SDK version should I add to a build server Docker image?
– Panagiotis Kanavos
Mar 27 at 13:13
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338873%2frun-netcore-app-in-docker-container-based-on-netcore-3-0-preview%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
Please read stackoverflow.com/help/how-to-ask
– ozlevka
Mar 25 at 13:32
sometime someday
– Andrew Dzhur
Mar 25 at 13:49
@AndrewDzhur right now would be a good time. Bad questions get closed and deleted pretty quickly. In this case, the question is missing completely
– Panagiotis Kanavos
Mar 27 at 9:28