dotnet hangs in Docker Container in Azure
See original GitHub issueSteps to reproduce
- Create Azure VM based on Docker on Ubuntu Server (
CanonicalandMSOpenTech.DockerOnUbuntuServer1404LTS
) - Connect to VM using e.g. PuTTY
- Start new Docker container:
docker run -it microsoft/dotnet:latest /bin/bash
- Run any
dotnet
command (e.g.dotnet --info
ordotnet new
) - The
dotnet
command will print the expected output but hang at the end and never return
Expected behavior
dotnet
should return after doing it’s job.
Actual behavior
The dotnet
command will print the expected output but hang at the end and never return
Environment data
docker version
output:
Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:38:55 2016
OS/Arch: linux/amd64
Server:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:38:55 2016
OS/Arch: linux/amd64
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: debian
OS Version: 8
OS Platform: Linux
RID: debian.8-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
net core - dotnet run hangs in running Docker container
I've ran 'dotnet run' with '--verbosity detailed' in the docker container and receive no warnings or errors. I suspect it could be something...
Read more >dotnet publish hang when running inside Docker container
When following the steps to create the Dockerfile, a bug is introduced in which the Docker container hangs when attempting to run dotnet...
Read more >Troubleshoot common issues - Azure Container Instances
This article shows how to troubleshoot common issues for managing or deploying containers to Azure Container Instances.
Read more >Building a docker image hangs on Azure Pipeline
Basically, I wanted to build a docker image using the docker template in the pipelines, but unfortunately it got stuck on a certain...
Read more >Why isn't my ASP.NET Core app in Docker working?
In this post I describe a problem where my ASP.NET Core app in Docker wasn't responding to requests. This post debugs and diagnoses...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MichaelSimons Yes, that helped. I upgraded to kernel 4.2.8 (http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2.8-wily/), restarted the host, started a container and now the dotnet CLI works. Thank you for your help!
For RTM, I think it would be great to have a
Docker on Ubuntu
image in Azure that supports running dotnet CLI without prior updating the kernel. However, my current problem is solved. Thank you again.Just a hint for people who want to demo dotnet CLI on Azure in a Docker container: You can use the Azure ARM Quickstart Template for Docker on Ubuntu (https://github.com/Azure/azure-quickstart-templates/tree/master/docker-simple-on-ubuntu). This will give you an environment where dotnet CLI works inside a Docker container out of the box. No need to update the Linux kernel there.