dongrao9436 2018-04-28 05:01
浏览 3145
已采纳

在Docker中基于Alpine的映像上安装Redis

I am trying to install Redis on the golang:1.10.1-alpine3.7 image. I tried RUN apk add --no-cache redis, but when I tried to run the redis-cli command, I get an exit status 127, which means the given command in not found. I would like to know how I would be able to run the redis-cli command.

  • 写回答

1条回答 默认 最新

  • dongyin2885 2018-04-28 16:37
    关注

    Try using the fully qualified path of the command - /usr/bin/redis-cli.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?