Skip to content

Conversation

@qkaiser
Copy link
Contributor

@qkaiser qkaiser commented Oct 1, 2024

Some users have issues with bind mounts and UID/GID mismatch between their host users and the container user that defaults to 1000.

We fix it by installing unblob system-wide within the container, making it available to any user within the container.

Users that want a one-to-one mapping of their host user to the container user can do so with the -u docker run parameter:

docker run -u $UID:$GID [...] ghcr.io/onekey-sec/unblob:latest

Resolve #971

@qkaiser qkaiser added the bug Something isn't working label Oct 1, 2024
@qkaiser qkaiser self-assigned this Oct 1, 2024
@qkaiser qkaiser force-pushed the 971-system-wide-install-container branch from 38b86b3 to 073dfad Compare October 1, 2024 14:11
@kissgyorgy kissgyorgy self-requested a review October 1, 2024 14:36
Copy link
Contributor

@kissgyorgy kissgyorgy left a comment

Choose a reason for hiding this comment

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

The change seems good to me, I would write one sentence to the documentation how to use it this way at the end of Docker image section. Maybe even mention that the bind-mounted output dir must have the same UID as passed in.

Some users have issues with bind mounts and UID/GID mismatch between
their host users and the container user that defaults to 1000.

We fix it by installing unblob system-wide within the container, making
it available to any user within the container.

Users that want a one-to-one mapping of their host user to the container
user can do so with the `-u` docker run parameter:

docker run -u $UID:$GID [...] ghcr.io/onekey-sec/unblob:latest
@qkaiser
Copy link
Contributor Author

qkaiser commented Oct 1, 2024

@kissgyorgy done

@qkaiser qkaiser force-pushed the 971-system-wide-install-container branch from 073dfad to 274c984 Compare October 1, 2024 14:50
@kissgyorgy kissgyorgy merged commit 04036e9 into main Oct 1, 2024
@kissgyorgy kissgyorgy deleted the 971-system-wide-install-container branch October 1, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uid for user inside container

3 participants