You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
hejianshan
committed
fix: add --timeout=0 to use containerd's default 24h lease expiration
Previously, --timeout=0 passed leases.WithRandomID() to client.WithLease,
which caused containerd to skip its default 24h expiration (only applied when
len(opts)==0). This resulted in a lease that never expired.
Fix by calling client.WithLease(ctx) with no opts when --timeout=0, so
containerd correctly applies its default 24h lease expiration.
Copy file name to clipboardExpand all lines: docs/command-reference.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -816,6 +816,7 @@ Flags:
816
816
-:whale:`-m, --message`: Commit message
817
817
-:whale:`-c, --change`: Apply Dockerfile instruction to the created image (supported directives: [CMD, ENTRYPOINT])
818
818
-:whale:`-p, --pause`: Pause container during commit (default: true)
819
+
-:nerd_face:`--timeout`: Maximum duration for the commit operation (default: 1h). Set to 0 to use containerd's default lease expiration (24h). Accepts Go duration format (e.g., `2h`, `90m`, `0s`).
819
820
-:nerd_face:`--compression`: Commit compression algorithm (supported values: zstd or gzip) (default: gzip) (zstd is generally better for compression ratio but might not be as widely supported)
820
821
-:nerd_face:`--format`: Format of the committed image (supported values: docker or oci) (default: docker) (docker uses Docker Schema2 media types for compatibility, oci uses OCI image format media types)
821
822
-:nerd_face:`--estargz`: Convert the committed layer to eStargz for lazy pulling
0 commit comments