小编Tom*_*bec的帖子

使用 filezilla 连接到 docker 容器

我在 Google Cloud 虚拟机上运行 docker 容器。我尝试了几个小时从本地计算机上的 filezilla 连接到正在运行的 docker 容器。我已经开始这样的 docker 镜像:

docker run -t -d --name test -p 2222:22 --link postgres7:postgres7 random_image /bin/bash
Run Code Online (Sandbox Code Playgroud)

在我的 filezilla 连接配置中,我设置了:

主机:谷歌云 IP 地址
端口:2222
协议:SFTP
登录类型:普通
用户:root(无密码)

尝试连接时出现此错误:

Status: Connecting to x.x.x.x:2222...
Response:   fzSftp started
Command:    open "root@x.x.x.x" 2222
Error:  Connection refused
Error:  Could not connect to server
Run Code Online (Sandbox Code Playgroud)

我已经在谷歌云引擎上打开了端口。

filezilla docker google-cloud-platform docker-container

5
推荐指数
1
解决办法
8060
查看次数