-
Notifications
You must be signed in to change notification settings - Fork 563
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
Does redis:latest (3.2.3) start in protected mode? Does passing --protected-mode no
work?
#74
Comments
Possibly this was resolved in #58 #59 with but I have just tried
with node_redis
on Windows 10 PC and docker
|
--protected-mode no
work?
We actually patch the redis source to not have protected mode by default: https://github.com/docker-library/redis/blob/ec0cb4dab9ed6e60cc0863cd3477a013fb4c0596/3.2/Dockerfile#L45-L51. I see one major problem in your node connection to redis: |
From my knowledge specifying 192.168.. IP is required for Mac, not for Windows. I have tried again and got the same
var redis = require("redis"),
//client = redis.createClient();
//client = redis.createClient(6389, '127.0.0.1');
client = redis.createClient(6379, '192.168.99.100');
// if you'd like to select database 3, instead of 0 (default), call
// client.select(3, function() { /* ... */ });
client.on("error", function (err) {
console.log("Error " + err);
});
client.set("string key", "string val", redis.print);
client.hset("hash key", "hashtest 1", "some value", redis.print);
client.hset(["hash key", "hashtest 2", "some other value"], redis.print);
client.hkeys("hash key", function (err, replies) {
console.log(replies.length + " replies:");
replies.forEach(function (reply, i) {
console.log(" " + i + ": " + reply);
});
client.quit();
}); Now I have time to continue with this issue. I was looking for a way to get redis local service and P.S. The was wrong port, 192.168.99.100:6379 did worked on Windows 10. |
Initial questions are answered. |
There is SO question http://stackoverflow.com/questions/39424559/check-connect-to-redis-running-within-docker-from-javaspring-boot-or-node-js
I expected that
docker run -p 6379:6379 redis
would give ready to use redis instance.If it is decided not to keep protected mode, README here should have tips how to disable it.
The text was updated successfully, but these errors were encountered: