Browse Source

需求:调整镜像运行的用户名

lijie 2 years ago
parent
commit
2e471eed86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docker/dockerfiles/dmp-rwd/Dockerfile

+ 1 - 1
docker/dockerfiles/dmp-rwd/Dockerfile

@@ -20,7 +20,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezon
 RUN yum install -y unzip zip wget telnet tzdata
 RUN mkdir -p $WORKER_HOME/config
 RUN groupadd docker
-RUN useradd -d $WORKER_HOME -g docker -m docker
+RUN useradd -d $WORKER_HOME -g docker -m -s /bin/bash docker
 #设置工作目录
 WORKDIR $WORKER_HOME
 #复制文件到容器内