containerd / containerd/nerdctl

Fail to create container on Windows 11

Open
#1,068 2 comments 0 reactions 0 assignees View on GitHub
kind/unconfirmed-bug-claim platform/Windows/Non-WSL2
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

I'm installed **Containerd** and **nerdctl** on my Windows machine, pulled google/cloud-sdk using nerdctl. So, when I try to run google/cloud-sdk container using **nerdctl** and **containerd**, the following error is showing up:

### Steps to reproduce the issue

1. nerdctl.exe pull google/cloud-sdk --all-platforms
2. nerdctl.exe run --rm google/cloud-sdk
3.

### Describe the results you received and expected

> time="2022-05-19T16:34:14+01:00" level=info msg="apply failure, attempting cleanup" error="failed to extract layer sha256:f70b727d55c3bf3e37ab16d9d40bc5f5dd209f01a5514af0146547d3f3eaca60: Failed to safefile.OpenRelative failed in Win32: open \\\\?\\C:\\ProgramData\\containerd\\root\\io.containerd.snapshotter.v1.windows\\snapshots\\14\\usr\\share\\man\\man7\\pam.7.gz: Cannot create a file when that file already exists. (0x1f) usr\\share\\man\\man7\\pam.7.gz: unknown" key="extract-212205400-ByGC sha256:f70b727d55c3bf3e37ab16d9d40bc5f5dd209f01a5514af0146547d3f3eaca60"

> time="2022-05-19T16:34:14+01:00" level=fatal msg="failed to extract layer sha256:f70b727d55c3bf3e37ab16d9d40bc5f5dd209f01a5514af0146547d3f3eaca60: Failed to safefile.OpenRelative failed in Win32: open \\\\?\\C:\\ProgramData\\containerd\\root\\io.containerd.snapshotter.v1.windows\\snapshots\\14\\usr\\share\\man\\man7\\pam.7.gz: Cannot create a file when that file already exists. (0x1f) usr\\share\\man\\man7\\pam.7.gz: unknown"

### What version of nerdctl are you using?

nerdctl version 0.19.0

### Are you using a variant of nerdctl? (e.g., Rancher Desktop)

Rancher Desktop for Windows

### Host information

Client:
Namespace: default
Debug Mode: false

Server:
Server Version: v1.6.3
Storage Driver: windows
Logging Driver: json-file
Cgroup Driver:
Cgroup Version:
Plugins:
Log: json-file
Storage: windows-lcow windows
Security Options:
Kernel Version:
Operating System:
OSType: windows
Architecture:
CPUs: 0
Total Memory: 0B
Name: a
ID: d95656fe-7a9a-48b0-9fa9-bffafb70e566

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.