Docker Desktop 4.19.0 breaks CreateImageAsync if part of an enforced organization sign-in.
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 416
- PR merge metrics
- No merged PRs in 30d
Description
**Output of `dotnet --info`:**
```
.NET SDK:
Version: 7.0.203
Commit: 5b005c19f5
Runtime Environment:
OS Name: Mac OS X
OS Version: 13.3
OS Platform: Darwin
RID: osx.13-arm64
Base Path: /usr/local/share/dotnet/sdk/7.0.203/
Host:
Version: 7.0.5
Architecture: arm64
Commit: 8042d61b17
.NET SDKs installed:
6.0.402 [/usr/local/share/dotnet/sdk]
6.0.405 [/usr/local/share/dotnet/sdk]
7.0.203 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
```
**What version of Docker.DotNet?:**
```
3.125.14
```
**Output of `docker version`**
```
Client:
Cloud integration: v1.0.31
Version: 23.0.5
API version: 1.42
Go version: go1.19.8
Git commit: bc4487a
Built: Wed Apr 26 16:12:52 2023
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.19.0 (106363)
Engine:
Version: 23.0.5
API version: 1.42 (minimum version 1.12)
Go version: go1.19.8
Git commit: 94d3ad6
Built: Wed Apr 26 16:17:14 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.20
GitCommit: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
runc:
Version: 1.1.5
GitCommit: v1.1.5-0-gf19387a
docker-init:
Version: 0.19.0
GitCommit: de40ad0
```
**Steps to reproduce the issue:**
1. Be part of a docker organization
2. Have the sign-in be enforced
- See [Enforce sign-in for Desktop](https://docs.docker.com/docker-hub/configure-sign-in/)
3. Sign out and shut down docker
4. Start up (it should require you to sign in now)
5. Sign in to desktop
6. For good measure, open your command line and sign in using `docker login`
7. Now run this section of code
```
// put this in main method
var _dockerClient = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
new DockerClientConfiguration(new Uri("npipe://./pipe/docker_engine")).CreateClient() :
new DockerClientConfiguration(new Uri("unix:///var/run/docker.sock")).CreateClient();
var parameters = new ImagesCreateParameters();
parameters.FromImage = "amazon/dynamodb-local";
parameters.Tag = "latest";
var dockerClientImages = _dockerClient.Images;
var progress = new Progress();
// new AuthConfig() or null still produces the same result
await dockerClientImages.CreateImageAsync(parameters, new AuthConfig(), progress);
```
**What actually happened?:**
Exception occured:
```
Docker.DotNet.DockerApiException
Docker API responded with status code=ProxyAuthenticationRequired, response=Please run 'docker login'
```
**What did you expect to happen?:**
It should pull down the image without an exception.
**Has this worked before?**
In docker desktop 4.18 it has worked previously.
**Additional information**
Since we are already logged in with docker desktop, and docker engine, i'd assume that we'd all ready be logged in?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.