Skip to content

Commit 8dfdbc5

Browse files
committed
remove docker search
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
1 parent 5caddf4 commit 8dfdbc5

File tree

3 files changed

+2
-74
lines changed

3 files changed

+2
-74
lines changed

cases/os/busybox.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,7 @@
1010

1111
## 获取官方镜像
1212

13-
`Docker Hub` 中搜索 `busybox` 相关的镜像。
14-
15-
```bash
16-
$ docker search busybox
17-
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
18-
busybox Busybox base image. 755 [OK]
19-
progrium/busybox 63 [OK]
20-
radial/busyboxplus Full-chain, Internet enabled, busybox made... 11 [OK]
21-
odise/busybox-python 3 [OK]
22-
multiarch/busybox multiarch ports of ubuntu-debootstrap 2 [OK]
23-
azukiapp/busybox This image is meant to be used as the base... 2 [OK]
24-
...
25-
```
26-
27-
读者可以看到最受欢迎的镜像同时带有 `OFFICIAL` 标记,说明它是官方镜像。用户使用 `docker pull` 指令下载 `busybox:latest` 镜像:
13+
可以使用 `docker pull` 指令下载 `busybox:latest` 镜像:
2814

2915
```bash
3016
$ docker pull busybox:latest

cases/os/centos.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ CentOS(Community Enterprise Operating System,中文意思是:社区企业
1010

1111
### 使用 CentOS 官方镜像
1212

13-
首先使用 `docker search` 命令来搜索标星至少为 `25``CentOS` 相关镜像。
14-
15-
```bash
16-
$ docker search -f stars=25 centos
17-
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
18-
centos The official... 2543 [OK]
19-
jdeathe/centos-ssh 27 [OK]
20-
```
21-
2213
使用 `docker run` 直接运行最新的 `CentOS` 镜像,并登录 `bash`
2314

2415
```bash
@@ -40,17 +31,6 @@ CentOS Linux release 7.2.1511 (Core)
4031

4132
### 使用 Fedora 官方镜像
4233

43-
首先使用 `docker search` 命令来搜索标星至少为 `2``Fedora` 相关镜像,结果如下。
44-
45-
```bash
46-
$ docker search -f stars=2 fedora
47-
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
48-
fedora Official Docker builds of Fedora 433 [OK]
49-
dockingbay/fedora-rust Trusted build of Rust programming language... 3 [OK]
50-
gluster/gluster-fedora Official GlusterFS image [ Fedora 21 + Glu... 3 [OK]
51-
startx/fedora Simple container used for all startx based... 2 [OK]
52-
```
53-
5434
使用 `docker run` 命令直接运行 `Fedora` 官方镜像,并登录 `bash`
5535

5636
```bash

cases/os/debian.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,7 @@
1414

1515
### 使用 Debian 官方镜像
1616

17-
读者可以使用 `docker search` 查找 `Debian` 镜像:
18-
19-
```bash
20-
$ docker search debian
21-
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
22-
debian Debian is... 1565 [OK]
23-
neurodebian NeuroDebian... 26 [OK]
24-
armbuild/debian port of debian 8 [OK]
25-
...
26-
```
27-
28-
官方提供了大家熟知的 `debian` 镜像以及面向科研领域的 `neurodebian` 镜像。
29-
30-
可以使用 `docker run` 直接运行 `Debian` 镜像。
17+
官方提供了大家熟知的 `debian` 镜像以及面向科研领域的 `neurodebian` 镜像。可以使用 `docker run` 直接运行 `Debian` 镜像。
3118

3219
```bash
3320
$ docker run -it debian bash
@@ -45,31 +32,6 @@ Debian GNU/Linux 8
4532

4633
### 使用 Ubuntu 官方镜像
4734

48-
`Ubuntu` 相关的镜像有很多,这里使用 `--filter=stars=10` 参数,只搜索那些被收藏 `10` 次以上的镜像。
49-
50-
```bash
51-
$ docker search --filter=stars=10 ubuntu
52-
53-
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
54-
ubuntu Ubuntu is a Debian-based Linux operating sys… 10539 [OK]
55-
dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 395 [OK]
56-
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 243 [OK]
57-
consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 210 [OK]
58-
ubuntu-upstart Upstart is an event-based replacement for th… 105 [OK]
59-
ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 98 [OK]
60-
neurodebian NeuroDebian provides neuroscience research s… 64 [OK]
61-
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK]
62-
ubuntu-debootstrap debootstrap --variant=minbase --components=m… 42 [OK]
63-
nuagebec/ubuntu Simple always updated Ubuntu docker images w… 24 [OK]
64-
i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 19
65-
1and1internet/ubuntu-16-apache-php-5.6 ubuntu-16-apache-php-5.6 14 [OK]
66-
1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 13 [OK]
67-
eclipse/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 12 [OK]
68-
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 11 [OK]
69-
```
70-
71-
根据搜索出来的结果,读者可以自行选择下载镜像并使用。
72-
7335
下面以 `ubuntu:18.04` 为例,演示如何使用该镜像安装一些常用软件。
7436

7537
首先使用 `-ti` 参数启动容器,登录 `bash`,查看 `ubuntu` 的发行版本号。

0 commit comments

Comments
 (0)