We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91d85fa commit e2bdf81Copy full SHA for e2bdf81
2 files changed
Dockerfile
@@ -1,9 +1,8 @@
1
-ARG BUILD_FROM=alpine:latest
+ARG BUILD_FROM=alpine:3.17
2
3
FROM $BUILD_FROM
4
5
-RUN apk --update --no-cache add bash nfs-utils && \
6
- \
+RUN apk --update --no-cache add bash nfs-utils libcap-utils && \
7
# remove the default config files
8
rm -v /etc/idmapd.conf /etc/exports
9
entrypoint.sh
@@ -277,7 +277,7 @@ is_kernel_module_loaded() {
277
278
is_granted_linux_capability() {
279
280
- if capsh --print | grep -Eq "^Current: = .*,?${1}(,|$)"; then
+ if capsh --decode=$(grep CapBnd /proc/$$/status|cut -f2) | grep cap_sys_admin > /dev/null; then
281
return 0
282
fi
283
0 commit comments