Difference between revisions of "Template:H3-Linux-Install-Docker/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===How to install and use docker===
+
===安装和测试 Docker===
====How to Install Docker====
+
====安装 Docker====
Run the following commands:<br />
+
执行下列命令:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2.4-1_arm64.deb
+
sudo apt-get update
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli_18.09.3~3-0~ubuntu-bionic_arm64.deb
+
sudo apt-get install docker.io
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
+
 
</syntaxhighlight>
 
</syntaxhighlight>
====Test Docker installation====
+
====测试 Docker====
Test that your installation works by running the simple docker image:
+
执行下列命令运行一个简单的docker image:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
git clone https://github.com/friendlyarm/debian-jessie-arm-docker
 
git clone https://github.com/friendlyarm/debian-jessie-arm-docker

Latest revision as of 09:14, 22 August 2019

1 安装和测试 Docker

1.1 安装 Docker

执行下列命令:

sudo apt-get update
sudo apt-get install docker.io

1.2 测试 Docker

执行下列命令运行一个简单的docker image:

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