File Permission



- chmod 600 <file_name>
- chmod -R 6-- <folder_name>
- R --> Recurrsive
What is UMASK ?
- This is for default permission.
- just type "umask".
- Reply 0002 ( what it means ? )
- Don't take the first 0. It will be for directory.
- It will give 666 (rw- rw- rw-) --> 666 - 002 --> 664.
- The result is ( rw- rw- r-- )
Bind Mount

mount --bind <src_folder> <dest_folder>
- A folder is like HOST.
- B folder is like Container.
- This is literally called as Volume.
- Bind Mount is nothing buta VOLUME.
Commands
- docker run -v "./data":"/home/data" ubuntu bash
Architecture

- Image is RO.
- No in-place updation for image , only new image can be created.
- Each image will have different layers.
Notes :
- Container is nothing but spinning of an image using Docker.
Top comments (0)