Skip to content

Instantly share code, notes, and snippets.

View Alger7w's full-sized avatar
🎯
Focusing

Wang Jue Alger7w

🎯
Focusing
  • Hangzhou. Zhejiang Prov. PRC
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 \