Error: no “view” mailcap rules found for type “application/x-executable” /usr/bin/xdg-open: 869: www-browser: not found /usr/bin/xdg-open: 869: links2: not found /usr/bin/xdg-open: 869: elinks: not found /usr/bin/xdg-open: 869: links: not found /usr/bin/xdg-open: 869: lynx: not found /usr/bin/xdg-open: 869: w3m: not found xdg-open: no method available for opening ‘/agent/_work/_tool/docker-stable/19.3.13/x64/docker’
import http from 'k6/http';
import { sleep } from 'k6';
export default function () {
http.get('https://test.k6.io');
sleep(1);
}
And run
docker run --rm -i grafana/k6 run - <script.js (Mac, Linux)
PS C:\> cat script.js | docker run --rm -i grafana/k6 run - if Windows (PowerShell).
Does that work? If it does, can you share the script/s you are runnning? I suspect you might be using an extension that requires a browser. Then you might need to build your own docker image with the requirements.