Hello,
The goal I want to achieve is to keep Vault state (secrets, aws creds, ...) after a Vault restart.
Right now I can successfully start the Docker container and use it :
docker run -d --name vault -e VAULT_DEV_ROOT_TOKEN_ID=myroot -e VAULT_LOCAL_CONFIG='{"backend":{"file":{"path":"/vault/file"}}}' -v "$PWD"/file:/vault/file -p 8200:8200 --cap-add=IPC_LOCK vault
But if I restart my machine and (re)start the container
I run into this error:
Error initializing Dev mode: Vault is already initialized
So I have to start a new container and go into Vault configuration again (secrets, aws creds, ...)...
Do you have ideas or best practices ?
Cheers,
lapwat