我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在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.

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

近期文章

  • 去渠道:为什么有两个不同的输出?
  • Heroku Golang-找不到命令'main'
  • GO Websocket向所有客户发送消息
  • 排序多维数组/切片
  • 终止或中止HTTP请求
  • 为什么打印出最大整数会导致golang编译错误?
  • time.Sleep()是否会屈服于其他goroutine?
  • 有效地从文件中读取前两个字节-Golang
  • 具有GoDaddy证书的HTTP SSL-此服务器的证书链不完整
  • 兼容AES CFB
  • 在go程序退出后,在shell上保留为env变量设置的值
  • 在Go中读取缓冲区并将其重写为http.Response
  • 在Go中解析JSON
  • 创建未知类型的切片?
  • 无需压缩即可将文件添加到zip存档
  • Golang html / templates:带有自定义熟食的ParseFiles
  • 在Go中封装平台特定代码的正确方法是什么?
  • 您如何在gopacket中使用tcp汇编软件包?
  • 内部整理包含许多文件的golang软件包
  • Google App Engine何时启动或停止实例?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华