docker 移植的基本概念

本文的主要實踐是將docker 移植到arm64 linux debian 上。通過總結,理論上你可以徒手將docker 移植到仍何一個嵌入式設備上。

1. docker 的基本概念

2. docker 的內核支持

3. docker 移植的注意事項

docker 的安裝具體可以參考https://docs.docker.com/engine/install/。這裏再贅述下binary & debian 包的安裝方式

3.1 debian package install

(1)去 https://download.docker.com/linux/debian/dists/, 選擇Debian version, 進入pool/stable/, 選擇 amd64, armhf, or arm64 下載最新的debian 版本. 分別下載這三個包docker-ce,
docker-ce-cli, 和containerd.io .
(2) 安裝debian 包

$  dpkg -i path/to/your/package

(3) 驗證docker

$   docker run hello-world

3.2 binary package.

https://docs.docker.com/engine/install/binaries/

註解一:docker 爲什麼要使用/dev/mqueue ?

Docker provides /dev/mqueue to containers because some applications require or take advantage of this features. Docker does not use this directly. You will see some people with the question like “why does my application run slower when inside a container than on my host?” There can be a number of reasons why but one thing with applications like apache2, it uses mqueue to help speed things up if available.
All the major distros have this enabled by default in their kernel configs and we have not heard of any downsides where you would require this to be disabled. If you know of a reason why then let us know.
Hope this helps and sorry for the gist, i wanted to explain in more than 140 chars.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章