docker - Redis桌面管理器无法在docker中连接redis?

标签 docker redis centos centos7

事情是这样的:

我在win10电脑的VituralBox中安装了Cent OS 7,并在其中安装了docker,然后安装了redis并使用命令行运行:

docker run -d -p 6379:6379 --name myredis registry.docker-cn.com/library/redis

docker run -d -p 192.168.1.105:6379:6379 --name myredis registry.docker-cn.com/library/redis

(我都试过了,删除并重新运行)

详情如下:

[root@localhost /]# docker pull registry.docker-cn.com/library/redis
Using default tag: latest
latest: Pulling from library/redis
802b00ed6f79: Pull complete
8b4a21f633de: Pull complete
92e244f8ff14: Pull complete
fbf4770cd9d6: Pull complete
1479f3bcce09: Pull complete
b4020173179f: Pull complete
Digest: sha256:b77926b30ca2f126431e4c2055efcf2891ebd4b4c4a86a53cf85ec3d4c98a4c9
Status: Downloaded newer image for registry.docker-cn.com/library/redis:latest
[root@localhost /]# docker images
REPOSITORY                             TAG                 IMAGE ID            C          REATED             SIZE
registry.docker-cn.com/library/redis   latest              e1a73233e3be        2           weeks ago         83.4MB
[root@localhost /]# docker run -d -p 6379:6379 --name myredis registry.docker-cn.co       m/library/redis
15ce42331abfdada499378b9021a6b8506028577e7411d9b4530f55678656aa3
[root@localhost /]# docker ps
CONTAINER ID        IMAGE                                  COMMAND                         CREATED             STATUS              PORTS                    NAMES
15ce42331abf        registry.docker-cn.com/library/redis   "docker-entrypoint.s…"          28 seconds ago      Up 26 seconds       0.0.0.0:6379->6379/tcp   myredis

但是我无法将redis连接到Redis Desktop Manager,这是这个软件的日志:

2018-09-20 02:02:45 : Connection: Cancel running commands
2018-09-20 02:02:45 : Connection: Disconnect on error: Connection error: The proxy type is invalid for this operation
2018-09-20 02:02:45 : Connection: redis > connection failed

enter image description here

  • 6379 是开放的,没有被防火墙阻止,因为我检查过了。
  • Redis 没有密码。

最佳答案

https://github.com/uglide/RedisDesktopManager/issues/3841

是应用的问题,不知道开发者有没有解决,现在必须把版本从0.9.3.817降级到0.8.8.384。

任何遇到Connection error: The proxy type is invalid for this operation的人都可以这样做,或者你可以在GitHub上查看这个问题后告诉我任何其他解决方案。

谢谢。

关于docker - Redis桌面管理器无法在docker中连接redis?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52412083/

相关文章:

linux - 是否可以在单个NGINX容器中托管多个Web应用程序容器?

docker - 跨redis容器持久化数据

linux - Vagrant 永远不会完成 `up`

linux - 如何在Linux中安装urwfonts-8.71.tar.bz2?

ubuntu - 在 Ubuntu 14.04 上安装 Docker 时出现 Modprobe 错误

mongodb - 尝试自动上传文件时出现 curl 错误-http没有此类文件

python - 无法解决以10为底的int()的基本错误无效文字

redis - 在 redis 服务器端评估的 lua 脚本中,应该使用 key 而不是扫描吗?

php - 如何在 php 中获取 redis->lpush() 的返回值?

centos - 关于centos 8 如何创建一个vlan后的网桥?