Skip to content

Instantly share code, notes, and snippets.

@kenchoong
Created March 26, 2020 13:40
Show Gist options
  • Save kenchoong/5382c50986f5fd5db70201f1622698ef to your computer and use it in GitHub Desktop.
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
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