Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.59 KB

README.md

File metadata and controls

61 lines (45 loc) · 2.59 KB

What is docker-vault?

Circle CI

This is a Dockerized image of Hashicorp's Vault. Vault is tool to securely access secrets such as API keys, passwords, certificates, token, and so on.

Run from Docker Hub

A pre-built image is available on Docker Hub and can be run as follows:

docker run -it cgswong/vault:latest

By default the container will run the vault command showing the version. Simply run your regular vault commands as normal to use the image.

notes

default binding

vault binds to 127.0.0.1 by default, make sure you bind vault's listener to to 0.0.0.0.

development server

when running the development server, vault binds to localhost by default. A possible workaround would be to create the following vault config:

listener "tcp" {
  address = "0.0.0.0:9000"
  tls_disable = 1
}

and then pass the configuration to vault. for example, if you saved the mentioned configuration at /tmp/vault.conf:

docker run -it --expose 9000 -p 127.0.0.1:8200:9000 \
        -v /tmp/vault.conf:/root/vault.conf cgswong/vault:latest \
        server -config /root/vault.conf -dev

Build from Source

  1. Make sure Docker is installed.

  2. Clone docker-vault from GitHub

    git clone https://github.com/cgswong/docker-vault.git
  3. Build the docker image (change [version] below with the appropriate version, and [your_name] as appropriate)

    cd docker-vault/[version]
    docker build -t [your_name]/vault:latest .
  4. Run a docker container with that image (change [your_name] as done above)

    docker run -it [your_name]/vault:latest -help

User Feedback

Issues

If you have any problems with or questions about this image, please contact me through a GitHub issue.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; I'm always thrilled to receive pull requests, and I'll do my best to process them as fast as I can.

Before you start to code, I recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.