docker 移植的基本概念

本文的主要实践是将docker 移植到arm64 linux debian 上。通过总结,理论上你可以徒手将docker 移植到仍何一个嵌入式设备上。

1. docker 的基本概念

请参考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.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值