[fix:3.11]修改README描述

This commit is contained in:
2020-05-09 17:38:36 +08:00
parent bf2be4c073
commit a9fc106f24
+13 -7
View File
@@ -4,9 +4,15 @@
## 基本信息
**版本信息:**
* 镜像地址:endial/alpine:3.11
- 3.11、latest
**镜像信息:**
* 镜像地址:colovu/alpine:latest
* 依赖镜像:alpine:3.11
@@ -38,7 +44,7 @@
下载镜像:
```shell
docker pull endial/alpine:3.11
docker pull colovu/alpine:latest
```
查看镜像:
@@ -54,12 +60,12 @@ docker images
启动命令:
```
docker run -d --name test -d endial/alpine:3.11 tail /dev/stderr
docker run -d --name test -d colovu/alpine:latest tail /dev/stderr
```
- `--name test`:命名容器为`test`
- `-d`:以后台进程方式启动容器
- `endial/alpine:3.11`:包含版本信息的镜像名称
- `endial/alpine:latest:包含TAG信息的镜像名称
- `tail /dev/stderr`:在容器中执行`tail /dev/stderr`命令,以防止容器直接退出
@@ -77,12 +83,12 @@ docker exec -it test /bin/sh
启动命令:
```
docker run --rm -it endial/alpine:3.11 /bin/sh
docker run --rm -it colovu/alpine:latest /bin/sh
```
- `-it`:使用交互式终端启动容器
- `--rm`:退出时删除容器
- `endial/alpine:3.11`:包含版本信息的镜像名称
- `endial/alpine:latest`:包含版本信息的镜像名称
- `/bin/sh`:在容器中执行`/bin/sh`命令
以该方式启动后,直接进入容器的命令行操作界面。如果需要退出,直接使用命令`exit`退出。