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 --layers=false / does not handle WORKDIR correctly. #2402

Closed
rhatdan opened this issue Jun 12, 2020 · 8 comments
Closed

buildah bud --layers=false / does not handle WORKDIR correctly. #2402

rhatdan opened this issue Jun 12, 2020 · 8 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR

Comments

@rhatdan
Copy link
Member

rhatdan commented Jun 12, 2020

If I have a Dockerfile that looks like:

FROM fedora
WORKDIR /test

And then run buildah bud -t workdir --layers=false . on it multiple times. The second time, it will not create the /test directory in the image.

podman run workdir pwd
Error: chdir: No such file or directory: OCI runtime command not found error

If I run buildah bud -t workdir --layers=true .

podman run workdir pwd
/test
@nalind
Copy link
Member

nalind commented Aug 5, 2020

This'll overlap with changes to imagebuildah.StageExecutor.Execute() that I'm working on, so I'll take this one.

@nalind nalind assigned nalind and unassigned TomSweeneyRedHat Aug 5, 2020
@TomSweeneyRedHat
Copy link
Member

Does containers/podman#7239 help/solve this?

@rhatdan
Copy link
Member Author

rhatdan commented Feb 10, 2021

@nalind did you ever make any headway with this?

@rhatdan
Copy link
Member Author

rhatdan commented Feb 10, 2021

@vrothberg I think you had a similar issue?

@vrothberg
Copy link
Member

It's addressed on the Podman-side where the workdir from an image is guaranteed to be created by Podman in case it doesn't exist on the root FS of the image.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member Author

rhatdan commented May 25, 2021

@nalind Did you ever complete this?

@rhatdan
Copy link
Member Author

rhatdan commented May 25, 2021

This seems to work now.

@rhatdan rhatdan closed this as completed May 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants