dotnet / dotnet/Docker.DotNet

Images pulled with CreateImageAsync results in error during extraction

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

**Output of `dotnet --info`:**

.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9

Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

**What version of Docker.DotNet?:**

3.125.1

**Steps to reproduce the issue:**
1. Executing the following code against the local named pipe endpoint.
class Program
{
static void Main(string[] args)
{
CreateImageAsync().GetAwaiter().GetResult();
}
private static async Task CreateImageAsync()
{
DockerClient client = new DockerClientConfiguration(new Uri("npipe://./pipe/docker_engine"))
.CreateClient();

await client.Images.CreateImageAsync(new ImagesCreateParameters()
{ FromImage = "microsoft/nanoserver" }, null, new ImageProgress());
}
}

class ImageProgress : IProgress
{
public void Report(JSONMessage value)
{
Console.WriteLine(!string.IsNullOrEmpty(value.ErrorMessage)
? value.ErrorMessage
: $"{value.ID} {value.Status} {value.ProgressMessage}");
}
}

**What actually happened?:**
The image is downloaded and extracted, but after extraction fails with
||failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\docker\windowsfilter\1
052456ea1f0c45ad05cb994257cde935ed763de4b6a27b27fc98c6c77b3c3b1: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.

I have tried the same image with "docker pull" on the same machine and that succeeds.
Also tried microsoft/windowsservercore image to confirm it was not the image.
Also tried both Windows 10 and Windows Server 2016.

**What did you expect to happen?:**

Expected the step after extraction to be successful and the image to be visible in docker images

**Additional information:**

Step after extraction seems to fail.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.