【已完成】请问docker中怎么能连接到面板的redis
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.0系统版本:Ubuntu 22
问题描述:在docker中怎么能连接到面板的redis 我试了无论是127.0.0.1 内网IP 公网IP 都无法在docker中连接到
相关截图(日志、错误):data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAy4AAABLCAIAAAAZAESIAAAbGElEQVR4Ae2d2XVjOa+F/5yURMdTObQfOg07Ci/Vw01AFYHXcgAO4i6AAzZA8BxqLA9bDy0eDhg+giRMqVr/O/BFAiRAAiRAAiRAAiTwKAL/+Nf/HqWXekiABEiABEiABEiABA4+E/uHqRhjggRIgARIgARIgAQeR4Cp2ONYUxMJkAAJkAAJkAAJBAJMxQIQPpIACZAACZAACZDA4wgwFXsca2oiARIgARIgARIggUCAqVgAwsdvSODlz8f769M3dIwukQAJkAAJfH0C56ViL38+2uv0chfnX05Nwcef+2i4i9kU+qkJMBX71NND40iABEjgZxM4PxXLMiRI0T5KCvX0+v7x8X78F+j+e5Sqcjmh5ZZ0+W46QgRmikBcLYJqnx2CCncjMquv8p6Obx/RctMqmeLpuT1PRS0klM8iCZNNJdb4NA31XTqvAglD9x+v8QKlg5wIsNiv8230cGwszwGeLUpEr6diZRZaZMJcRwvzZxn+dsT7N41PN9H5yP1ajUwvfH/Q3XqMnlZVEAZrc+1MnIp1vfhAAiRAAt+KwPWp2OyE0HpIpyy70tN0e5u2ztu0n089Y5MhdlBBzqRnQ1P3dHxrmZ+rr2r0JHh/D0lkt+H5tKBCVLfkTyC0cpciBZ8clG5HGIidVeDbe/cU264uz0AteTHT7g5UmW5k3sqzwQqnzReacTjIlLXhKHYuqrR42lu9p5ZvDbI2N1yrf1wqVmFAXBme/dIIcH8Me5AACZDAFydwfSo233Mx14FDdGW3XU3FkP5chc/SbMyg5eUkJ335r3VrJZdXBS9MhaQIcAsSHossMPVwODy9vmvm4dOOrvVVkjBRB3lta7z2/SovNpSD1wFyeNyQUZrQQj825voboi5MxQ7z2J4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oa5K7Sa1C3pdcwwEskwAJkAAJkAAJfG0Cy6mYpA7hVe6NfJ4UaGzlFnGgT3rwCsr33JLZ1SdJlbRNvSgDk1HeKm+JXuMVKJZTzlQEs5mK9bligQRIgARIgAR+MIHlVEwyCbgVA2Sf9lYs+cx07oU6dG4q1iiI2PZ9/5kKqYfvgTEVa/D4TgIkQAIkQAI/mcByKqafJyafx7WrpiTvEa6S3NiNkSMdbphiZ/hmle8Zchonsz8kSZW2iajcC2nORkHOJCbl7uDAmQrwot6cDantkmvdRxZIgARIgARIgAS+PIH1VKx+YmgfUvav7bdsrDX5DKOmHZDEQE0d0r9qJrlIe5l8SGJWv1CFuVGYJE2VmhL7xwfSKx1l/d9fn17+tMwSTY35mQ0RPd0RG3J6kbIHtepacIePJEACJEACJEACX5jAWanYF/bza5gu+Rl8iPk1jKaVJEACJEACJEAClxNgKnY5u9uPZCp2e6aUSAIkQAIkQAKfmgBTsU8xPfLvNOuLt2KfYkZoBAmQAAmQAAk8hgBTscdwphYSIAESIAESIAESSAgwFUugsIoESIAESIAESIAEHkOAqdhjOFMLCZAACZAACZAACSQEmIolUFhFAiRAAiRAAiRAAo8hwFTsMZyphQRIgARIgARIgAQSAkzFEiisIgESIAESIAESIIHHEGAq9hjO1EICJEACJEACJEACCQGmYgkUVpEACZAACZAACZDAYwgwFXsMZ2ohARIgARIgARIggYTA79+/MRv7f/XfIwhLXV9gAAAAAElFTkSuQmCC
您好,docker的是有自己的redis容器的,通过面板安装的redis不支持远程连接的,从docker到redis还是远程的操作 运维技术阿闯 发表于 2024-9-14 17:52
您好,docker的是有自己的redis容器的,通过面板安装的redis不支持远程连接的,从docker到redis还是远程的 ...
那请问下 如果我docker中建一个redis容器 该怎么连接 同样我试了127.0.0.1 内网IP 公网IP 容器IP都连不上 运维技术阿闯 发表于 2024-9-14 17:52
您好,docker的是有自己的redis容器的,通过面板安装的redis不支持远程连接的,从docker到redis还是远程的 ...
在上个面板版本的时候 我是通过把网络切换为host 链接面板redis 可以成功 但是最新版本更新后 我用host 无法链接mysql了 目前bridge网络可以链接mysql 但是连不上redis 很愁 wxDa 发表于 2024-9-14 18:46
在上个面板版本的时候 我是通过把网络切换为host 链接面板redis 可以成功 但是最新版本更新后 我用host...
您好,您这边端口是暴露端口的吗
使用命令
redis-cli -h localhost -p 端口
-h选项指定Redis服务器的主机地址
-p选项指定Redis服务器的端口号 运维技术阿闯 发表于 2024-9-18 09:16
您好,您这边端口是暴露端口的吗
使用命令
redis-cli -h localhost -p 端口
已解决 redis的网络是baota_net 我把项目容器放到同网络解决了 wxDa 发表于 2024-9-18 09:31
已解决 redis的网络是baota_net 我把项目容器放到同网络解决了
问题解决了就好,后续有问题可以在开新题呢,这边就闭贴了
页:
[1]