Files
cdc_dockerfile/ldb_docker_extend.Dockerfile
2024-06-12 16:53:36 +08:00

10 lines
366 B
Docker

FROM hotwa/bbt:latest
# 确保 SSH 服务可以启动
RUN echo 'root:root' | chpasswd && \
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
# 启动 ssh 服务
CMD ["/bin/bash", "-c", "service ssh start; tail -f /dev/null"]