containerd / containerd/nerdctl
When using nerdctl to push an image, the size of the image being pushed is not displayed.
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### Description
When executing nerdctl push on the host machine, the displayed image size remains only a few KiB, even though the actual image size is in **GiB**. It has been confirmed that there is no caching in Harbor, and the push operation lasts several hundred seconds.`(containerd 1.6.2 nerdctl 1.7.6).`
```
nerdctl -n k8s.io push harbor.xxxx.com/xx:1.0
INFO[0000] pushing as a reduced-platform image (application/vnd.docker.distribution.manifest.v2+json,
manifest-sha256:480cd7d4c792f9d245f7f62d3d5bb279d03ab68aa575fc814e5cdfb48a4abf3b: waiting
config-sha256:e78b09f8d7681ae80c81d317d1fef7f9222efc75b5a5e5da455c9578c2ed9896: waiting
elapsed: 386 s total: 17.1K (4.3 KB/s)
```
I then looked at this [issue ](https://github.com/containerd/nerdctl/issues/2279)and tested with updated versions of containerd and nerdctl`(containerd 1.6.33 nerdctl 2.0.0-beta.5)`. This time, on the host machine, the pushed size displayed as 0. Additionally, the progress bar does not update correctly.
```
nerdctl -n k8s.io push harbor.xxxx.com/xx:1.0
INFO[0000] pushing as a reduced-platform image (application/vnd.docker.distribution.manifest.v2+json,
manifest-sha256:480cd7d4c792f9d245f7f62d3d5bb279d03ab68aa575fc814e5cdfb48a4abf3b: waiting |--------------------------------------|
config-sha256:e78b09f8d7681ae80c81d317d1fef7f9222efc75b5a5e5da455c9578c2ed9896: waiting |--------------------------------------|
elapsed: 326 s total: 0.0B (0.0 B/s)
```
Additionally, the push speed inside the container is also constantly 0.
### Steps to reproduce the issue
1. Push the image on the host machine.
### Describe the results you received and expected
Expected Result: To obtain the correct push progress, push size, and push speed.
Actual Result: The obtained push size and speed are both 0, and the progress is not updated.
### What version of nerdctl are you using?
1.7.6
### 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.