How to deal with high user id in a dockerfile

Solve the issue related to the high user id in a dockerfile. At first, create a simple docker image with a custom user. FROM debian:bullseye RUN groupadd –gid 1000 milosz \ && useradd –uid 1000 –gid 1000 –shell /bin/bash –create-home milosz USER milosz WORKDIR /home/milosz It will build successfully as expected. Sending build context to … Continue reading How to deal with high user id in a dockerfile