How to change the file permission in volume mapping?

I have a file abc.txt on host machine with permissions 400. I am mapping this file inside container using volumes. I want to change the permission of file inside the container as 777 but the permissions of the file at host should be 400 only.

Describe the results you received:
Currently permission of the file abc.txt inside container is 400 .

Output of docker version:

1 Like