Docker SSH configuration?

Completed

I'm trying to setup remote debugging as indicated in the following post and I'm almost there.

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207649545-Use-RubyMine-and-Docker-for-development-run-and-debug-before-deployment-for-testing-

I have the Ruby app and SSHD running in the container, though the recipe I found for configuring SSHD isn't fully compatible with the Linux distro that the Ruby image is based on.

I based my SSHD configuration on this Docker documentation page: https://docs.docker.com/engine/examples/running_ssh_service/

My image is based on the ruby:2.2 image from Docker Hub, which uses Debian 8 as opposed to Ubuntu 16.04 used in the SSHD example above.

I can get to a SSH prompt but I can't login with the screencast password for root that's set in the dockerfile.

I'm open to whatever solution works, either properly enabling root login or adding a new user with the correct permissions to allow for remote debugging. I'm just curious which path would be most straight forward in the Debian context. And if it's creating a new user, what permissions do they need?

Also, to be clear I'm treating this as a trial run and will obviously make sure to strip out the SSHD functionality in some way when I go to deploy the app for any context outside of development.

Thanks in advance for your help.

0
1 comment

For anyone who might be interested, I did get this working with the help of SO http://stackoverflow.com/questions/42653676/how-to-configure-debian-sshd-for-remote-debugging-in-a-docker-container

My next step is to play around with docker-sync http://jes.al/2016/09/setting-up-a-rails-development-environment-using-docker/

1

Please sign in to leave a comment.