🐳 Dockerfile Linter

detectDockerfilemost physical question,optimizeimage , containerSecureproperty
zerodependent·Pure FrontendLocalCheck·codenotUploadserver

📝 InputDockerfile

📁 dragDockerfiletothis ,orclickSelectfile

📋 record

No record

DockerfileChecktoolcan what?

DockerfileChecktoolis Free OnlineTools, open and person Fast Dockerfilein most physical question。ToolsbaseinDocker specificationandHadolintruleset,physicalwhendetectSecurevulnerability、imageVolumeoptimizeopportunityand question,let containerimagemoreSecure、morelight 、morehigh 。

feature

using

1. inInput PasteDockerfilecontent,ordragDockerfilefiletoUpload

2. click"Check"buttonorusingfast keyCtrl+EnterStartCheck

3. viewCheckResult:Quality separate、questionCount、concretebodyquestionlist

4. clickEachquestionviewdetaildescriptionand suggestion

5. click"Copy suggestion"willAll suggestionCopyto

6. using"loadshowexample"view Dockerfileand question

Applyscenario

scenario1:DevOps query

inCI/CDstream linein,DevOps usinglocalTools query Submit Dockerfile,confirmprotected combinedpublic Securespecificationandmost physical standard, notSecure imageenter 。

scenario2:imageVolumeoptimize

DockerimageVolumethroughbig,throughChecktool multiplelayerRUN NotMerge、Notcleanupaptcache、using ubuntu non-alpinebase imageetcquestion, afterimageVolumedecrease60%above。

scenario3:Secureaudit

Secure for containerenterrowaudit,usingChecktoolFast withrootRun、 22port、usinglatestlabeletcSecure ,Generatewholemodify single。

scenario4:open

Dockernewmanualthroughloadshowexample, common Dockerfileencodewriteerrorandmost physical ,Fast encodewritehighQualityDockerfile 。

extension

DockerfileisDocker image bluegraph, QualitydirectlyimpactcontainerSecureproperty、imageSizeand Speed。aboutkeymost physical including:usingmultiplephase decreasemostfinalimageSize;Selectalpineetc simplebase image;MergeRUN decreaseimagelayernumber;usingCOPY non-ADD outsideDecompress;Settingsnon-rootuserRunApply;Add.dockerignoresortdividedon't need file; setbase imageversionlabel non-usinglatest。 Thesephysical can containerSecurepropertyanddeploy 。

❓ DockerfileChecktoolcandetectwhichquestion?

candetect30+typeFAQ,including:usinglatestlabel、withrootuserRun、Notcleanupaptcache、multiplelayerRUN canMerge、COPYNotusing--chown、 fewHEALTHCHECK、usingADD non-COPY、NotSettingsWORKDIR、 notSecureportetc。

❓ Checkrule whatstandard?

rule Docker most physical textfileandHadolintruleset, Secureproperty、imageSizeoptimize、 、maintainabilityetc side。

❓ supportswhichDockerfile ?

supportsAllstandardDockerfile :FROM、RUN、CMD、LABEL、EXPOSE、ENV、ADD、COPY、ENTRYPOINT、VOLUME、USER、WORKDIR、ARG、ONBUILD、STOPSIGNAL、HEALTHCHECK、SHELLetc。

❓ CheckResultsuch ashowseparatelevel?

questionseparatefor etclevel:error(red ,mustmust ,impactSecureorfeature)、warning(yellow ,suggestion ,impactPerformanceormost physical )、info(blue ,optimizesuggestion, imageQuality)。

❓ DockerfilecodewillUploadtoserver??

notwill。AllChecklogical equalinBrowsetoolLocalExecute,Dockerfilecodenotwill open device,completefullprotected codeprivacy。

❓ such ashow detectto question?

Eachquestionall concretebody suggestionandcodeshowexample,clickquestioncanview beforeafter forthancode, keyCopy after code。

❓ can Checkmultiple Dockerfile??

supports。caninInput Pastemultiple Dockerfilecontent,Toolswill Analyze totalResult,alsocandragmultiple file Check。

DockerfileChecktool · Pure FrontendLocalprocess · Data notUploadserver

questionanti-feedback: dexshuang@google.com