mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-15 02:42:22 +00:00
remove docker search
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
This commit is contained in:
@@ -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` 的发行版本号。
|
||||
|
Reference in New Issue
Block a user