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