XK6 Browser gives an error: building browser on IterStart: launching browser: Running as root without --no-sandbox is not supported

Hi @rodyb

When running docker, can you try adding the environment variable K6_BROWSER_ARGS?

docker run --rm -i -e K6_BROWSER_ARGS='no-sandbox' <your-image> run - <test.js 

I think the behavior has changed with the breaking changes in v0.46.0. Before you could use args:['no-sandbox'] (without the --).

I hope this helps :bowing_woman:

Cheers!

1 Like