1
0
mirror of https://github.com/rancher/os.git synced 2025-09-07 09:42:21 +00:00

add docker to sudoers (same as ubuntuconsole)

This commit is contained in:
Ivan Mikushin
2015-04-29 17:04:12 +05:00
parent c59e720da5
commit d20d708bf0

View File

@@ -12,6 +12,7 @@ RUN addgroup --gid 1100 rancher && \
addgroup --gid 1101 docker && \ addgroup --gid 1101 docker && \
useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \ useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \
echo '## allow password less for rancher user' >> /etc/sudoers && \ echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
ENTRYPOINT ["/usr/sbin/entry.sh"] ENTRYPOINT ["/usr/sbin/entry.sh"]
CMD ["/usr/sbin/console.sh"] CMD ["/usr/sbin/console.sh"]