Open aliismayilov opened 19 hours ago
We need to mount a volume and use a valkey.conf
file to run the server with the configs and the also a valkey.soc
file with the right permissions to use a socket for valkey server container:
I make a tmp/valkey.conf
file like
unixsocket valkey.sock
unixsocketperm 700
also created tmp/valkey.soc
and change file permission to 700
chmod 700 tmp/valkey.soc
you can run the following commands
docker run -d \
-v /tmp:/usr/local/etc/valkey \
valkey/valkey valkey-server /usr/local/etc/valkey/valkey.conf;
valkey-server logs:
1:C 07 Oct 2024 19:36:27.390 * oO0OoO0OoO0Oo Valkey is starting oO0OoO0OoO0Oo
1:C 07 Oct 2024 19:36:27.390 * Valkey version=8.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 07 Oct 2024 19:36:27.390 * Configuration loaded
1:M 07 Oct 2024 19:36:27.390 * monotonic clock: POSIX clock_gettime
1:M 07 Oct 2024 19:36:27.390 * Running mode=standalone, port=6379.
1:M 07 Oct 2024 19:36:27.391 * Server initialized
1:M 07 Oct 2024 19:36:27.391 * Ready to accept connections tcp
1:M 07 Oct 2024 19:36:27.391 * Ready to accept connections unix
Let me know if it helps
It seems to be there is a permission issue when trying to use a socket for valkey server container:
/run/valkey.sock is the current default suggestion.