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

buildah bud --rm -t webserver . fails #598

Closed
TomSweeneyRedHat opened this issue Apr 17, 2018 · 7 comments
Closed

buildah bud --rm -t webserver . fails #598

TomSweeneyRedHat opened this issue Apr 17, 2018 · 7 comments

Comments

@TomSweeneyRedHat
Copy link
Member

Description

docker has this command: docker build --rm -t webserver . which if you replace docker with 'buildah' your receive the error:

Incorrect Usage: flag provided but not defined: -rm

If we're not going to support this, we should at least provide an error message which tells the user how to make it so.

Reported/Requested by @dustymabe

Output of buildah version:

Buildah v0.16

@rhatdan
Copy link
Member

rhatdan commented Apr 17, 2018

We should support it.

@pixdrift
Copy link
Contributor

I was looking at rm when compiling the list for #599. The behaviour of --rm in docker is to remove intermediate containers after successful build (defaults to true). Is buildah bud currently generating/storing intermediate containers?

I suspect the expected behaviour of --rm is what buildah is already doing (not generating/storing intermediate containers after build).. and --rm=false is where the work would be matching docker behaviour.

@pixdrift
Copy link
Contributor

@rhatdan, if this does match default buildah behaviour, would there be benefit in having a noop for the --rm for the time being, and then implementing --rm=false when the layer caching is implemented in #601?. This would improve compatibility in the short term while the caching capability is developed.

@rhatdan
Copy link
Member

rhatdan commented Apr 26, 2018

Sure Open a PR...

@pixdrift
Copy link
Contributor

pixdrift commented Apr 30, 2018

noop for --rm implemented in PR #639 from @rhatdan

@pixdrift
Copy link
Contributor

pixdrift commented May 8, 2018

@TomSweeneyRedHat, the original use case should work now without the -rm error.

@rhatdan
Copy link
Member

rhatdan commented May 25, 2018

I'm closing this since I believe we cover this in other issues.

@rhatdan rhatdan closed this as completed May 25, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants