Describe the Bug
I have run one of my dotnet project's build process with mcr.microsoft.com/dotnet/sdk:6.0-alpine-amd64 and at least four months ago it worked just fine. Today I tried it again, and I am getting following error
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
/source/WhisperDragon_CLI.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
Failed to restore /source/WhisperDragon_CLI.csproj (in 5.77 sec).
The command '/bin/sh -c dotnet publish -c release -r linux-musl-x64 --self-contained -o /app -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true' returned a non-zero code: 1
Steps to Reproduce
- Clone repo https://github.com/mcraiha/WhisperDragonCLI
- Run
docker build .
Other Information
I also tried with mcr.microsoft.com/dotnet/sdk:6.0-alpine3.15-amd64 and got same error. I can download the file on host just fine with wget https://api.nuget.org/v3/index.json
Output of docker version
Client: Docker Engine - Community
Version: 20.10.17
API version: 1.41
Go version: go1.17.11
Git commit: 100c701
Built: Mon Jun 6 23:02:57 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
Git commit: a89b842
Built: Mon Jun 6 23:01:03 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.6
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
runc:
Version: 1.1.2
GitCommit: v1.1.2-0-ga916309
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.8.2-docker)
scan: Docker Scan (Docker Inc., v0.17.0)
Server:
Containers: 20
Running: 0
Paused: 0
Stopped: 20
Images: 8
Server Version: 20.10.17
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
runc version: v1.1.2-0-ga916309
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.4.72-microsoft-standard-WSL2
Operating System: Ubuntu 20.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 12.44GiB
Name: DESKTOP-020THD2
ID: TMEO:GTSM:3BWM:HJJL:ZZ6L:M6PH:GFLT:HXRL:XCJI:LCXS:62RR:45HT
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
Describe the Bug
I have run one of my dotnet project's build process with mcr.microsoft.com/dotnet/sdk:6.0-alpine-amd64 and at least four months ago it worked just fine. Today I tried it again, and I am getting following error
Steps to Reproduce
docker build .Other Information
I also tried with mcr.microsoft.com/dotnet/sdk:6.0-alpine3.15-amd64 and got same error. I can download the file on host just fine with
wget https://api.nuget.org/v3/index.jsonOutput of
docker versionOutput of
docker info