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

BUG: owner group changed #119

Open
loynoir opened this issue Jul 1, 2022 · 1 comment
Open

BUG: owner group changed #119

loynoir opened this issue Jul 1, 2022 · 1 comment

Comments

@loynoir
Copy link

loynoir commented Jul 1, 2022

Given

  • user foobar have Dockerfile with owner group foobar:foobar

Problems

$ docker run -v "${PWD}":/run safewaters/docker-lock lock generate

Actual: generate docker-lock.json with owner group root:root, if there is an empty docker-lock.json, permission is OK.

Expected: generate owner group as first matched files owner group

$ docker run -v "${PWD}":/run safewaters/docker-lock lock rewrite

Actual: changed Dockerfile from foobar:foobar to root:root

Expected: owner group unchanged

@loynoir
Copy link
Author

loynoir commented Jul 3, 2022

Workaround, non-root

$ podman run -v "${PWD}":/run docker.io/safewaters/docker-lock lock generate
$ podman run -v "${PWD}":/run docker.io/safewaters/docker-lock lock rewrite

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

No branches or pull requests

1 participant