Vault Notes

启动实例(开发环境)

1
2
3
4
docker run --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 -d --name=dev-vault vault


docker run --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' vault

启动成功后,在启动日志中获取默认的 Token。如:

1
2
Unseal Key: BRGYd/8vJSl5101boUHdXDu2ZfYTsJy5tdgXlvOyysQ=
Root Token: myroot

认证

1
vault login myroot