asteris-llc / vaultfs

Vault filesystem (and Docker volume plugin)
Apache License 2.0
129 stars 13 forks source link

Following the instructions leaves me with an empty container #10

Open snelson-pp opened 7 years ago

snelson-pp commented 7 years ago

Hello all,

I'm attempting to follow the instructions in the README. However, if I mount vaultfs on a docker container, it's as though the container is empty. (This is on centos 7.) Have I misunderstood something about usage, or is this a driver bug?

# docker run -d -p 8200:8200 -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' --name=dev-vault vault

# vaultfs docker -t db802500-0b77-bf18-4b9c-4fd6aee42e4a secret --address http://localhost:8200

# docker run --volume vaultfs:/test centos:7 /bin/bash docker: Error response from daemon: Container command '/bin/bash' not found or does not exist..

snelson-pp commented 7 years ago

Digging into Docker logs, I found:

Jul 27 20:52:39 m0060480.lab.ppops.net docker[4190]: time="2016-07-27T20:52:39Z" level=error msg="containerd: start container" error="oci runtime error: could not synchronise with container process: stat /run/docker/libcontainerd/5b7a7ffd9088905cabb5e0d02021e27e2c96d6869ddc5e2fea110269e51c7833/secret/vaultfs: no such file or directory" id=5b7a7ffd9088905cabb5e0d02021e27e2c96d6869ddc5e2fea110269e51c7833