The first step is to configure a Data Container to store the configuration for Vault.
View the confirmation with
The config defines three important properties. Firstly, it sets Vault to use Consul to store the secrets. Using Consul enables high availability mode as Consul manages to information and distribution to ensure HA. Secondly, it binds Vault to listen on all IP addresses, this is for use with the HTTP API. Finally, for development purposes, we disable TLS.
Create Data Container
To store the configuration we'll create a container. This will be used by Vault and Consul to read the required configuration files.
docker create -v /config --name config busybox; docker cp vault.hcl config:/config/;
You can learn more about data containers with our scenario https://www.katacoda.com/courses/docker/data-containers