question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet hangs in Docker Container in Azure

See original GitHub issue

Steps 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 or dotnet 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:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rstropekcommented, May 19, 2016

@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.

0reactions
rstropekcommented, May 20, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found