Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SSH access to container #7

Open
pengux opened this issue Mar 26, 2014 · 4 comments
Open

Enable SSH access to container #7

pengux opened this issue Mar 26, 2014 · 4 comments

Comments

@pengux
Copy link
Collaborator

pengux commented Mar 26, 2014

An idea is to use the ADD command to add an authorized_keys file to the image when it is being built

@jonmorehouse
Copy link
Collaborator

hmm ... I'm not sure this one makes sense. I'd argue that ssh'ing into a docker box is kind of missing the essence of using it

@jonmorehouse
Copy link
Collaborator

@Painted-Fox what are your thoughts on this one? I think we could close this for now ...

@Painted-Fox
Copy link
Owner

WIth @pengux's change 60f2ec5, we switched to using phusion/baseimage, which comes with support for SSH out of the box. There's even a helpful section in their README about Login to the container via SSH.

I've disabled SSH for now, but I think SSH will be useful (especially for troubleshooting long running containers). I haven't put too much thought into this feature yet.

@Painted-Fox Painted-Fox reopened this May 15, 2014
@jpetitcolas
Copy link

Just for record, if you want to troubleshoot easily a Docker container, you can use nsenter. This way, no need of SSH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants