我已经用 fluent-bit 创建了 docker 容器,但是当我尝试执行 docker entrypoint.sh 时,我的权限被拒绝了。下面我附上了docker文件
FROM fluent/fluent-bit:1.4-debug
USER root
ADD ./docker-fluentbit-entrypoint.sh /fluent-bit
CMD ["chmod", "+x", "/fluent-bit/docker-fluentbit-entrypoint.sh"]
ADD fluent-bit.conf /fluent-bit/etc/
WORKDIR /fluent-bit
ENTRYPOINT ["/fluent-bit/docker-fluentbit-entrypoint.sh"]
低于错误信息
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/fluent-bit/docker-fluentbit-entrypoint.sh\": permission denied": unknown.