title: Hashicorp vault ui is not accessible when running it through docker
body: <p>I am trying to setup HashiCorp vault using docker. I am using MySql database for the storage. I created both MySql and Vault docker containers in same network using docker network. </p>
  
  <p><strong>config.hcl</strong></p>
  
  <pre><code>ui = true
  
  storage "mysql" {
    address = "localhost:3306"
    username = "root"
    password = "Test@12345"
    database = "vault"
  }
  
  listener "tcp" {
   address = "127.0.0.1:8200"
   tls_disable = "true"
   }
  </code></pre>
  
  <p><strong>MySql Container:</strong></p>
  
  <pre><code>docker run --name vault-mysql -e MYSQL_ROOT_PASSWORD=Test@12345 -d --network vault_network  mysql:latest
  </code></pre>
  
  <p><strong>Vault Container:</strong></p>
  
  <pre><code>docker run  -p 8200:8200 -e 'VAULT_LOCAL_CONFIG={"backend": {"file": {"path": "/Users/jaddap2/vault/config.hcl"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h"}'  \
   --cap-add=IPC_LOCK --network vault_network  vault server
  </code></pre>
  
  <p>When I try to access the vault using <a href="http://127.0.0.1:8200/ui" rel="nofollow noreferrer">http://127.0.0.1:8200/ui</a> I get the following error</p>
  
  <p><a href="https://i.stack.imgur.com/1g7Bx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1g7Bx.png" alt="vault error"></a></p>