Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setcap is missing in docker images #252

Closed
Laffs2k5 opened this issue Oct 20, 2019 · 0 comments · Fixed by #254
Closed

setcap is missing in docker images #252

Laffs2k5 opened this issue Oct 20, 2019 · 0 comments · Fixed by #254

Comments

@Laffs2k5
Copy link

In #41 libcap-dev was introduced to be able to use the setcap command;

Today I was following the documentation on https://hub.docker.com/r/openhab/openhab/ for setting up Openhab using Docker and included the script 50-setpcap-on-java. During boot of the container there is an error saying that setcap was not found.

I worked around this by adding libcap2-bin through apt-get -y update && apt-get install -y libcap2-bin in the script. You should consider updating your dockerfiles to include libcap2-bin as part of the build.

Not sure what the story is here, maybe setcap previously was avalable as part of libpcap-dev?

This issue was encountered when using openhab/openhab:2.5.0.M4-amd64-debian but it seems libpcap-dev is included in most of your images and thus they may all be affected...

wborn added a commit to wborn/openhab-docker that referenced this issue Oct 23, 2019
Fixes openhab#246
Fixes openhab#252

Signed-off-by: Wouter Born <github@maindrain.net>
cniweb pushed a commit that referenced this issue Oct 23, 2019
Fixes #246
Fixes #252

Signed-off-by: Wouter Born <github@maindrain.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant