docker redis容器无法加载配置文件
开发环境:macbookpro 10.11.4,docker for mac 1.12.3,redis 3.2.6,镜像源为DAOCLOUD
打算搭建redis主从服务,自己设置redis.conf,但是把容器当中的运行redis-server /usr/local/bin/redis.conf无法生效,已通过redis-cli info验证过了,并且如果是在启动时加上-d选项设置启动参数指定配置文件时则容器无法启动。
下面是containerlog
1:C 17 Dec 14:34:47.683 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.6 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 1
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2016-12-17T14:34:47.685186833Z
1:M 17 Dec 14:34:47.685 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 17 Dec 14:34:47.685 # Server started, Redis version 3.2.6
1:M 17 Dec 14:34:47.685 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 17 Dec 14:34:47.689 * DB loaded from disk: 0.004 seconds
1:M 17 Dec 14:34:47.689 * The server is now ready to accept connections on port 6379
redis.conf
protected-mode no
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
supervised no
pidfile /var/run/redis_6379.pid
loglevel notice
logfile ""
databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
slave-serve-stale-data yes
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
aof-load-truncated yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
相关阅读:
在 MAC OS 下google 浏览器、Safari浏览器,为什么设置 submit 高度无效?
grunt-contrib-requirejs打包生成的js文件如何添加版本号?
jquery 的实参jQuery含义
关于moment.js格式化时间
新手请教idea中怎么将maven下载的jar包添加到tomcat的web项目下的lib目录?
Vue2.0+Vue-router2.0配置报错
关于vue和es6的大神过来瞧瞧呀?
php curl 经过cdn后如何返回用户最近ip
构造hash table时,MAD法为什么要消除消除不动点0
laravel发布到centos7时不能连接mariadb数据库
div display: inline-block; 置中?
java String[] 初始化有这种写法?
ubuntu16.4 下列软件包有未满足的依赖关系: libapache2-mod-php
如何在应用内实现下图通话效果
v-html怎么实现动态绑定
vue搜索结果页应该如何弄
vue 绑定事件时可以动态赋值么
关键帧动画瞬间被执行完了?
android调用服务器端的php文件
Android Studio Memory内存泄漏分析文件在哪里?