Try to deploy vault in docker
My config:
ui = true
storage “raft” {
path = “/vault/data”
node_id = “node1”
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = true
}
api_addr = "http://0.0.0.0:8200"
cluster_addr = "https://0.0.0.0:8201"
log_level = "Debug"
Docker start, i can access WebUI, get tokens. Start to unseal, pass 2/3 tokens and cant pass 3/3, page just refresh. In logs:
docker run --net=host -v “/opt/docker/vault/:/vault/” --cap-add=IPC_LOCK vault:1.5.4 server
==> Vault server configuration:
Api Address: http://0.0.0.0:8200 Cgo: disabled Cluster Address: https://0.0.0.0:8201 Go Version: go1.14.7 Listener 1: tcp (addr: "0.0.0.0:8200", cluster address: "0.0.0.0:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled") Log Level: debug Mlock: supported: true, enabled: true Recovery Mode: false Storage: raft (HA available) Version: Vault v1.5.4 Version Sha: 1a730771ec70149293efe91e1d283b10d255c6d1
==> Vault server started! Log data will stream in be2020-10-12T09:14:02.929Z [INFO] proxy environment: http_proxy= https_proxy= no_proxy=
2020-10-12T09:14:02.934Z [DEBUG] storage.cache: creating LRU cache: size=0
2020-10-12T09:14:02.990Z [DEBUG] cluster listener addresses synthesized: cluster_addresses=[0.0.0.0:8201]
low:2020-10-12T09:14:23.708Z [DEBUG] core: unseal key supplied
2020-10-12T09:14:23.708Z [DEBUG] core: cannot unseal, not enough keys: keys=1 threshold=3 nonce=f5811a8f-f2c2-62ec-12fe-332fa0add3cf
2020-10-12T09:14:32.104Z [DEBUG] core: unseal key supplied
2020-10-12T09:14:32.104Z [DEBUG] core: cannot unseal, not enough keys: keys=2 threshold=3 nonce=f5811a8f-f2c2-62ec-12fe-332fa0add3cf
2020-10-12T09:14:38.667Z [DEBUG] core: unseal key supplied
2020-10-12T09:14:38.667Z [DEBUG] core: starting cluster listeners
2020-10-12T09:14:38.667Z [INFO] core.cluster-listener.tcp: starting listener: listener_address=0.0.0.0:8201
2020-10-12T09:14:38.667Z [INFO] core.cluster-listener: serving cluster requests: cluster_listen_address=[::]:8201