docker arm install for jetson tx2
install soruce package:
1.apt-get install curl wget apt-transport-https ca-certificates
2.
# 备份原文件
cp /etc/apt/sources.list /etc/apt/sources.list.bak
3.
# 新建文件
sudo vim /etc/apt/sources.list
4.
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty-updates main multiverse restricted universe
5.
update CA:
# 下载证书 cacert.pem
# 网址: https://curl.haxx.se/docs/caextract.html
wget https://curl.haxx.se/ca/cacert.pem --no-check-certificate
# 导入证书
# 转换为crt格式
openssl x509 -outform der -in cacert.pem -out cacert.crt
# 复制到证书目录
sudo cp cacert.crt /usr/local/share/ca-certificates/cacert.crt
# 添加证书到系统
sudo update-ca-certificates
# 重启系统或重启特定服务使新证书生效
reboot
6.
test web:
curl https://www.docker.com/
7.
# 1 更新源
sudo apt-get update
# 2 添加系统https支持
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
# 3 添加Docker官方GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# 4 查看指纹与官方文档进行对比
apt-key fingerprint 0EBFCD88
# 5 添加Docker官方仓库(armhf)
## 实战中,按照官方文档命令添加源会将 sources.list 原有内容覆盖,建议手动添加防止出错。
## vi /etc/apt/sources.list
sudo vim /etc/apt/sources.list
## 末尾添加以下源
deb [arch=armhf] https://download.docker.com/linux/ubuntu trusty stable
# 6 更新index文件
apt-get update
# 7 安装Docker
sudo apt-get install docker-ce
8.
docker version
9:
sudo docker pull ubuntu
...