Docker Community Forums

Share and learn in the Docker community.

Docker -u option not working in Windows 2019


I installed a docker in Windows server 2019, which is actually a VM and was made via ESXI. It’s LCOW (Linux Container on Windows).

I tried to pass non-root user to container using -u option, i.e, docker run -u “1000:1000” …, but the login user is still root. Is this not supported in LCOW? I also tried to add 'USER" in Dockerfile and docker-compose.yml file. It is not working, either.

Anyone has any idea ? Thanks.