1
0
mirror of https://github.com/rancher/os.git synced 2025-08-15 21:43:42 +00:00
os/scripts/dockerimages/06-console
2015-02-22 20:59:44 -07:00

7 lines
311 B
Plaintext

FROM base
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
RUN sed -i 's/rancher.*/rancher:rixbL64o6zGmY:16486:0:99999:7:::/g' /etc/shadow && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
CMD ["/usr/sbin/console.sh"]