1. 程式人生 > >docker jetty啟動時報錯 failed setting default capabilities.

docker jetty啟動時報錯 failed setting default capabilities.

cap 報錯 style 方法 容器 def class ... logs

docker 容器中jetty啟動fail ,查看/var/log/jetty中的日誌發現具體錯誤信息如下:

failed setting default capabilities.
set_caps(CAPS) failed for user ‘jetty‘
Service exit with a return value of 4

解決方法,

docker run -it --cap-add=all  .........

docker jetty啟動時報錯 failed setting default capabilities.