Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Operation not Permitted" when running Vault in a container

We are running the vault-cli in an Alpine Docker image within our GitLab CI. After an upgrade we are getting this when Vault is called:

/bin/bash: line 117: /usr/sbin/vault: Operation not permitted

Felix

like image 846
flix Avatar asked Oct 09 '20 17:10

flix


1 Answers

According to this issue, add this to your Dockerfile:

apk add --no-cache vault libcap
setcap cap_ipc_lock= /usr/sbin/vault

Note though that this is only secure when not using vault as server here.

like image 107
flix Avatar answered Nov 05 '22 22:11

flix