Skip to content

Latest .NET 4.7.2 Images run into a tls error trying to install nuget #1115

@lekxyy

Description

@lekxyy

Describe the Bug

Since around the beginning of march 2024 (1-2 weeks ago), when I pull the latest .NET 4.7.2 image the following error is thrown:

No match was found for the specified search criteria
for the provider 'NuGet'. The package provider requires 'PackageManagement'
and 'Provider' tags. Please check if the specified package has the tags.

No changes were made in the dockerfile in the meantime.

Steps to Reproduce

Here is the dockerfile to reproduce the error from:

FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.2

# install SQL-Server module
RUN powershell -Command \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Install-PackageProvider -Name NuGet -Force; \

Note: Tls1.2 is needed for it to work. - To be precise, it worked like that till 2 weeks ago.

Output of docker version

Client: Mirantis Container Runtime
Version: 20.10.0
API version: 1.41
Go version: go1.13.15
Git commit: 6ee42dc
Built: 03/11/2021 13:24:56
OS/Arch: windows/amd64
Context: default
Experimental: true

Server: Mirantis Container Runtime
Engine:
Version: 20.10.0
API version: 1.41 (minimum version 1.24)
Go version: go1.13.15
Git commit: 1e08f21e79
Built: 03/11/2021 13:23:32
OS/Arch: windows/amd64
Experimental: false

Output of docker info

Client:
Context: default
Debug Mode: false
Plugins:
app: Docker Application (Docker Inc., v0.8.0)
cluster: Manage Mirantis Container Cloud clusters (Mirantis Inc., v1.9.0)
registry: Manage Docker registries (Docker Inc., 0.1.0)

Server:
Containers: 62
Running: 1
Paused: 0
Stopped: 61
Images: 1128
Server Version: 20.10.0
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
Operating System: Windows Server 2019 Standard Version 1809 (OS Build 17763.4974)
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 24GiB
Name: *******
ID: **********
Docker Root Dir: D:\dockerdata
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

Questions

-Could you reproduce it?
-Did you find the cause of the behaviour?
-Is it a known bug?
-Is there a workaround?
-Is it known if/when it will be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions