Difference between revisions of "APITestPage"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 1: | Line 1: | ||
− | === | + | ===Docker的安装与使用=== |
− | + | ====安装Docker==== | |
− | + | 使用以下命令安装:<br /> | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | 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 | |
− | + | </syntaxhighlight> | |
− | + | ====验证Docker==== | |
− | + | * 用Docker创建一个debian环境 | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | git clone https://github.com/friendlyarm/debian-jessie-aarch64-docker | |
− | === | + | cd debian-jessie-aarch64-docker |
− | + | ./rebuild-image.sh | |
− | + | </syntaxhighlight> | |
− | + | * 运行Docker镜像: | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | # ./run.sh | |
− | + | </syntaxhighlight> | |
− | + | * 查看容器中的debian版本: | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | apt-get install lsb-release | |
− | + | lsb_release -a | |
− | + | </syntaxhighlight> | |
− | 2 | + | 显示如下:<br /> |
− | + | No LSB modules are available.<br /> | |
− | + | Distributor ID: Debian<br /> | |
− | + | Description: Debian GNU/Linux 8.8 (jessie)<br /> | |
− | + | Release: 8.8<br /> | |
− | + | Codename: jessie<br /> | |
− | + | <br /> | |
− | + | ||
− | + | ||
− | + | ||
− | 2 | + | |
− | 3 | + | |
− | + | ||
− | + | ||
− | + | ||
− | === | + | |
− | * | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | 8 | + | |
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 07:24, 11 March 2019
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
- 运行Docker镜像:
# ./run.sh
- 查看容器中的debian版本:
apt-get install lsb-release lsb_release -a
显示如下:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie