From 167ca32197fedd267667409574b40bb5d4e3d53d Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Fri, 9 Feb 2018 16:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=9C=8D=E5=8A=A1=E6=96=B9=E5=BC=8F=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e578b61..12fed67 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ + ## 基本信息 * 镜像地址:endial/base-alpine:v3.6 @@ -18,9 +19,10 @@ + ## 数据卷 -该容器没有定义默认的数据卷。 +该容器没有定义默认的数据卷。该容器仅用作创建其他业务容器的基础容器。 @@ -31,22 +33,28 @@ 启动命令 ``` -docker run --rm --name alpine -d -it endial/base-alpine:v3.6 /bin/sh +docker run --rm --name test -d endial/base-alpine:v3.6 tail /dev/stderr ``` + + 以该方式启动后,如果想进入容器,可以使用以下命令: ``` -docker exec -it alpine /bin/sh +docker exec -it test /bin/sh ``` + + ### 命令行方式启动 启动命令 ``` -docker run --rm --name alpine -it endial/base-alpine:v3.6 /bin/sh +docker run --rm --name test -it endial/base-alpine:v3.6 /bin/sh ``` + + 以该方式启动后,直接进入容器的命令行操作界面。如果需要退出,直接使用命令`exit`退出。