运行 Kubernetes Minikube 服务给我 "cannot open browser" 个错误
Running Kubernetes Minikube service giving me "cannot open browser" errors
我遵循 this 关于 Kubernetes 的教程。
我到达了引导我 运行:
的部分
minikube service sa-frontend-lb
(我使用 sudo 来 运行 它,因为如果我不使用 sudo 它会要求我使用 sudo)。
我收到以下错误:
Opening kubernetes service default/sa-frontend-lb in default browser...
No protocol specified
No protocol specified
(firefox:4538): Gtk-WARNING **: 22:07:38.395: cannot open display: :0
/usr/bin/xdg-open: line 881: x-www-browser: command not found
No protocol specified
No protocol specified
(firefox:4633): Gtk-WARNING **: 22:07:39.112: cannot open display: :0
/usr/bin/xdg-open: line 881: iceweasel: command not found
/usr/bin/xdg-open: line 881: seamonkey: command not found
/usr/bin/xdg-open: line 881: mozilla: command not found
No protocol specified
Unable to init server: Could not connect: Connection refused
Failed to parse arguments: Cannot open display:
/usr/bin/xdg-open: line 881: konqueror: command not found
/usr/bin/xdg-open: line 881: chromium: command not found
[4749:4749:0805/220740.485576:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
[4757:4757:0805/220740.725100:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
我安装了 chromium 和 xdg-utils,但都不起作用。
我怎样才能进入该服务,看看它是否有效?
正如你所看到的,它 是 试图启动浏览器,但是安装了它可以识别的 none,除了我会 guess 是 Chrome (因为可以看出 "chromium" 没有计算出来),并且正如消息所示,它没有容忍 运行 作为 root
.
那么,你想要的其实是:
minikube service --url sa-frontend-lb
这导致 minikube
打印 URL 而不是尝试使用 xdg-open 启动浏览器。
我遵循 this 关于 Kubernetes 的教程。
我到达了引导我 运行:
的部分minikube service sa-frontend-lb
(我使用 sudo 来 运行 它,因为如果我不使用 sudo 它会要求我使用 sudo)。
我收到以下错误:
Opening kubernetes service default/sa-frontend-lb in default browser...
No protocol specified
No protocol specified
(firefox:4538): Gtk-WARNING **: 22:07:38.395: cannot open display: :0
/usr/bin/xdg-open: line 881: x-www-browser: command not found
No protocol specified
No protocol specified
(firefox:4633): Gtk-WARNING **: 22:07:39.112: cannot open display: :0
/usr/bin/xdg-open: line 881: iceweasel: command not found
/usr/bin/xdg-open: line 881: seamonkey: command not found
/usr/bin/xdg-open: line 881: mozilla: command not found
No protocol specified
Unable to init server: Could not connect: Connection refused
Failed to parse arguments: Cannot open display:
/usr/bin/xdg-open: line 881: konqueror: command not found
/usr/bin/xdg-open: line 881: chromium: command not found
[4749:4749:0805/220740.485576:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
[4757:4757:0805/220740.725100:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
我安装了 chromium 和 xdg-utils,但都不起作用。
我怎样才能进入该服务,看看它是否有效?
正如你所看到的,它 是 试图启动浏览器,但是安装了它可以识别的 none,除了我会 guess 是 Chrome (因为可以看出 "chromium" 没有计算出来),并且正如消息所示,它没有容忍 运行 作为 root
.
那么,你想要的其实是:
minikube service --url sa-frontend-lb
这导致 minikube
打印 URL 而不是尝试使用 xdg-open 启动浏览器。