Skip to content

UID issues #189

Description

@marek-obuchowicz

Which release, branch or hash of Docker SDK are you using?

1.30.0

Which operating system (platform/version/architecture) are you using?

Debian 10

What is the issue that you're experiencing?

Owner of files inside containers is not correctly set

What are the steps to reproduce the issue?

Build generator image (docker/sdk boot)
Check ownership of index.php

What is the expected result of these steps in the absence of the issue?

File ownership is adjusted to UID of current user

What is the actual result?

File ownership is set to UID=1000

What possible solutions and/or workarounds for the issue do you see?

--

Is there any other information that might be helpful?

https://github.com/spryker/docker-sdk/blame/master/generator/Dockerfile#L24
The line mentioned above gives an error - it’s ignored and doesn’t break docker build:

$ find / -user 1000 -exec chown -h spryker {} \ || true;
find: -exec requires an argument

Correct command is missing semicolon:

find / -user 1000 -exec chown -h spryker {} \; || true;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions