From 8dfdbc5b076067c5c6be591cf1cb0cee34a4eaab Mon Sep 17 00:00:00 2001 From: Kang Huaishuai Date: Fri, 16 Jul 2021 12:33:01 +0800 Subject: [PATCH] remove docker search Signed-off-by: Kang Huaishuai --- cases/os/busybox.md | 16 +--------------- cases/os/centos.md | 20 -------------------- cases/os/debian.md | 40 +--------------------------------------- 3 files changed, 2 insertions(+), 74 deletions(-) diff --git a/cases/os/busybox.md b/cases/os/busybox.md index ddf5922..a2a81ea 100644 --- a/cases/os/busybox.md +++ b/cases/os/busybox.md @@ -10,21 +10,7 @@ ## 获取官方镜像 -在 `Docker Hub` 中搜索 `busybox` 相关的镜像。 - -```bash -$ docker search busybox -NAME DESCRIPTION STARS OFFICIAL AUTOMATED -busybox Busybox base image. 755 [OK] -progrium/busybox 63 [OK] -radial/busyboxplus Full-chain, Internet enabled, busybox made... 11 [OK] -odise/busybox-python 3 [OK] -multiarch/busybox multiarch ports of ubuntu-debootstrap 2 [OK] -azukiapp/busybox This image is meant to be used as the base... 2 [OK] -... -``` - -读者可以看到最受欢迎的镜像同时带有 `OFFICIAL` 标记,说明它是官方镜像。用户使用 `docker pull` 指令下载 `busybox:latest` 镜像: +可以使用 `docker pull` 指令下载 `busybox:latest` 镜像: ```bash $ docker pull busybox:latest diff --git a/cases/os/centos.md b/cases/os/centos.md index bc32c99..f2107f0 100644 --- a/cases/os/centos.md +++ b/cases/os/centos.md @@ -10,15 +10,6 @@ CentOS(Community Enterprise Operating System,中文意思是:社区企业 ### 使用 CentOS 官方镜像 -首先使用 `docker search` 命令来搜索标星至少为 `25` 的 `CentOS` 相关镜像。 - -```bash -$ docker search -f stars=25 centos -NAME DESCRIPTION STARS OFFICIAL AUTOMATED -centos The official... 2543 [OK] -jdeathe/centos-ssh 27 [OK] -``` - 使用 `docker run` 直接运行最新的 `CentOS` 镜像,并登录 `bash`。 ```bash @@ -40,17 +31,6 @@ CentOS Linux release 7.2.1511 (Core) ### 使用 Fedora 官方镜像 -首先使用 `docker search` 命令来搜索标星至少为 `2` 的 `Fedora` 相关镜像,结果如下。 - -```bash -$ docker search -f stars=2 fedora -NAME DESCRIPTION STARS OFFICIAL AUTOMATED -fedora Official Docker builds of Fedora 433 [OK] -dockingbay/fedora-rust Trusted build of Rust programming language... 3 [OK] -gluster/gluster-fedora Official GlusterFS image [ Fedora 21 + Glu... 3 [OK] -startx/fedora Simple container used for all startx based... 2 [OK] -``` - 使用 `docker run` 命令直接运行 `Fedora` 官方镜像,并登录 `bash`。 ```bash diff --git a/cases/os/debian.md b/cases/os/debian.md index df640c1..e9da8eb 100644 --- a/cases/os/debian.md +++ b/cases/os/debian.md @@ -14,20 +14,7 @@ ### 使用 Debian 官方镜像 -读者可以使用 `docker search` 查找 `Debian` 镜像: - -```bash -$ docker search debian -NAME DESCRIPTION STARS OFFICIAL AUTOMATED -debian Debian is... 1565 [OK] -neurodebian NeuroDebian... 26 [OK] -armbuild/debian port of debian 8 [OK] -... -``` - -官方提供了大家熟知的 `debian` 镜像以及面向科研领域的 `neurodebian` 镜像。 - -可以使用 `docker run` 直接运行 `Debian` 镜像。 +官方提供了大家熟知的 `debian` 镜像以及面向科研领域的 `neurodebian` 镜像。可以使用 `docker run` 直接运行 `Debian` 镜像。 ```bash $ docker run -it debian bash @@ -45,31 +32,6 @@ Debian GNU/Linux 8 ### 使用 Ubuntu 官方镜像 -`Ubuntu` 相关的镜像有很多,这里使用 `--filter=stars=10` 参数,只搜索那些被收藏 `10` 次以上的镜像。 - -```bash -$ docker search --filter=stars=10 ubuntu - -NAME DESCRIPTION STARS OFFICIAL AUTOMATED -ubuntu Ubuntu is a Debian-based Linux operating sys… 10539 [OK] -dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 395 [OK] -rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 243 [OK] -consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 210 [OK] -ubuntu-upstart Upstart is an event-based replacement for th… 105 [OK] -ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 98 [OK] -neurodebian NeuroDebian provides neuroscience research s… 64 [OK] -1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK] -ubuntu-debootstrap debootstrap --variant=minbase --components=m… 42 [OK] -nuagebec/ubuntu Simple always updated Ubuntu docker images w… 24 [OK] -i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 19 -1and1internet/ubuntu-16-apache-php-5.6 ubuntu-16-apache-php-5.6 14 [OK] -1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 13 [OK] -eclipse/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 12 [OK] -1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 11 [OK] -``` - -根据搜索出来的结果,读者可以自行选择下载镜像并使用。 - 下面以 `ubuntu:18.04` 为例,演示如何使用该镜像安装一些常用软件。 首先使用 `-ti` 参数启动容器,登录 `bash`,查看 `ubuntu` 的发行版本号。