There are docker images which require some additional commands, for example
docker run --name some-valkey -d valkey/valkey valkey-server --save 60 1 --loglevel warning
what is the recommended way of passing valkey-server --save 60 1 --loglevel warning
with incus?
abiosoft
(Abiola Ibrahim)
22
It is not currently supported.
However, @stgraber showed a workaround in one of his live sessions https://youtu.be/XIqVUQk4EMs?t=4156, which you can replicate with the following.
incus launch docker:valkey/valkey some-valkey -c raw.lxc=lxc.execute.cmd="valkey-server --save 60 1 --loglevel warning"
2 Likes
Thank you, it works perfectly - I hope it will get its own incus config parameter in future, but for now it works as required.
Scott_T
(Scott T)
24
lxc.exec.cmd, that is brilliant. Thanks for bringing this up again.