【问题标题】:redis-server does not start in bitbucket pipelineredis-server 不在 bitbucket 管道中启动
【发布时间】:2021-11-06 23:04:22
【问题描述】:

我将 docker 升级到 ubuntu 20.04。由于我这样做了,redis-server 服务不再在我的 bitbucket 管道中启动。

就是这么说的

服务 redis-server 启动

start-stop-daemon:匹配全局可写 pidfile /var/run/redis/redis-server.pid 是不安全的

启动 redis-server: 失败

如果我在本地运行 docker 并尝试启动服务,一切都会按预期运行。

我没有为start-stop-daemon的日志找到任何有用的解决方案,我也尝试在启动服务之前删除pid文件,但没有帮助。

有没有人遇到相同或类似的问题并解决了它?

【问题讨论】:

    标签: docker redis


    【解决方案1】:

    Redis 可以作为服务运行在 bitbucket 中,你可以连接到它 使用本地主机。下面提供的示例管道配置

    pipelines:
      default:
        - step:
            name: Build and Test
            image: node:14.16.0
            caches:
              - node
            script:
              - npm install
              - npm test
            services:
              - redis
    definitions:
      services:
        redis:
          image: redis
    

    【讨论】:

    • 这也不起作用,但这似乎是我用于索引某些内容的 redisearch 模块的问题。由于更新到 ubuntu 20.04,localhost:redis.exceptions.ConnectionError: Error 111 connected to localhost:6379 的连接被拒绝。连接被拒绝。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-22
    • 2018-05-26
    • 2021-08-01
    • 2015-08-23
    • 2020-05-08
    相关资源
    最近更新 更多