Template:RK3399-Linux-Install-Docker/zh

From FriendlyELEC WiKi
Revision as of 07:32, 11 March 2019 by Tzs (Talk | contribs) (updated by API)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1 Docker的安装与使用

1.1 安装Docker

使用以下命令安装:

wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2.4-1_arm64.deb
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli_18.09.3~3-0~ubuntu-bionic_arm64.deb
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce_18.09.3~3-0~ubuntu-bionic_arm64.deb
sudo dpkg -i containerd.io_1.2.4-1_arm64.deb
sudo dpkg -i docker-ce-cli_18.09.3~3-0~ubuntu-bionic_arm64.deb
sudo dpkg -i docker-ce_18.09.3~3-0~ubuntu-bionic_arm64.deb

1.2 验证Docker的安装

用Docker创建并运行一个debian镜像:

git clone https://github.com/friendlyarm/debian-jessie-aarch64-docker
cd debian-jessie-aarch64-docker
./rebuild-image.sh
./run.sh