Reputation: 597
I have a docker container to work in. I now have to install module inside the container (npm i
) but I get the error message checkPermissions Missing write access to ../node_moduleslTree path /node_modules
.
I can't change the docker file. Is there any way to change the permissions of the folder inside docker (shell). Or maybe switch User?
Greetings
Upvotes: 0
Views: 11845
Reputation: 1334
Well, there are more than one solution. First one is that you connect to existing docker container with following command
docker exec -it name_of_the_container bash
and apply correct permission for desired directory. Probably correct permission:
chmod +w directory
There is also another solution if you are building this container. You can create Dockerfile and in this Dockerfile you will manage permission of this directory before container comes online.
Hope it helps
Upvotes: 3