Trouble connecting to docker via ssh

Answered

Hi, I really hope someone can help. I know this might be more of a docker issue, but maybe there is someone who had similar problems.

I have a VM running Ubuntu with docker and I´d like to connect to it in PyCharm. I created an ssh config in PyCharm which works fine but when I try to connect to docker with this ssh config I get an error "java.io.IOException: unexpected end of stream on http://127.0.0.1/..." (Unfortunately PyCharm cuts the rest of the message).

What am I missing here? Any help appreciated.

1 comment
Comment actions Permalink

Ok, that took a while :-) but it`s actually not that difficult. The docker engine has to be managable by a non-root user (the ssh user connected to the vm, server,...). To enable this, a group "docker" has to be created and the user has to be added to the group.

  1. $ sudo groupadd docker
    $ sudo usermod -aG docker $USER
1

Please sign in to leave a comment.