Public Repository

Last pushed: 7 months ago
Short Description
The image is for creating the chef-node containers. SSHD service base os centos6.
Full Description

#Dockerfile:

#Docker file for creating chef-nodes.

#All rights reserved linuxgeeks.in
FROM centos:6.7
MAINTAINER Yogesh Gavhane yogeshgavhane596@gmail.com

RUN yum -y update; yum clean all
RUN yum -y install openssh-server openssh-clients; yum clean all
RUN mkdir /var/run/sshd
RUN echo 'root:123456' | chpasswd
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN echo "export key=df -h | grep mapper | awk '{print $1}' | awk -F - '{print $4}'" >> /root/.bashrc
EXPOSE 22
ENTRYPOINT ["/usr/sbin/sshd", "-D"]

Docker Pull Command
Owner
ygavhane