Difference between revisions of "Template:RK3399-Linux-Install-Docker/zh"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 3: | Line 3: | ||
使用以下命令安装:<br /> | 使用以下命令安装:<br /> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2. | + | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2.6-3_arm64.deb |
− | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce- | + | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb |
− | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker- | + | wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb |
− | sudo dpkg -i containerd.io_1.2. | + | sudo dpkg -i containerd.io_1.2.6-3_arm64.deb |
− | sudo dpkg -i docker-ce- | + | sudo dpkg -i docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb |
− | sudo dpkg -i docker- | + | sudo dpkg -i docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb |
</syntaxhighlight> | </syntaxhighlight> | ||
====验证Docker的安装==== | ====验证Docker的安装==== |
Latest revision as of 09:34, 17 September 2019
1 Docker的安装与使用
1.1 安装Docker
使用以下命令安装:
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2.6-3_arm64.deb wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb sudo dpkg -i containerd.io_1.2.6-3_arm64.deb sudo dpkg -i docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb sudo dpkg -i docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb
1.2 验证Docker的安装
用Docker创建并运行一个debian镜像:
git clone https://github.com/friendlyarm/debian-jessie-arm-docker cd debian-jessie-arm-docker ./rebuild-image.sh ./run.sh