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
@Alger7w
Alger7w / Dockerfile
Created May 17, 2018 09:49 — forked from renzok/Dockerfile
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 \