如何在Ubuntu上安装hadolint

如何在Ubuntu上安装hadolint

本文介绍了如何在Ubuntu上安装hadolint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ubuntu的新手,并于3天前安装了它。

I am new to ubuntu and installed it 3 days ago.

我尝试了许多步骤,如

I tried many steps as told in https://github.com/hadolint/hadolint/

但它仍然表明:
hadolint:找不到命令

请参考安装hadolint

Refer to https://github.com/hadolint/hadolint/ for hadolint installation

我成功安装了hadolint在Windows中但不能在Linux上安装

I managed to install hadolint in windows but , can't install on linux

推荐答案

此代码有效并安装预构建的二进制文件:

This code works and installs the prebuilt binary file :

wget -O / bin / hadolint https://github.com/hadolint/hadolint/releases/download/v1.16.3/hadolint-Linux-x86_64

由于我是Ubuntu新手,所以我不知道这些基本命令

I didn't know these basic commands since I am new to Ubuntu

这篇关于如何在Ubuntu上安装hadolint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 07:14