Skip to content

Instantly share code, notes, and snippets.

View tq-niebelm's full-sized avatar

Markus Niebel tq-niebelm

  • TQ-Systems GmbH
View GitHub Profile
@renzok
renzok / Dockerfile
Last active September 6, 2023 04:55
docker: mapping host uid and gid to user inisde container
FROM debian:jessie
ENV USER=boatswain USER_ID=1000 USER_GID=1000
# now creating user
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \