Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Disabling IPC_LOCK inside Dockerfile #329

Open
baoj-dfo opened this issue Apr 1, 2023 · 1 comment
Open

Disabling IPC_LOCK inside Dockerfile #329

baoj-dfo opened this issue Apr 1, 2023 · 1 comment

Comments

@baoj-dfo
Copy link

baoj-dfo commented Apr 1, 2023

In Dockerfile, I added line
RUN setcap cap_ipc_lock=+ep $(readlink -f $(which vault))

but still get couldn't start vault with IPC_LOCK. Disabling IPC_LOCK, please use --cap-add IPC_LOCK

I know "docker run --cap-add=IPC_LOCK -d --name=dev-vault vault", I want to be inside Dockerfile.

@encbladexp
Copy link

A Dockerfile could not add capabilities, this is by design, and nothing vault could change. Dockerfile influences the Image, but capabilities are a runtime/container thing. You want something that is technical not possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants