Sign inSign up

alexw23/docker-vault

By alexw23

Updated over 10 years ago

docker-vault

Image
0

319

alexw23/docker-vault repository overview

Docker Vault

This Docker Vault container is using Busybox and Hashicorp's Vault.

Vault uses TCP/8200 by default, so we'll keep that. The demo configuration is listening on all interfaces (not just localhost), and using demo.consul.io as per the getting started docs.

Configuration is stored under config/.

The automated latest build is always available at sjourdan/vault:

$ docker pull sjourdan/vault

Vault Server

Start by default in dev mode:

$ docker run -it \
  -p 8200:8200 \
  --hostname vault \
  --name vault sjourdan/vault

Start with a demo Consul backend using demo.consul.io:

$ docker run -it \
  -p 8200:8200 \
  --hostname vault \
  --name vault \
  --volume $PWD/config:/config \
  sjourdan/vault server -config=/config/demo.hcl

If you have a running Consul container named consul, you can just use it:

$ docker run -it \
  -p 8200:8200 \
  --hostname vault \
  --name vault \
  --link consul:consul \
  --volume $PWD/config:/config \
  sjourdan/vault server -config=/config/consul.hcl

To initialize Vault, on your workstation with vault installed:

$ export VAULT_ADDR='http://a.b.c.d:8200'
$ vault init

Then RTFM for Vault usage.

Consul

I'm using Progrium's Consul Docker box, it's working great. Here's with the WebUI:

$ docker run -p 8400:8400 -p 8500:8500 -p 8600:53/udp --hostname consul --name consul progrium/consul -server -bootstrap -ui-dir /ui

The WebGUI should be available.

Vault Client

You can use it as a vault client too:

$ alias vault="docker run vault"
$ vault version

Tag summary

Content type

Image

Digest

Size

15.8 MB

Last updated

over 10 years ago

docker pull alexw23/docker-vault