Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM centos:6
- RUN echo 'LANG="ja_JP.UTF-8"' >/etc/sysconfig/i18n
- RUN echo 'ZONE="Asia/Tokyo"' >/etc/sysconfig/clock
- RUN ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
- RUN echo -n 'root:root' | chpasswd
- RUN echo 'include_only=.jp' >>/etc/yum/pluginconf.d/fastestmirror.conf
- RUN yum -y update && yum clean all
- RUN yum -y reinstall glibc-common && yum clean all
- RUN yum -y install openssh-server openssh-clients && yum clean all
- RUN sed -ri 's/^#AddressFamily any/AddressFamily inet/' /etc/ssh/sshd_config
- RUN sed -ri 's/^#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
- RUN sed -ri 's/^GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
- RUN service sshd start; service sshd stop; chkconfig sshd on
- EXPOSE 22
- CMD ["/sbin/init"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement