dotnet / dotnet/dotnet-docker

aspnet:8.0 image missing iputils-ping package

Open
#7,043 5 comments 0 reactions 0 assignees View on GitHub
untriaged
Dominant language
Dockerfile
Stars
4.9k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
26

Description

### Describe the bug

I have a Service running in a container of `mcr.microsoft.com/dotnet/aspnet:8.0`. This Sevice does a Ping using `System.Net.NetworkInformation.Ping` which is not possible because of this missing package.

I would expect that all provided core functionality from .NET works in these containers. Especially if it is the `System.Net` Namespace. So, I guess this is a bug.

My current workaround is the following in my Docker files:
```dockerfile
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "iputils-ping"]
```
But this increases the docker image build time and size considerably (15MB+) for such a small utility package.

### Which .NET image(s) are you using?

mcr.microsoft.com/dotnet/aspnet:8.0

### Steps to reproduce

_No response_

### Other information

_No response_

### Output of `docker version`

```console

```

### Output of `docker info`

```console

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.