اینجا سعی کردم خلاصه مباحث مرتبط بین لینوکس و کانتینرها رو به واسطه تدریس در دوره آموزشی داکر گرینوب، گردآوری کنم.
جزییات دوره: https://evnd.co/l2PJx
- First, read this concept: https://fen.wikipedia.org/wiki/OS-level_virtualization
- Many people use container systems like Docker, but how do they work? https://bit.ly/3fLhb58
- User/Groups
- File/Directory permissions
- Read more: https://www.linode.com/docs/guides/linux-users-and-groups/
- Read more: https://medium.com/@mccode/understanding-how-uid-and-gid-work-in-docker-containers-c37a01d01cf
- Process management
- System management
- PID 1 (pstree -n -p)
- We need these in the containers?
- Read more: https://docs.docker.com/config/containers/multi-service_container
- Read more: https://runnable.com/docker/rails/run-multiple-processes-in-a-container
- Read more: https://ahmet.im/blog/minimal-init-process-for-containers/
- Run
docker run httpd:alpine
and then enter Ctrl+C - Read more: https://dsa.cs.tsinghua.edu.cn/oj/static/unix_signal.html
- Read more: https://hynek.me/articles/docker-signals/
ENTRYPOINT ["/bin/app"]
vsENTRYPOINT /bin/app
- Read more: https://emmer.dev/blog/docker-shell-vs.-exec-form/
docker logs
, am i joke to you?- Read more: https://www.howtogeek.com/435903/what-are-stdin-stdout-and-stderr-on-linux/
- For build? For run?
- Read more: https://engineering.bitnami.com/articles/why-non-root-containers-are-important-for-security.html