Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container are not working expected! #1

Open
alwinjoseph02 opened this issue Mar 11, 2020 · 0 comments
Open

Docker container are not working expected! #1

alwinjoseph02 opened this issue Mar 11, 2020 · 0 comments

Comments

@alwinjoseph02
Copy link
Owner

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant