in you docker-compose.ymal add :
-e KARATE_VIDEO_DISABLED=true
best use this , because it's the least intrusive and doesn't require changes to the code/config files.
or set in karate-config.js
function fn() {
karate.configure('video', false);
return {};
}