If you want to prevent your docker container creating files as root
, use
--user $(id -u):$(id -g)
as an argument to docker run
. Example:
docker run --user $(id -u):$(id -g) -it -v $(pwd):/app myimage
If you want to prevent your docker container creating files as root
, use
--user $(id -u):$(id -g)
as an argument to docker run
. Example:
docker run --user $(id -u):$(id -g) -it -v $(pwd):/app myimage
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.