File tree 6 files changed +12
-11
lines changed
6 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ module.exports = config({
83
83
nav : [
84
84
{
85
85
text : '微信交流群' ,
86
- link : 'https://yewm28.coding-pages.com/ wechat.jpg' ,
86
+ link : 'https://docker_practice.gitee.io/pic/dpsig- wechat.jpg' ,
87
87
} ,
88
88
{
89
89
text : '小程序' ,
90
- link : 'https://yewm28.coding-pages.com/49682252-3ac4c500-faec-11e8-86ab-eafe0139be6b .jpg' ,
90
+ link : 'https://docker_practice.gitee.io/pic/dp-wechat-miniprogram .jpg' ,
91
91
} ,
92
92
{
93
93
text : '安装 Docker' ,
@@ -261,7 +261,7 @@ module.exports = config({
261
261
} ,
262
262
{
263
263
title : 'Dockerfile' ,
264
- collapsable : false ,
264
+ collapsable : true ,
265
265
children : [
266
266
"image/dockerfile/" ,
267
267
'image/dockerfile/copy' ,
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ Docker 自身仍在快速发展中,生态环境也在蓬勃成长。建议初
25
25
## 微信小程序
26
26
27
27
<p align =" center " >
28
- <img width =" 200 " src =" https://yewm28.coding-pages.com/49682252-3ac4c500-faec-11e8-86ab-eafe0139be6b .jpg " >
28
+ <img width =" 200 " src =" https://docker_practice.gitee.io/pic/dp-wechat-miniprogram .jpg " >
29
29
</p >
30
30
31
31
<p align =" center " ><strong >微信扫码 随时随地阅读~</strong ></p >
32
32
33
33
## 技术交流
34
34
35
35
<p align =" center " >
36
- <img width =" 200 " src =" https://yewm28.coding-pages.com/ wechat.jpg " >
36
+ <img width =" 200 " src =" https://docker_practice.gitee.io/pic/dpsig- wechat.jpg " >
37
37
</p >
38
38
39
39
<p align =" center " ><strong >微信扫码 加入群聊~ 或者微信添加 <code >dpsigs</code > 邀请入群</strong ></p >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ $ docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d ngin
16
16
17
17
用户也可以不使用这种映射方式,通过利用 Dockerfile 来直接将静态页面内容放到镜像中,内容为
18
18
19
- ``` bash
19
+ ``` docker
20
20
FROM nginx
21
21
COPY static-html-directory /usr/share/nginx/html
22
22
```
@@ -39,7 +39,8 @@ Nginx的默认配置文件路径为 `/etc/nginx/nginx.conf`,可以通过映射
39
39
``` bash
40
40
$ docker run -d \
41
41
--name some-nginx \
42
- -v /some/nginx.conf:/etc/nginx/nginx.conf:ro \
42
+ -p 8080:80 \
43
+ -v /path/nginx.conf:/etc/nginx/nginx.conf:ro \
43
44
nginx
44
45
```
45
46
Original file line number Diff line number Diff line change 10
10
11
11
在项目中创建一个 Dockerfile。
12
12
13
- ``` bash
13
+ ``` docker
14
14
FROM node:12
15
15
# replace this with your application's default port
16
16
EXPOSE 8888
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr
37
37
38
38
当利用 ` docker run ` 来创建容器时,Docker 在后台运行的标准操作包括:
39
39
40
- * 检查本地是否存在指定的镜像,不存在就从 [ ` registry ` ] ( ../repository/README.md ) 下载
40
+ * 检查本地是否存在指定的镜像,不存在就从 [ registry] ( ../repository/README.md ) 下载
41
41
* 利用镜像创建并启动一个容器
42
42
* 分配一个文件系统,并在只读的镜像层外面挂载一层可读写层
43
43
* 从宿主主机配置的网桥接口中桥接一个虚拟接口到容器中去
@@ -47,7 +47,7 @@ bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr
47
47
48
48
## 启动已终止容器
49
49
50
- 可以利用 ` docker container start ` 命令,直接将一个已经终止的容器启动运行 。
50
+ 可以利用 ` docker container start ` 命令,直接将一个已经终止( ` exited ` )的容器启动运行 。
51
51
52
52
容器的核心为所执行的应用程序,所需要的资源都是应用程序运行所必需的。除此之外,并没有其它的资源。可以在伪终端中利用 ` ps ` 或 ` top ` 来查看进程信息。
53
53
Original file line number Diff line number Diff line change 4
4
5
5
** Docker** 自开源后受到广泛的关注和讨论,至今其 [ GitHub 项目] ( https://github.com/moby/moby ) 已经超过 5 万 7 千个星标和一万多个 ` fork ` 。甚至由于 ` Docker ` 项目的火爆,在 ` 2013 ` 年底,[ dotCloud 公司决定改名为 Docker] ( https://www.docker.com/blog/dotcloud-is-becoming-docker-inc/ ) 。` Docker ` 最初是在 ` Ubuntu 12.04 ` 上开发实现的;` Red Hat ` 则从 ` RHEL 6.5 ` 开始对 ` Docker ` 进行支持;` Google ` 也在其 ` PaaS ` 产品中广泛应用 ` Docker ` 。
6
6
7
- ** Docker** 使用 ` Google ` 公司推出的 [ Go 语言] ( https://golang.org / ) 进行开发实现,基于 ` Linux ` 内核的 [ cgroup] ( https://zh.wikipedia.org/wiki/Cgroups ) ,[ namespace] ( https://en.wikipedia.org/wiki/Linux_namespaces ) ,以及 [ OverlayFS] ( https://docs.docker.com/storage/storagedriver/overlayfs-driver/ ) 类的 [ Union FS] ( https://en.wikipedia.org/wiki/Union_mount ) 等技术,对进程进行封装隔离,属于 [ 操作系统层面的虚拟化技术] ( https://en.wikipedia.org/wiki/Operating-system-level_virtualization ) 。由于隔离的进程独立于宿主和其它的隔离的进程,因此也称其为容器。最初实现是基于 [ LXC] ( https://linuxcontainers.org/lxc/introduction/ ) ,从 ` 0.7 ` 版本以后开始去除 ` LXC ` ,转而使用自行开发的 [ libcontainer] ( https://github.com/docker/libcontainer ) ,从 ` 1.11 ` 版本开始,则进一步演进为使用 [ runC] ( https://github.com/opencontainers/runc ) 和 [ containerd] ( https://github.com/containerd/containerd ) 。
7
+ ** Docker** 使用 ` Google ` 公司推出的 [ Go 语言] ( https://golang.google.cn / ) 进行开发实现,基于 ` Linux ` 内核的 [ cgroup] ( https://zh.wikipedia.org/wiki/Cgroups ) ,[ namespace] ( https://en.wikipedia.org/wiki/Linux_namespaces ) ,以及 [ OverlayFS] ( https://docs.docker.com/storage/storagedriver/overlayfs-driver/ ) 类的 [ Union FS] ( https://en.wikipedia.org/wiki/Union_mount ) 等技术,对进程进行封装隔离,属于 [ 操作系统层面的虚拟化技术] ( https://en.wikipedia.org/wiki/Operating-system-level_virtualization ) 。由于隔离的进程独立于宿主和其它的隔离的进程,因此也称其为容器。最初实现是基于 [ LXC] ( https://linuxcontainers.org/lxc/introduction/ ) ,从 ` 0.7 ` 版本以后开始去除 ` LXC ` ,转而使用自行开发的 [ libcontainer] ( https://github.com/docker/libcontainer ) ,从 ` 1.11 ` 版本开始,则进一步演进为使用 [ runC] ( https://github.com/opencontainers/runc ) 和 [ containerd] ( https://github.com/containerd/containerd ) 。
8
8
9
9
![ Docker 架构] ( https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/media/docker-on-linux.png )
10
10
You can’t perform that action at this time.
0 commit comments