Public Repository

Last pushed: 2 years ago
Short Description
This is centos6.3-base images
Full Description

febootstrap -i bash -i wget -i yum -i iputils -i iproute -i man -i vim -i openssh-server -i openssh-clients -i tar -i gzip -i coreutils -i kernel-doc centos6 centos6.3-base-image http://vault.centos.org/6.3/os/x86_64/
Dockerfile:

#version 0.0.1
FROM centos6.3-base-v2:latest
MAINTAINER frank "XXXX@XXXX.cn"

RUN yum -y install passwd
RUN yum -y install sudo
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
RUN sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config
RUN mkdir -p /root/.ssh && chown root.root /root && chmod 700 /root/.ssh

#RUN useradd root
RUN echo "root:root" | chpasswd
RUN echo "root ALL=(ALL) ALL" >> /etc/sudoers

EXPOSE 22

CMD ip addr ls eth0 | awk '{print $2}' | egrep -o '([0-9]+.){3}[0-9]+';/usr/sbin/sshd -D

Docker Pull Command
Owner
frankzfz

Comments (0)