# 创建 ssh 和 supervisor 目录 RUN mkdir -p /var/run/sshd RUN mkdir -p /var/log/supervisor
# 设置 root ssh 远程登录密码为 password RUN echo"root:password" | chpasswd RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd