Ruby SDK and Gems used by RubyMine (ruby-2.4.2-p198).Versions of software in my environment are as follows I've managed to use RubyMine to remote debug rails running inside a docker, without using SSH. I can connect SSH well to the container by removed this line in docker-compose.yml command: bundle exec rails s -p 3000 -b '0.0.0.0' I think the problem is about setting work dir. I figure out the problem is related to setup in Dockerfile.īecause when I remove those lines in docker file: RUN mkdir /myappĪnd remove those lines in docker-compose.yml volumes: Ssh_exchange_identification: Connection closed by remote host
RUN echo 'export VISIBLE=now' > /etc/profileĬommand: bundle exec rails s -p 3000 -b '0.0.0.0' RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN apt-get update -qq & apt-get install -y \ I'm start working rails development with Docker.Ĭurrently, I follow some tutorial to setup development environment.īut now, I want to setup Ruby Remote SDK for Rubymine, so I installed SSH on docker container (the ruby container I INSTALLED SSH BECAUSE IT'S NEEDED FOR SETTING REMOTE SDK).