-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image squash command #3756
base: main
Are you sure you want to change the base?
Add image squash command #3756
Conversation
b7756fe
to
9599d0a
Compare
cmd.Flags().StringP("message", "m", "", "Commit message") | ||
} | ||
|
||
func NewSquashCommand() *cobra.Command { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs docs and tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,I will add it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added, please check it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md needs to be updated
cmd/nerdctl/main.go
Outdated
@@ -295,6 +295,7 @@ Config file ($NERDCTL_TOML): %s | |||
image.NewTagCommand(), | |||
image.NewRmiCommand(), | |||
image.NewHistoryCommand(), | |||
image.NewSquashCommand(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of inflating the number of the top-level commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
} | ||
} | ||
|
||
// copied from github.com/containerd/containerd/rootfs/apply.go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a permanent URL with the git tag (or the commit hash)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit hash has been added.
Signed-off-by: weipeng <weip3@chinatelecom.cn>
4073bc1
to
05d0370
Compare
Signed-off-by: weipeng <weip3@chinatelecom.cn>
This pr adds the squash image command.
The related issue is #3252.