Khalisaran Saran
Khalisaran Saran

Reputation: 324

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.

Upvotes: 15

Views: 24264

Answers (3)

Comdif
Comdif

Reputation: 1

ssh to your server and just enter: df -h

You will get the full path of your running container like in this sample:

overlay 1.8T 25G 1.7T 2% /var/lib/docker/overlay2/ec55d9d36bf618d0c2d43e5568a8a43cc51041a96184b236c286666cc8833dde/merged

Point your winscp to this directory.

Upvotes: 0

Ohmen
Ohmen

Reputation: 6604

Docker is a program you cannot connect to docker directly. If you want to connect with WinSCP into the host docker runs on just use the same settings as for putty because they use the same protocol. if you want to WinSCP directly into a container => don't do it. Instead mount the wanted Folder inside your container to a folder on the host and WinSCP to your docker host.

Upvotes: 2

Jaffy
Jaffy

Reputation: 585

You can connect to docker machine with below information:

File protocol: SFTP
Host name: 192.168.99.100 (in most cases)

Username: docker
Password: tcuser

However, I am also investigating how to connect with particular container.

Upvotes: 8

Related Questions