File tree Expand file tree Collapse file tree 6 files changed +12
-11
lines changed
Expand file tree Collapse file tree 6 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ module.exports = config({
8383 nav : [
8484 {
8585 text : '微信交流群' ,
86- link : 'https://yewm28.coding-pages.com/ wechat.jpg' ,
86+ link : 'https://docker_practice.gitee.io/pic/dpsig- wechat.jpg' ,
8787 } ,
8888 {
8989 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' ,
9191 } ,
9292 {
9393 text : '安装 Docker' ,
@@ -261,7 +261,7 @@ module.exports = config({
261261 } ,
262262 {
263263 title : 'Dockerfile' ,
264- collapsable : false ,
264+ collapsable : true ,
265265 children : [
266266 "image/dockerfile/" ,
267267 'image/dockerfile/copy' ,
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ Docker 自身仍在快速发展中,生态环境也在蓬勃成长。建议初
2525## 微信小程序
2626
2727<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 " >
2929</p >
3030
3131<p align =" center " ><strong >微信扫码 随时随地阅读~</strong ></p >
3232
3333## 技术交流
3434
3535<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 " >
3737</p >
3838
3939<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
1616
1717用户也可以不使用这种映射方式,通过利用 Dockerfile 来直接将静态页面内容放到镜像中,内容为
1818
19- ``` bash
19+ ``` docker
2020FROM nginx
2121COPY static-html-directory /usr/share/nginx/html
2222```
@@ -39,7 +39,8 @@ Nginx的默认配置文件路径为 `/etc/nginx/nginx.conf`,可以通过映射
3939``` bash
4040$ docker run -d \
4141 --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 \
4344 nginx
4445```
4546
Original file line number Diff line number Diff line change 1010
1111在项目中创建一个 Dockerfile。
1212
13- ``` bash
13+ ``` docker
1414FROM node:12
1515# replace this with your application's default port
1616EXPOSE 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
3737
3838当利用 ` docker run ` 来创建容器时,Docker 在后台运行的标准操作包括:
3939
40- * 检查本地是否存在指定的镜像,不存在就从 [ ` registry ` ] ( ../repository/README.md ) 下载
40+ * 检查本地是否存在指定的镜像,不存在就从 [ registry] ( ../repository/README.md ) 下载
4141* 利用镜像创建并启动一个容器
4242* 分配一个文件系统,并在只读的镜像层外面挂载一层可读写层
4343* 从宿主主机配置的网桥接口中桥接一个虚拟接口到容器中去
@@ -47,7 +47,7 @@ bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr
4747
4848## 启动已终止容器
4949
50- 可以利用 ` docker container start ` 命令,直接将一个已经终止的容器启动运行 。
50+ 可以利用 ` docker container start ` 命令,直接将一个已经终止( ` exited ` )的容器启动运行 。
5151
5252容器的核心为所执行的应用程序,所需要的资源都是应用程序运行所必需的。除此之外,并没有其它的资源。可以在伪终端中利用 ` ps ` 或 ` top ` 来查看进程信息。
5353
Original file line number Diff line number Diff line change 44
55** 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 ` 。
66
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 ) 。
88
99![ Docker 架构] ( https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/media/docker-on-linux.png )
1010
You can’t perform that action at this time.
0 commit comments