Created
March 26, 2020 13:40
-
-
Save kenchoong/5382c50986f5fd5db70201f1622698ef to your computer and use it in GitHub Desktop.
Change ownership and permission of a folder which inside a docker container from terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker container start <container_name> | |
// access the docker | |
docker exec -u root -it <container_name> /bin/sh | |
//here change ownership of a folder | |
chown -R user_name:group_name <path/of/folder/that/need/to/change/permission> | |
//here change permission of a folder | |
chmod -R 755 /folder/path/that/need/to/change/permission |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment