SSH into a container

I’d like to SSH into my prometheus container.

Nothing fancy in my Dockerfile

FROM prom/prometheus
ADD prometheus/config/prometheus.yml /etc/prometheus/prometheus.yml

(that’s it)

it is authenticating

debug1: Authentication succeeded (publickey).
Authenticated to ssh.frankfurt.render.com ([ip]:22).

but shortly after it is disconnecting

debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to ssh.frankfurt.render.com closed.
Transferred: sent 2756, received 1584 bytes, in 16.0 seconds
Bytes per second: sent 172.0, received 98.9
debug1: Exit status 1

Pretty new to Docker, so had a hard time grasping the limitations to SSHing into containers here.

Asked this question a few weeks ago, got no answer and the topic got automatically closed. Seems like an uber-basic use case that should be addressed in the docs

Any help?

Hi there,

Can you share the email and service associated with your account so we can take a closer look? I can help walk you through the limitations when I have more insight into your application. Typically, adding this to your Dockerfile will enable SSH access for most Dockerized applications.

RUN mkdir ~/.sshRUN chmod 0700 ~/.ssh

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.