Xray Newbie- CLI的第一座码头扫描
我从Jfrog Xray开始。 我使用GitHub凭据在Jfrog Cloud平台上创建了一个帐户。 我为身份验证创建了一个身份令牌。
我有一个只有终端的Linux盒子(无GUI)。 因为我从Github下载了一个项目,并从源代码构建了Docker映像。 现在,我可以使用命令sudo docker图像查看图像。
现在,我使用命令安装了jfrog cli,因此
curl -fL https://getcli.jfrog.io\?setup | sh
安装了CLI,但是由于没有浏览器,因此与云的集成不会发生。
现在,我使用命令运行DOCKER扫描,
sudo jf docker scan <image-name> --url <url> --access-token <access-token>
我收到的错误如下所示
Get "api/v1/system/version": unsupported protocol scheme ""
。
谢谢
I'm starting with JFrog Xray.
I created an account on JFrog cloud platform using my Github credentials.
I created an identity token for authentication.
I have a linux box with only terminal (No GUI).
In that I downloaded a project from Github and built a docker image from the source code.
Now I can see the images using command sudo docker images.
Now I installed the JFrog CLI using command
curl -fL https://getcli.jfrog.io\?setup | sh
The cli gets installed but as there is no browser, the integration with cloud does not happen.
Now I run the docker scan using the command
sudo jf docker scan <image-name> --url <url> --access-token <access-token>
The error I receive is as below
Get "api/v1/system/version": unsupported protocol scheme ""
Any help/ guidance is sincerely appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
curl -fl https://getcli.jfrog.io?setup | SH
命令安装JFrog CLI,然后启动JF Setup
命令。JF设置
命令执行以下操作:由于您的Linux框不包含浏览器,因此我认为步骤#1失败。
虽然不用担心 - 由于免费的Jfrog环境的设置需要浏览器,这是您可以用来设置环境并在Linux框中使用它的方法:
这应该可以安装JFrog CLI并使用您的新Jfrog环境进行设置。
The
curl -fL https://getcli.jfrog.io?setup | sh
command installs JFrog CLI and then initiates thejf setup
command. Thejf setup
command does the following:Since your Linux box includes no browser, I assume step #1 fails.
No worries though - Since the set up of a free JFrog environment requires a browser, here's what you can do to set up an environment and use it on your Linux box:
This should get JFrog CLI installed and set up with your new JFrog environment.