From d20d708bf096baf9dc30ebee8124dd88907b262e Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Wed, 29 Apr 2015 17:04:12 +0500 Subject: [PATCH] add docker to sudoers (same as ubuntuconsole) --- scripts/extraimages/01-debianconsole | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/extraimages/01-debianconsole b/scripts/extraimages/01-debianconsole index efef750d..3cc61063 100644 --- a/scripts/extraimages/01-debianconsole +++ b/scripts/extraimages/01-debianconsole @@ -12,6 +12,7 @@ RUN addgroup --gid 1100 rancher && \ addgroup --gid 1101 docker && \ useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \ 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"] CMD ["/usr/sbin/console.sh"]