Skip to main content
Kubernetes Made Easy! Instantly spin up best-practice clusters with GetInfra templates. Browse Now

How to ping from .net application container

Just place it here so next time I will not need to search for.

Many time in order to debug network connectivity between pods we use standard network tools such as ping utility.

Docker images in order to reduce size usually shipped without them. In order to run ping command you will need to install the utility first.

If you are developing .net applications you are probably familiar with mcr.microsoft.com/dotnet/sdk:7.0 image, which or its variations are used for shipping .net dockerized applications.

For ubuntu based image run the following to install ping utility:

apt-get update -y
apt-get install -y iputils-ping

Full list of tags and OS versions cna be found here

Share this article

About the Author

Alexander Lvovich

Alexander Lvovich

Solution Architect & Software Developer | Automating & Scaling Infrastructure

💡 Working with Kubernetes, Istio, and DevOps. Got questions? Feel free to reach out!


No comments are allowed for this post