From da93a3b8190abd7d4c70aa0d6d055e2400d2ae04 Mon Sep 17 00:00:00 2001 From: xianhu Date: Wed, 30 May 2018 13:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3docker=E5=9C=A8centos7?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=9C=8D=E5=8A=A1=E5=90=AF=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docker/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 698a18a..4a9efd0 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -1,5 +1,7 @@ # Dockerfile by xianhu: build a docker image -# usage: docker build -t user/centos:v16 . +# usage: docker build -t user/centos . +# usage: docker run -d --privileged user/centos +# usage: docker exec -it containerid /bin/bash FROM centos:7 MAINTAINER xianhu @@ -52,4 +54,5 @@ RUN pip3.6 install -r requirements.txt RUN rm -rf /root/* # cmd command -CMD /bin/bash +# CMD /bin/bash +ENTRYPOINT /usr/sbin/init