21

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

flix
  • 1,821
  • 18
  • 23

1 Answers1

29

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.

flix
  • 1,821
  • 18
  • 23