openhab / openhab-docker

Repository for building Docker containers for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
209 stars 128 forks source link

setcap is missing in docker images #252

Closed Laffs2k5 closed 4 years ago

Laffs2k5 commented 4 years ago

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...