containerd / containerd/nerdctl

Provenance flag is not handled correctly for boolean passed

Open
#4,328 5 comments 1 reaction 1 assignee Claimed by @Shubhranshu153 View on GitHub
kind/unconfirmed-bug-claim
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

sudo nerdctl build . --provenance=false -t test:0.1

creates a unkown/unkown image tag

```
[shubhum@lima-finch Test]$ sudo nerdctl image ls
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
test 0.1 3e7b5c47d20a 7 seconds ago linux/amd64 8.978MB 3.798MB
test 0.1 3e7b5c47d20a 7 seconds ago unknown/unknown 0B 3.099kB
```

### Steps to reproduce the issue

1. sudo nerdctl build . --provenance=false -t test:0.1

2.
```
[shubhum@lima-finch Test]$ sudo nerdctl image ls
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
test 0.1 3e7b5c47d20a 7 seconds ago linux/amd64 8.978MB 3.798MB
test 0.1 3e7b5c47d20a 7 seconds ago unknown/unknown 0B 3.099kB
```

### Describe the results you received and expected

It should not create image with platform unknown/unknown

### What version of nerdctl are you using?

nerdctl 2.1.2

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

None

### Host information

_No response_

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.