$ vault -help
$ vault server -dev -dev-listen-address='<VAULT_HOST_IPADDR>:8200' ==> WARNING: Dev mode is enabled! In this mode, Vault is completely in-memory and unsealed. Vault is configured to only have a single unseal key. The root token has already been authenticated with the CLI, so you can immediately begin using the Vault CLI. The only step you need to take is to set the following environment variables: export VAULT_ADDR='http://10.240.0.53:8200' The unseal key and root token are reproduced below in case you want to seal/unseal the Vault or play with authentication. Unseal Key: Hb0dBfYh3ieHRmf28ohu5xh0DKfmP4aNa8JS5/jNsWQ= Root Token: 29e3e12b-09b4-af6c-6e87-cbd9fbcb51bd
$ export VAULT_ADDR='http://<VAULT_HOST_IPADDR>:8200'
vault kv put secret/mySecret1 "pass=1234567"
$ vault write secret/mySecret1 "pass=1234567"
$ vault kv get secret/mySecret1
$ vault read secret/mySecret1
$ docker run -ti ubuntu /bin/bash
# ls /run/secrets # cat /run/secrets/<SECRET_NAME>
$ docker run -dit ubuntu /bin/bash <CONTAINER_ID>
$ docker inspect <CONTAINER_ID>