1
0
mirror of https://github.com/rancher/os.git synced 2025-09-20 01:54:53 +00:00
Files
os/images/02-console/Dockerfile
Darren Shepherd 6abdeb34d6 Merge pull request #1143 from joshwget/better-engine-switching
Make it easier to switch between Docker engines
2016-08-15 21:21:23 -07:00

13 lines
603 B
Docker

FROM rancher/os-base
COPY update-ssh-keys /usr/sbin/
COPY build/lsb-release /etc/
RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
sed -i 's/docker:!/docker:*/g' /etc/shadow && \
sed -i 's/#ClientAliveInterval 0/ClientAliveInterval 180/g' /etc/ssh/sshd_config && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo '## allow password less for docker user' >> /etc/sudoers && \
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
COPY prompt.sh /etc/profile.d/
CMD ["/usr/sbin/console.sh"]