Skip to content
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

Fix: cmd rmi images with flags #1711

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

tgfree7
Copy link
Contributor

@tgfree7 tgfree7 commented Sep 16, 2022

Signed-off-by: tgfree [email protected]

Describe what this PR does / why we need it

try to fix sealer rmi with flag error

Does this pull request fix one issue?

#1710

Describe how you did it

Describe how to verify it

Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2022

Codecov Report

Base: 18.39% // Head: 18.39% // No change to project coverage 👍

Coverage data is based on head (2167739) compared to base (cd61b99).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1711   +/-   ##
=======================================
  Coverage   18.39%   18.39%           
=======================================
  Files          66       66           
  Lines        5359     5359           
=======================================
  Hits          986      986           
  Misses       4247     4247           
  Partials      126      126           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: tgfree <[email protected]>

Fix: cmd rmi images with flags

Signed-off-by: tgfree <[email protected]>
@tgfree7 tgfree7 force-pushed the bugfix/images-rmi-args branch from a1d566a to de9ab40 Compare September 16, 2022 05:20
@tgfree7
Copy link
Contributor Author

tgfree7 commented Sep 16, 2022

@justadogistaken I find out, sealer prune in 0.8.6 has dropped. and the branch main prune the tmp data in this:

	defer func() {
		err = os.RemoveAll(tmpDir)
		if err != nil {
			logrus.Warnf("failed to rm link dir to rootfs: %v : %v", tmpDir, err)
		}
	}()

Did sealer still need the cmd prune?
FYI, if sealer-build has terminated by Ctrl-c, there some legacy data in /tmp (/tmp/sealer1381493771/)

Copy link
Member

@justadogistaken justadogistaken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


force removal of the image and any containers using the image:
sealer rmi registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.19.8 --force/-f

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for -f flag example?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice there is a empty line.
I'm not sure if the content is exhibited correctly in my machine.

@allencloud allencloud merged commit 4c7c364 into sealerio:main Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants