Chef node based on Ubuntu 18.04. Root ssh login permitted, passwd 123456.
1.1K
FROM ubuntu
RUN apt -y update; apt clean all RUN apt -y install openssh-server openssh-client; apt clean all RUN mkdir /var/run/sshd RUN echo 'root:123456' | chpasswd RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config RUN echo "export key=df -h | grep mapper | awk '{print $1}' | awk -F - '{print $4}'" >> /root/.bashrc RUN echo '172.17.0.1 chef-server' >> /etc/hosts EXPOSE 22 ENTRYPOINT ["/usr/sbin/sshd", "-D"]
Content type
Image
Digest
Size
96.3 MB
Last updated
about 8 years ago
docker pull xpym/chef-node-ubuntu