Repository navigation
Closed
Labels
Description
Describe the bug
I start a Dockerfile with
FROM alpine:latest
RUN apk add --no-cache zsh
RUN apk add dotnet10-sdk dotnet-sdk-8.0 mono
...etc...
And I run dotnet commands inside a container with image built from this Dockerfile.
But when I run dotnet build in a container hosted on Windows on x64, I get:
error NU1101: Unable to find package Microsoft.NETCore.App.Host.alpine.3.24-x64. No packages exist with this id in source(s): nuget.org
The error goes away when I replace FROM alpine:latest with FROM alpine:3.23 in the Dockerfile.
So I deduce that there is an issue with Net10 SDK on 3.24, which became latest on 16th June, 2 months ago?
Which .NET image(s) are you using?
alpine:latest + 'RUN apk add dotnet10-sdk'
Steps to reproduce
- Create a Dockerfile starting with
FROM alpine:latest
RUN apk add dotnet10-sdk dotnet-sdk-8.0 mono
- On Windows on x64, run these commands from a shell in a container from the image create from it.
dotnet new console
dotnet build
My complete example of Dockerfile and powershell/shell script to build and run it is at https://github.com/chrisfcarroll/VMs/tree/407fe02f863a616142751d57219282834da6d924/ContainerCodeIt
Other information
alpine:latestworked fine earlier in the year.alpine:latestwas bumped to3.24two months ago on 16th June.alpine:lateststill works fine under macOscontaineron arm64, withcat /etc/alpine-releaseshowing3.24.1
Docker Desktop 4.87.0 (236836)
Win11 Enterprise 24H2
Intel(R) Core(TM) Ultra 7 165U (2.10 GHz) 32.0
Output of docker version
docker version
Client:
Version: 29.7.2
API version: 1.55
Go version: go1.26.5
Git commit: a7dcaa6
Built: Wed Aug 5 18:31:33 2026
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.87.0 (236836)
Engine:
Version: 29.7.2
API version: 1.55 (minimum version 1.40)
Go version: go1.26.5
Git commit: 6a43e3d
Built: Wed Aug 5 18:28:36 2026
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.2.5
GitCommit: e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
runc:
Version: 1.3.6
GitCommit: v1.3.6-0-g491b69ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0Output of docker info
Client:
Version: 29.7.2
Context: desktop-linux
Debug Mode: false
Plugins:
agent: Docker AI Agent Runner (Docker Inc.)
Version: v1.122.0
Path: C:\Program Files\Docker\cli-plugins\docker-agent.exe
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.30.0
Path: C:\Program Files\Docker\cli-plugins\docker-ai.exe
buildx: Docker Buildx (Docker Inc.)
Version: v0.36.1-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v5.4.0
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.47
Path: C:\Program Files\Docker\cli-plugins\docker-debug.exe
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.4.3
Path: C:\Program Files\Docker\cli-plugins\docker-desktop.exe
dhi: CLI for managing Docker Hardened Images (Docker Inc.)
Version: v0.0.7
Path: C:\Program Files\Docker\cli-plugins\docker-dhi.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.31
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.43.3
Path: C:\Program Files\Docker\cli-plugins\docker-mcp.exe
model: Docker Model Runner (Docker Inc.)
Version: v1.2.6
Path: C:\Program Files\Docker\cli-plugins\docker-model.exe
offload: Docker Offload (Docker Inc.)
Version: v0.6.10
Path: C:\Program Files\Docker\cli-plugins\docker-offload.exe
pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
Version: v0.2.1
Path: C:\Program Files\Docker\cli-plugins\docker-pass.exe
sandbox: "docker sandbox" is deprecated, use Docker Sandboxes instead (Docker Inc.)
Version: v0.13.0
Path: C:\Program Files\Docker\cli-plugins\docker-sandbox.exe
scout: Docker Scout (Docker Inc.)
Version: v1.24.0
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 4
Server Version: 29.7.2
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Discovered Devices:
cdi: docker.com/gpu=webgpu
Swarm: inactive
Runtimes: nvidia runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
runc version: v1.3.6-0-g491b69ba
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.18.33.2-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 14
Total Memory: 15.35GiB
Name: docker-desktop
ID: 9b189b9f-1d39-4999-a113-3c1d00ce2263
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=npipe://\\.\pipe\docker_cli
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
::1/128
127.0.0.0/8
Live Restore Enabled: false
Firewall Backend: iptablesMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chrisfcarroll commentedon Aug 26, 2026
Apologies if this is the wrong repo for this issue?
fix:Container*/Dockerfile:revert to alpine 3.23 because of dotnet/dot…
lbussell commentedon Aug 26, 2026
The
alpine:latestandalpine:3.23images as well as thedotnet10-sdkpackage are built and maintained by Alpine Linux.Microsoft does not produce any RID-specific runtime host packages like
Microsoft.NETCore.App.Host.alpine.3.24-x64or.alpine.3.23-x64. When you install .NET directly from a Linux distro feed (like Alpine), those are supposed to be built in to the package.Microsoft distributes portable builds of .NET. For example, the
mcr.microsoft.com/dotnet/sdk:10.0-alpineimage would use theMicrosoft.NETCore.App.Host.linux-musl-x64runtime app host which works on both Alpine 3.23 and 3.24. This repo produces themcr.microsoft.com/dotnet/*images.The fact that
Microsoft.NETCore.App.Host.alpine.3.24-x64is missing from the Alpine 3.24dotnet10-sdkpackage or dependencies sounds like a bug in Alpine's .NET package.I found these Alpine Linux issues that might be related:
To fix the problem, you could try any of the following:
mcr.microsoft.com/dotnet/sdk:10.0-alpineimage.<UseAppHost>false</UseAppHost>so that your app produces only a.dllfile with no native app host. You would then run it withdotnet YourAssemblyName.dll.-p:AppHostRuntimeIdentifier=linux-musl-x64to pick up Microsoft's generic musl app host.chrisfcarroll commentedon Aug 27, 2026
My apologies for raising this in the wrong place, and thank you for taking the time!