Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use config file in cmd #62

Closed
reachlin opened this issue May 12, 2016 · 6 comments
Closed

can't use config file in cmd #62

reachlin opened this issue May 12, 2016 · 6 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@reachlin
Copy link

try to use:
command: ["redis-server", "/data/redis.conf"]

the error in log is:

redis_1 | *** FATAL CONFIG FILE ERROR ***
redis_1 | Reading the configuration file, at line 2
redis_1 | >>> 'protected-mode "no" "/data/redis.conf"'
redis_1 | Bad directive or wrong number of arguments

@reachlin
Copy link
Author

what is the right way to pass in a customized config in command now?

@reachlin
Copy link
Author

also, find sth. strange on the folder mounted to /data/

lincai@arkam:~/devbox/onduty$ ls -l data
total 12
-rw-r--r-- 1 vboxadd vboxsf 6390 5月 12 16:58 dump.rdb
-rw-rw-r-- 1 vboxadd lincai 37 5月 12 17:25 redis.conf
l

@tianon
Copy link
Contributor

tianon commented May 12, 2016

Have you pulled the latest image? What's in your redis.conf? What flags are you passing to docker run? (the main issue here should've been fixed by #61 😕)

@zackgq2009
Copy link

got some issue.
If run docker-redis docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis redis-server /usr/local/etc/redis/redis.conf, the redis container can't run
if i run docker-redis docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf -- name myredis2 redis, the redis container can run normally, but if docker exec -it myredis bash, you will find the result of redis-server /usr/local/etc/redis/redis.conf is not work.

@tianon
Copy link
Contributor

tianon commented Nov 25, 2017 via email

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Apr 24, 2018
@wglambert
Copy link

Issue seems resolved and/or a usability issue and not an error with the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

4 participants