Skip to content

Docker container are not working expected! #1

@alwinjoseph02

Description

@alwinjoseph02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions