# My Docker Note
## Tutorial
https://hackmd.io/@titangene/docker-collection/%2FwblEU3lSQaahyvDn7yzCqA?type=book
## Manual
https://philipzheng.gitbook.io/docker_practice/
https://hackmd.io/@titangene/docker-collection/%2FwblEU3lSQaahyvDn7yzCqA?type=book
### Docker ecosystem
Docker Ecosystem Three: Container Support Technology
- https://blog.devgenius.io/docker-ecosystem-three-container-support-technology-6c2ff98dbdd6
## Under-the-hood
### Container File System

- Current Docker uses OverlayFS
- Four terms in OverlayFS
- lower: The lower layer directory, read only.
- upper: Responsible for creation, modify update and delete operations in OverlayFS, this layer is writable.
- merged: The mount point directory and the directory that the user sees, where the user’s actual file operations are performed.
- work: Just a directory for storing temporary files. If there is a file modification in OverlayFS, the file will be temporarily stored here in the middle of the process.
reference
- https://aws.plainenglish.io/containers-from-zero-to-hero-container-file-system-e5ae1f6dd230
### How Docker is implemented
- https://www.hwchiu.com/container-design-i.html?fbclid=IwAR3Ub4oxIHYMRFYuf0IGaS5dHFlq5b5kCzMWjyMHLH-1SORlNrE7Bu4aoaU
## Tips
### Permission Issues
Avoiding Permission Issues With Docker-Created Files
https://vsupalov.com/docker-shared-permissions/
### about /var/run/docker.sock
https://medium.com/better-programming/about-var-run-docker-sock-3bfd276e12fd
### Access the Docker Daemon via SSH
https://medium.com/better-programming/docker-tips-access-the-docker-daemon-via-ssh-97cd6b44a53
- This post also demonstrates the usage of Vagrant
### Docker Network Comparsion
https://www.hwchiu.com/docker-network-model.html?fbclid=IwAR2baE7zL4ZFqdbgrbHY_CPQ_xooKAI-zTslf2ruG90xlVqIM4DzfW3YpNw
https://medium.com/cow-say/%E7%B5%A6%E6%96%B0%E6%89%8B%E7%9A%84-docker-%E7%B6%B2%E7%B5%A1%E5%85%A5%E9%96%80-272410c688ff
## Docker-compose
https://hackmd.io/@titangene/docker-collection/%2FMyWUZV2mRbCkmZd1-HXwrQ?type=book
## Application
### LAMP
利用 Dockfile、Docker Compose 建立 LAMP 環境 (PHP、Apache、MySQL)
https://hackmd.io/@titangene/docker-lamp
### Laravel
Laradock — Laravel + Docker 輕量級環境打造
https://medium.com/@yfancc20/laradock-%E8%BC%95%E9%87%8F-laravel-%E7%92%B0%E5%A2%83%E7%9A%84%E5%98%97%E8%A9%A6-%E5%B8%B8%E8%A6%8B%E9%8C%AF%E8%AA%A4-2fc6f0c21433
用 Docker 取代 Laravel Homestead 開發環境
https://blog.wu-boy.com/2016/03/replace-laravel-homestead-with-docker/
### MISC
WordPress Deployment with NGINX, PHP-FPM and MariaDB using Docker Compose
https://medium.com/swlh/wordpress-deployment-with-nginx-php-fpm-and-mariadb-using-docker-compose-55f59e5c1a
慢慢建立自動化 Docker 前後端的 Local 開發環境,然後再慢慢優化(雜記類)
https://medium.com/@Whien/%E6%85%A2%E6%85%A2%E5%BB%BA%E7%AB%8B%E8%87%AA%E5%8B%95%E5%8C%96-docker-%E5%89%8D%E5%BE%8C%E7%AB%AF%E7%9A%84%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83-%E7%84%B6%E5%BE%8C%E5%86%8D%E6%85%A2%E6%85%A2%E5%84%AA%E5%8C%96-%E9%9B%9C%E7%B4%80%E9%A1%9E-d0cf8b606a87