-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
Actually, I am trying to run the below following command i.e
docker run -it --rm -v $(pwd):/var/www/html --user node node:12.13.1-alpine ash.
Expected result :
The files inside the container (i.e /var/www/html ) should have user as node.
Actual result:
But, the files inside the containers are showing the same user as of the host.
Also, can't create a directory inside the container.
It is working for my other colleagues. So, any help in this would be much appreciated.
Many thanks,
Alwin
Note:
- Docker version 19.03.7, build 7141c199a2
- Have added necessary permission to docker command so that it doesn't need sudo for running it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels