Connect to a Docker container

Advertisement

Joo
Guest

Connect to a Docker container

Hi,

Is it possible to connect to a running docker container with WinSCP?

I am able to connect to host on which docker system runs. But I cannot find out how to connecting to the docker directly.
Does anyone know what I need to adjust in WinSCP added to connect?
Sure, I am able to open by PuTTY, but I want to connect by WinSCP.

Best Regards
Joo

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Connect to a Docker container

If you are able to connect with PuTTY, I do not see what should prevent you from connecting with WinSCP. Unless you first connect to the host with PuTTY; and then you connect to the docker machine from the host shell.

Show us PuTTY and WinSCP logs for comparison.

Reply with quote

portablepeter
Guest

Re: Connect to a Docker container

Yes, you can.

Type the command line:
docker-machine ls
This command shows you the IP of the machine:
NAME      ACTIVE   DRIVER   STATE     URL                         SWARM   DOCKER    ERRORS
manager   -        hyperv   Running   tcp://192.168.111.63:2376           v1.13.0
worker    -        hyperv   Running   tcp://192.168.111.64:2376           v1.13.0
After it, you should use that IP inside the WinSCP client, with user: docker, and pass: tcuser.

Reply with quote

jbrower
Joined:
Posts:
2

Re: Connect to a Docker container

@portablepeter: This does not work for Docker installation on a bare-metal server, for example Docker installed on Ubuntu Linux (i.e. not a Windows or MacOS VM).

Reply with quote

Advertisement

You can post new topics in this forum