Details
-
Sub-task
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
Unable to ssh to the couchbase-server docker image created using the Dockerfile:
FROM couchbase/server:enterprise-5.0.1
|
MAINTAINER Couchbase Docker Team <docker@couchbase.com>
|
RUN apt update
|
RUN apt install openssh-client openssh-server -y
|
RUN mkdir /var/run/sshd
|
RUN echo 'root:couchbase' | chpasswd
|
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
# SSH login fix. Otherwise user is kicked off after login
|
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
RUN echo 'export VISIBLE=now' >> /etc/profile
|
RUN /usr/sbin/sshd -D &
|
EXPOSE 8091 8092 8093 8094 9100 9101 9102 9103 9104 9105 9998 9999 11207 11210 11211 18091 18092 22
|
Observation:
- After container creation, after using docker exec "service ssh start" only allows ssh login procedure.
- Even then username, password <root/couchbase> values are not working.
- Unable to login even if the ssh service starts in the container
Attachments
Issue Links
- blocks
-
K8S-166 Functional testing - infrastructure enhancements to run testrunner sanity tests
- Closed