mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
Add blank lines before lists per CommonMark
This commit is contained in:
@@ -36,6 +36,7 @@ COPY index.html /usr/share/nginx/html/index.html
|
||||
```bash
|
||||
$ docker build -t my-hello-world .
|
||||
```
|
||||
|
||||
* `docker build`:构建命令
|
||||
* `-t my-hello-world`:给镜像起个名字 (标签)
|
||||
* `.`:指定上下文路径为当前目录
|
||||
@@ -47,6 +48,7 @@ $ docker build -t my-hello-world .
|
||||
```bash
|
||||
$ docker run -d -p 8080:80 my-hello-world
|
||||
```
|
||||
|
||||
* `docker run`:运行命令
|
||||
* `-d`:后台运行
|
||||
* `-p 8080:80`:将宿主机的 8080 端口映射到容器的 80 端口
|
||||
|
||||
@@ -93,6 +93,7 @@ flowchart LR
|
||||
runC --> OCI["OCI<br/>标准化"]
|
||||
end
|
||||
```
|
||||
|
||||
- **LXC** (2013):Docker 最初基于 Linux Containers
|
||||
- **libcontainer** (2014,Docker 0.9):Docker 自研的容器运行时
|
||||
- **runC** (2015,Docker 1.11 整合):捐献给 OCI 的标准容器运行时
|
||||
|
||||
Reference in New Issue
Block a user