Public Repository

Last pushed: 5 months ago
Short Description
CentOS with additional features: ssh, nano, wget, git, lspci
Full Description

FROM centos:7
MAINTAINER IO Vietnam JSC (info@iovietnam.com)>

RUN yum update -y
RUN yum install -y autoconf automake gcc gcc-c++ git libtool make nasm zlib-devel openssl-devel tar cmake perl which bzip2 wget nano zip unzip telnet
RUN yum install -y initscripts openssh openssh-server openssh-clients sudo passwd sed screen tmux byobu which vim-enhanced crontabs lsof

Install SSHd

RUN sshd-keygen
RUN sed -i "s/#UsePrivilegeSeparation./UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && sed -i "s/UsePAM./UsePAM no/g" /etc/ssh/sshd_config

#RUN useradd admin -G wheel -s /bin/bash -m

#RUN useradd root -G wheel -s /bin/bash -m
RUN echo 'root:root' | chpasswd
RUN echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers

Initialize

WORKDIR /
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

Docker Pull Command
Owner
iovietnam

Comments (0)