File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ RUN adduser -s /bin/bash -D docker && \
27
27
echo 'docker:docker' | chpasswd
28
28
29
29
# Add sudo permission.
30
- RUN echo 'docker ALL=(ALL) ALL' >> /etc/sudoers
30
+ RUN echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
31
31
32
32
# Setting ssh public key.
33
33
RUN wget https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/files/ssh/id_rsa.pub \
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ RUN echo 'root:root' | chpasswd
16
16
# RUN sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
17
17
18
18
# Generate the ssh host keys.
19
- RUN ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
19
+ RUN ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
20
20
21
21
# SSH login fix. Otherwise user is kicked off after login
22
22
RUN sed 's@session\s *required\s *pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ RUN mkdir /etc/ansible && \
22
22
/bin/echo -e "[local]\n localhost ansible_connection=local" > /etc/ansible/hosts
23
23
24
24
# install openssh with ansible.
25
- RUN ansible localhost -m portage -a 'package=openssh state=present' -vvvv
25
+ RUN ansible localhost -m portage -a 'package=openssh state=present' -vvvv
26
26
27
27
# Setting the sshd.
28
28
RUN mkdir /var/run/sshd
You can’t perform that action at this time.
0 commit comments