mirror of
https://github.com/rancher/os.git
synced 2025-09-07 17:54:57 +00:00
add docker to sudoers (same as ubuntuconsole)
This commit is contained in:
@@ -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"]
|
||||||
|
Reference in New Issue
Block a user