Public Repository

Last pushed: 6 months ago
Short Description
基于docker官方centos,集成了ssh和jdk1.8。
Full Description

Dockerfile

FROM docker.io/centos:latest

 LABEL author=anowls e-mail=fpky-0729@126.com

 # 系统设置
 RUN echo "root:keduox" | chpasswd
 RUN groupadd hadoop
 RUN useradd -groot -Ghadoop hadoop
 RUN echo "hadoop:hadoop" | chpasswd

 # 安装ssh
 RUN yum install -y openssh-server openssh-clients which
 RUN ssh-keygen -t rsa -P '' -f  /etc/ssh/ssh_host_rsa_key
 RUN ssh-keygen -t ecdsa -P '' -f  /etc/ssh/ssh_host_ecdsa_key
 RUN ssh-keygen -t ed25519 -P '' -f  /etc/ssh/ssh_host_ed25519_key

 # 配置jdk(jdk1.8.0_131)
 COPY jdk /opt/jdk
 ENV JAVA_HOME=/opt/jdk
 ENV PATH=$PATH:$JAVA_HOME/bin

 EXPOSE 22

 CMD ["/usr/sbin/sshd", "-D"]
Docker Pull Command
Owner
anowls