14
14
15
15
### 使用 Debian 官方镜像
16
16
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 ` 镜像。
31
18
32
19
``` bash
33
20
$ docker run -it debian bash
@@ -45,31 +32,6 @@ Debian GNU/Linux 8
45
32
46
33
### 使用 Ubuntu 官方镜像
47
34
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
-
73
35
下面以 ` ubuntu:18.04 ` 为例,演示如何使用该镜像安装一些常用软件。
74
36
75
37
首先使用 ` -ti ` 参数启动容器,登录 ` bash ` ,查看 ` ubuntu ` 的发行版本号。
0 commit comments