v1.40.yaml 379 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533
  1. # A Swagger 2.0 (a.k.a. OpenAPI) definition of the Engine API.
  2. #
  3. # This is used for generating API documentation and the types used by the
  4. # client/server. See api/README.md for more information.
  5. #
  6. # Some style notes:
  7. # - This file is used by ReDoc, which allows GitHub Flavored Markdown in
  8. # descriptions.
  9. # - There is no maximum line length, for ease of editing and pretty diffs.
  10. # - operationIds are in the format "NounVerb", with a singular noun.
  11. swagger: "2.0"
  12. schemes:
  13. - "http"
  14. - "https"
  15. produces:
  16. - "application/json"
  17. - "text/plain"
  18. consumes:
  19. - "application/json"
  20. - "text/plain"
  21. basePath: "/v1.40"
  22. info:
  23. title: "Docker Engine API"
  24. version: "1.40"
  25. x-logo:
  26. url: "https://docs.docker.com/assets/images/logo-docker-main.png"
  27. description: |
  28. The Engine API is an HTTP API served by Docker Engine. It is the API the
  29. Docker client uses to communicate with the Engine, so everything the Docker
  30. client can do can be done with the API.
  31. Most of the client's commands map directly to API endpoints (e.g. `docker ps`
  32. is `GET /containers/json`). The notable exception is running containers,
  33. which consists of several API calls.
  34. # Errors
  35. The API uses standard HTTP status codes to indicate the success or failure
  36. of the API call. The body of the response will be JSON in the following
  37. format:
  38. ```
  39. {
  40. "message": "page not found"
  41. }
  42. ```
  43. # Versioning
  44. The API is usually changed in each release, so API calls are versioned to
  45. ensure that clients don't break. To lock to a specific version of the API,
  46. you prefix the URL with its version, for example, call `/v1.30/info` to use
  47. the v1.30 version of the `/info` endpoint. If the API version specified in
  48. the URL is not supported by the daemon, a HTTP `400 Bad Request` error message
  49. is returned.
  50. If you omit the version-prefix, the current version of the API (v1.40) is used.
  51. For example, calling `/info` is the same as calling `/v1.40/info`. Using the
  52. API without a version-prefix is deprecated and will be removed in a future release.
  53. Engine releases in the near future should support this version of the API,
  54. so your client will continue to work even if it is talking to a newer Engine.
  55. The API uses an open schema model, which means server may add extra properties
  56. to responses. Likewise, the server will ignore any extra query parameters and
  57. request body properties. When you write clients, you need to ignore additional
  58. properties in responses to ensure they do not break when talking to newer
  59. daemons.
  60. # Authentication
  61. Authentication for registries is handled client side. The client has to send
  62. authentication details to various endpoints that need to communicate with
  63. registries, such as `POST /images/(name)/push`. These are sent as
  64. `X-Registry-Auth` header as a [base64url encoded](https://tools.ietf.org/html/rfc4648#section-5)
  65. (JSON) string with the following structure:
  66. ```
  67. {
  68. "username": "string",
  69. "password": "string",
  70. "email": "string",
  71. "serveraddress": "string"
  72. }
  73. ```
  74. The `serveraddress` is a domain/IP without a protocol. Throughout this
  75. structure, double quotes are required.
  76. If you have already got an identity token from the [`/auth` endpoint](#operation/SystemAuth),
  77. you can just pass this instead of credentials:
  78. ```
  79. {
  80. "identitytoken": "9cbaf023786cd7..."
  81. }
  82. ```
  83. # The tags on paths define the menu sections in the ReDoc documentation, so
  84. # the usage of tags must make sense for that:
  85. # - They should be singular, not plural.
  86. # - There should not be too many tags, or the menu becomes unwieldy. For
  87. # example, it is preferable to add a path to the "System" tag instead of
  88. # creating a tag with a single path in it.
  89. # - The order of tags in this list defines the order in the menu.
  90. tags:
  91. # Primary objects
  92. - name: "Container"
  93. x-displayName: "Containers"
  94. description: |
  95. Create and manage containers.
  96. - name: "Image"
  97. x-displayName: "Images"
  98. - name: "Network"
  99. x-displayName: "Networks"
  100. description: |
  101. Networks are user-defined networks that containers can be attached to.
  102. See the [networking documentation](https://docs.docker.com/network/)
  103. for more information.
  104. - name: "Volume"
  105. x-displayName: "Volumes"
  106. description: |
  107. Create and manage persistent storage that can be attached to containers.
  108. - name: "Exec"
  109. x-displayName: "Exec"
  110. description: |
  111. Run new commands inside running containers. Refer to the
  112. [command-line reference](https://docs.docker.com/engine/reference/commandline/exec/)
  113. for more information.
  114. To exec a command in a container, you first need to create an exec instance,
  115. then start it. These two API endpoints are wrapped up in a single command-line
  116. command, `docker exec`.
  117. # Swarm things
  118. - name: "Swarm"
  119. x-displayName: "Swarm"
  120. description: |
  121. Engines can be clustered together in a swarm. Refer to the
  122. [swarm mode documentation](https://docs.docker.com/engine/swarm/)
  123. for more information.
  124. - name: "Node"
  125. x-displayName: "Nodes"
  126. description: |
  127. Nodes are instances of the Engine participating in a swarm. Swarm mode
  128. must be enabled for these endpoints to work.
  129. - name: "Service"
  130. x-displayName: "Services"
  131. description: |
  132. Services are the definitions of tasks to run on a swarm. Swarm mode must
  133. be enabled for these endpoints to work.
  134. - name: "Task"
  135. x-displayName: "Tasks"
  136. description: |
  137. A task is a container running on a swarm. It is the atomic scheduling unit
  138. of swarm. Swarm mode must be enabled for these endpoints to work.
  139. - name: "Secret"
  140. x-displayName: "Secrets"
  141. description: |
  142. Secrets are sensitive data that can be used by services. Swarm mode must
  143. be enabled for these endpoints to work.
  144. - name: "Config"
  145. x-displayName: "Configs"
  146. description: |
  147. Configs are application configurations that can be used by services. Swarm
  148. mode must be enabled for these endpoints to work.
  149. # System things
  150. - name: "Plugin"
  151. x-displayName: "Plugins"
  152. - name: "System"
  153. x-displayName: "System"
  154. definitions:
  155. Port:
  156. type: "object"
  157. description: "An open port on a container"
  158. required: [PrivatePort, Type]
  159. properties:
  160. IP:
  161. type: "string"
  162. format: "ip-address"
  163. description: "Host IP address that the container's port is mapped to"
  164. PrivatePort:
  165. type: "integer"
  166. format: "uint16"
  167. x-nullable: false
  168. description: "Port on the container"
  169. PublicPort:
  170. type: "integer"
  171. format: "uint16"
  172. description: "Port exposed on the host"
  173. Type:
  174. type: "string"
  175. x-nullable: false
  176. enum: ["tcp", "udp", "sctp"]
  177. example:
  178. PrivatePort: 8080
  179. PublicPort: 80
  180. Type: "tcp"
  181. MountPoint:
  182. type: "object"
  183. description: |
  184. MountPoint represents a mount point configuration inside the container.
  185. This is used for reporting the mountpoints in use by a container.
  186. properties:
  187. Type:
  188. description: |
  189. The mount type:
  190. - `bind` a mount of a file or directory from the host into the container.
  191. - `volume` a docker volume with the given `Name`.
  192. - `tmpfs` a `tmpfs`.
  193. - `npipe` a named pipe from the host into the container.
  194. type: "string"
  195. enum:
  196. - "bind"
  197. - "volume"
  198. - "tmpfs"
  199. - "npipe"
  200. example: "volume"
  201. Name:
  202. description: |
  203. Name is the name reference to the underlying data defined by `Source`
  204. e.g., the volume name.
  205. type: "string"
  206. example: "myvolume"
  207. Source:
  208. description: |
  209. Source location of the mount.
  210. For volumes, this contains the storage location of the volume (within
  211. `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
  212. the source (host) part of the bind-mount. For `tmpfs` mount points, this
  213. field is empty.
  214. type: "string"
  215. example: "/var/lib/docker/volumes/myvolume/_data"
  216. Destination:
  217. description: |
  218. Destination is the path relative to the container root (`/`) where
  219. the `Source` is mounted inside the container.
  220. type: "string"
  221. example: "/usr/share/nginx/html/"
  222. Driver:
  223. description: |
  224. Driver is the volume driver used to create the volume (if it is a volume).
  225. type: "string"
  226. example: "local"
  227. Mode:
  228. description: |
  229. Mode is a comma separated list of options supplied by the user when
  230. creating the bind/volume mount.
  231. The default is platform-specific (`"z"` on Linux, empty on Windows).
  232. type: "string"
  233. example: "z"
  234. RW:
  235. description: |
  236. Whether the mount is mounted writable (read-write).
  237. type: "boolean"
  238. example: true
  239. Propagation:
  240. description: |
  241. Propagation describes how mounts are propagated from the host into the
  242. mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
  243. for details. This field is not used on Windows.
  244. type: "string"
  245. example: ""
  246. DeviceMapping:
  247. type: "object"
  248. description: "A device mapping between the host and container"
  249. properties:
  250. PathOnHost:
  251. type: "string"
  252. PathInContainer:
  253. type: "string"
  254. CgroupPermissions:
  255. type: "string"
  256. example:
  257. PathOnHost: "/dev/deviceName"
  258. PathInContainer: "/dev/deviceName"
  259. CgroupPermissions: "mrw"
  260. DeviceRequest:
  261. type: "object"
  262. description: "A request for devices to be sent to device drivers"
  263. properties:
  264. Driver:
  265. type: "string"
  266. example: "nvidia"
  267. Count:
  268. type: "integer"
  269. example: -1
  270. DeviceIDs:
  271. type: "array"
  272. items:
  273. type: "string"
  274. example:
  275. - "0"
  276. - "1"
  277. - "GPU-fef8089b-4820-abfc-e83e-94318197576e"
  278. Capabilities:
  279. description: |
  280. A list of capabilities; an OR list of AND lists of capabilities.
  281. type: "array"
  282. items:
  283. type: "array"
  284. items:
  285. type: "string"
  286. example:
  287. # gpu AND nvidia AND compute
  288. - ["gpu", "nvidia", "compute"]
  289. Options:
  290. description: |
  291. Driver-specific options, specified as a key/value pairs. These options
  292. are passed directly to the driver.
  293. type: "object"
  294. additionalProperties:
  295. type: "string"
  296. ThrottleDevice:
  297. type: "object"
  298. properties:
  299. Path:
  300. description: "Device path"
  301. type: "string"
  302. Rate:
  303. description: "Rate"
  304. type: "integer"
  305. format: "int64"
  306. minimum: 0
  307. Mount:
  308. type: "object"
  309. properties:
  310. Target:
  311. description: "Container path."
  312. type: "string"
  313. Source:
  314. description: "Mount source (e.g. a volume name, a host path)."
  315. type: "string"
  316. Type:
  317. description: |
  318. The mount type. Available types:
  319. - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container.
  320. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed.
  321. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.
  322. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container.
  323. type: "string"
  324. enum:
  325. - "bind"
  326. - "volume"
  327. - "tmpfs"
  328. - "npipe"
  329. ReadOnly:
  330. description: "Whether the mount should be read-only."
  331. type: "boolean"
  332. Consistency:
  333. description: "The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`."
  334. type: "string"
  335. BindOptions:
  336. description: "Optional configuration for the `bind` type."
  337. type: "object"
  338. properties:
  339. Propagation:
  340. description: "A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`."
  341. type: "string"
  342. enum:
  343. - "private"
  344. - "rprivate"
  345. - "shared"
  346. - "rshared"
  347. - "slave"
  348. - "rslave"
  349. NonRecursive:
  350. description: "Disable recursive bind mount."
  351. type: "boolean"
  352. default: false
  353. VolumeOptions:
  354. description: "Optional configuration for the `volume` type."
  355. type: "object"
  356. properties:
  357. NoCopy:
  358. description: "Populate volume with data from the target."
  359. type: "boolean"
  360. default: false
  361. Labels:
  362. description: "User-defined key/value metadata."
  363. type: "object"
  364. additionalProperties:
  365. type: "string"
  366. DriverConfig:
  367. description: "Map of driver specific options"
  368. type: "object"
  369. properties:
  370. Name:
  371. description: "Name of the driver to use to create the volume."
  372. type: "string"
  373. Options:
  374. description: "key/value map of driver specific options."
  375. type: "object"
  376. additionalProperties:
  377. type: "string"
  378. TmpfsOptions:
  379. description: "Optional configuration for the `tmpfs` type."
  380. type: "object"
  381. properties:
  382. SizeBytes:
  383. description: "The size for the tmpfs mount in bytes."
  384. type: "integer"
  385. format: "int64"
  386. Mode:
  387. description: "The permission mode for the tmpfs mount in an integer."
  388. type: "integer"
  389. RestartPolicy:
  390. description: |
  391. The behavior to apply when the container exits. The default is not to
  392. restart.
  393. An ever increasing delay (double the previous delay, starting at 100ms) is
  394. added before each restart to prevent flooding the server.
  395. type: "object"
  396. properties:
  397. Name:
  398. type: "string"
  399. description: |
  400. - Empty string means not to restart
  401. - `no` Do not automatically restart
  402. - `always` Always restart
  403. - `unless-stopped` Restart always except when the user has manually stopped the container
  404. - `on-failure` Restart only when the container exit code is non-zero
  405. enum:
  406. - ""
  407. - "no"
  408. - "always"
  409. - "unless-stopped"
  410. - "on-failure"
  411. MaximumRetryCount:
  412. type: "integer"
  413. description: |
  414. If `on-failure` is used, the number of times to retry before giving up.
  415. Resources:
  416. description: "A container's resources (cgroups config, ulimits, etc)"
  417. type: "object"
  418. properties:
  419. # Applicable to all platforms
  420. CpuShares:
  421. description: |
  422. An integer value representing this container's relative CPU weight
  423. versus other containers.
  424. type: "integer"
  425. Memory:
  426. description: "Memory limit in bytes."
  427. type: "integer"
  428. format: "int64"
  429. default: 0
  430. # Applicable to UNIX platforms
  431. CgroupParent:
  432. description: |
  433. Path to `cgroups` under which the container's `cgroup` is created. If
  434. the path is not absolute, the path is considered to be relative to the
  435. `cgroups` path of the init process. Cgroups are created if they do not
  436. already exist.
  437. type: "string"
  438. BlkioWeight:
  439. description: "Block IO weight (relative weight)."
  440. type: "integer"
  441. minimum: 0
  442. maximum: 1000
  443. BlkioWeightDevice:
  444. description: |
  445. Block IO weight (relative device weight) in the form:
  446. ```
  447. [{"Path": "device_path", "Weight": weight}]
  448. ```
  449. type: "array"
  450. items:
  451. type: "object"
  452. properties:
  453. Path:
  454. type: "string"
  455. Weight:
  456. type: "integer"
  457. minimum: 0
  458. BlkioDeviceReadBps:
  459. description: |
  460. Limit read rate (bytes per second) from a device, in the form:
  461. ```
  462. [{"Path": "device_path", "Rate": rate}]
  463. ```
  464. type: "array"
  465. items:
  466. $ref: "#/definitions/ThrottleDevice"
  467. BlkioDeviceWriteBps:
  468. description: |
  469. Limit write rate (bytes per second) to a device, in the form:
  470. ```
  471. [{"Path": "device_path", "Rate": rate}]
  472. ```
  473. type: "array"
  474. items:
  475. $ref: "#/definitions/ThrottleDevice"
  476. BlkioDeviceReadIOps:
  477. description: |
  478. Limit read rate (IO per second) from a device, in the form:
  479. ```
  480. [{"Path": "device_path", "Rate": rate}]
  481. ```
  482. type: "array"
  483. items:
  484. $ref: "#/definitions/ThrottleDevice"
  485. BlkioDeviceWriteIOps:
  486. description: |
  487. Limit write rate (IO per second) to a device, in the form:
  488. ```
  489. [{"Path": "device_path", "Rate": rate}]
  490. ```
  491. type: "array"
  492. items:
  493. $ref: "#/definitions/ThrottleDevice"
  494. CpuPeriod:
  495. description: "The length of a CPU period in microseconds."
  496. type: "integer"
  497. format: "int64"
  498. CpuQuota:
  499. description: |
  500. Microseconds of CPU time that the container can get in a CPU period.
  501. type: "integer"
  502. format: "int64"
  503. CpuRealtimePeriod:
  504. description: |
  505. The length of a CPU real-time period in microseconds. Set to 0 to
  506. allocate no time allocated to real-time tasks.
  507. type: "integer"
  508. format: "int64"
  509. CpuRealtimeRuntime:
  510. description: |
  511. The length of a CPU real-time runtime in microseconds. Set to 0 to
  512. allocate no time allocated to real-time tasks.
  513. type: "integer"
  514. format: "int64"
  515. CpusetCpus:
  516. description: |
  517. CPUs in which to allow execution (e.g., `0-3`, `0,1`).
  518. type: "string"
  519. example: "0-3"
  520. CpusetMems:
  521. description: |
  522. Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only
  523. effective on NUMA systems.
  524. type: "string"
  525. Devices:
  526. description: "A list of devices to add to the container."
  527. type: "array"
  528. items:
  529. $ref: "#/definitions/DeviceMapping"
  530. DeviceCgroupRules:
  531. description: "a list of cgroup rules to apply to the container"
  532. type: "array"
  533. items:
  534. type: "string"
  535. example: "c 13:* rwm"
  536. DeviceRequests:
  537. description: |
  538. A list of requests for devices to be sent to device drivers.
  539. type: "array"
  540. items:
  541. $ref: "#/definitions/DeviceRequest"
  542. KernelMemory:
  543. description: "Kernel memory limit in bytes."
  544. type: "integer"
  545. format: "int64"
  546. example: 209715200
  547. KernelMemoryTCP:
  548. description: "Hard limit for kernel TCP buffer memory (in bytes)."
  549. type: "integer"
  550. format: "int64"
  551. MemoryReservation:
  552. description: "Memory soft limit in bytes."
  553. type: "integer"
  554. format: "int64"
  555. MemorySwap:
  556. description: |
  557. Total memory limit (memory + swap). Set as `-1` to enable unlimited
  558. swap.
  559. type: "integer"
  560. format: "int64"
  561. MemorySwappiness:
  562. description: |
  563. Tune a container's memory swappiness behavior. Accepts an integer
  564. between 0 and 100.
  565. type: "integer"
  566. format: "int64"
  567. minimum: 0
  568. maximum: 100
  569. NanoCpus:
  570. description: "CPU quota in units of 10<sup>-9</sup> CPUs."
  571. type: "integer"
  572. format: "int64"
  573. OomKillDisable:
  574. description: "Disable OOM Killer for the container."
  575. type: "boolean"
  576. Init:
  577. description: |
  578. Run an init inside the container that forwards signals and reaps
  579. processes. This field is omitted if empty, and the default (as
  580. configured on the daemon) is used.
  581. type: "boolean"
  582. x-nullable: true
  583. PidsLimit:
  584. description: |
  585. Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
  586. to not change.
  587. type: "integer"
  588. format: "int64"
  589. x-nullable: true
  590. Ulimits:
  591. description: |
  592. A list of resource limits to set in the container. For example:
  593. ```
  594. {"Name": "nofile", "Soft": 1024, "Hard": 2048}
  595. ```
  596. type: "array"
  597. items:
  598. type: "object"
  599. properties:
  600. Name:
  601. description: "Name of ulimit"
  602. type: "string"
  603. Soft:
  604. description: "Soft limit"
  605. type: "integer"
  606. Hard:
  607. description: "Hard limit"
  608. type: "integer"
  609. # Applicable to Windows
  610. CpuCount:
  611. description: |
  612. The number of usable CPUs (Windows only).
  613. On Windows Server containers, the processor resource controls are
  614. mutually exclusive. The order of precedence is `CPUCount` first, then
  615. `CPUShares`, and `CPUPercent` last.
  616. type: "integer"
  617. format: "int64"
  618. CpuPercent:
  619. description: |
  620. The usable percentage of the available CPUs (Windows only).
  621. On Windows Server containers, the processor resource controls are
  622. mutually exclusive. The order of precedence is `CPUCount` first, then
  623. `CPUShares`, and `CPUPercent` last.
  624. type: "integer"
  625. format: "int64"
  626. IOMaximumIOps:
  627. description: "Maximum IOps for the container system drive (Windows only)"
  628. type: "integer"
  629. format: "int64"
  630. IOMaximumBandwidth:
  631. description: |
  632. Maximum IO in bytes per second for the container system drive
  633. (Windows only).
  634. type: "integer"
  635. format: "int64"
  636. ResourceObject:
  637. description: |
  638. An object describing the resources which can be advertised by a node and
  639. requested by a task.
  640. type: "object"
  641. properties:
  642. NanoCPUs:
  643. type: "integer"
  644. format: "int64"
  645. example: 4000000000
  646. MemoryBytes:
  647. type: "integer"
  648. format: "int64"
  649. example: 8272408576
  650. GenericResources:
  651. $ref: "#/definitions/GenericResources"
  652. GenericResources:
  653. description: |
  654. User-defined resources can be either Integer resources (e.g, `SSD=3`) or
  655. String resources (e.g, `GPU=UUID1`).
  656. type: "array"
  657. items:
  658. type: "object"
  659. properties:
  660. NamedResourceSpec:
  661. type: "object"
  662. properties:
  663. Kind:
  664. type: "string"
  665. Value:
  666. type: "string"
  667. DiscreteResourceSpec:
  668. type: "object"
  669. properties:
  670. Kind:
  671. type: "string"
  672. Value:
  673. type: "integer"
  674. format: "int64"
  675. example:
  676. - DiscreteResourceSpec:
  677. Kind: "SSD"
  678. Value: 3
  679. - NamedResourceSpec:
  680. Kind: "GPU"
  681. Value: "UUID1"
  682. - NamedResourceSpec:
  683. Kind: "GPU"
  684. Value: "UUID2"
  685. HealthConfig:
  686. description: "A test to perform to check that the container is healthy."
  687. type: "object"
  688. properties:
  689. Test:
  690. description: |
  691. The test to perform. Possible values are:
  692. - `[]` inherit healthcheck from image or parent image
  693. - `["NONE"]` disable healthcheck
  694. - `["CMD", args...]` exec arguments directly
  695. - `["CMD-SHELL", command]` run command with system's default shell
  696. type: "array"
  697. items:
  698. type: "string"
  699. Interval:
  700. description: |
  701. The time to wait between checks in nanoseconds. It should be 0 or at
  702. least 1000000 (1 ms). 0 means inherit.
  703. type: "integer"
  704. format: "int64"
  705. Timeout:
  706. description: |
  707. The time to wait before considering the check to have hung. It should
  708. be 0 or at least 1000000 (1 ms). 0 means inherit.
  709. type: "integer"
  710. format: "int64"
  711. Retries:
  712. description: |
  713. The number of consecutive failures needed to consider a container as
  714. unhealthy. 0 means inherit.
  715. type: "integer"
  716. StartPeriod:
  717. description: |
  718. Start period for the container to initialize before starting
  719. health-retries countdown in nanoseconds. It should be 0 or at least
  720. 1000000 (1 ms). 0 means inherit.
  721. type: "integer"
  722. format: "int64"
  723. Health:
  724. description: |
  725. Health stores information about the container's healthcheck results.
  726. type: "object"
  727. x-nullable: true
  728. properties:
  729. Status:
  730. description: |
  731. Status is one of `none`, `starting`, `healthy` or `unhealthy`
  732. - "none" Indicates there is no healthcheck
  733. - "starting" Starting indicates that the container is not yet ready
  734. - "healthy" Healthy indicates that the container is running correctly
  735. - "unhealthy" Unhealthy indicates that the container has a problem
  736. type: "string"
  737. enum:
  738. - "none"
  739. - "starting"
  740. - "healthy"
  741. - "unhealthy"
  742. example: "healthy"
  743. FailingStreak:
  744. description: "FailingStreak is the number of consecutive failures"
  745. type: "integer"
  746. example: 0
  747. Log:
  748. type: "array"
  749. description: |
  750. Log contains the last few results (oldest first)
  751. items:
  752. $ref: "#/definitions/HealthcheckResult"
  753. HealthcheckResult:
  754. description: |
  755. HealthcheckResult stores information about a single run of a healthcheck probe
  756. type: "object"
  757. x-nullable: true
  758. properties:
  759. Start:
  760. description: |
  761. Date and time at which this check started in
  762. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  763. type: "string"
  764. format: "date-time"
  765. example: "2020-01-04T10:44:24.496525531Z"
  766. End:
  767. description: |
  768. Date and time at which this check ended in
  769. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  770. type: "string"
  771. format: "dateTime"
  772. example: "2020-01-04T10:45:21.364524523Z"
  773. ExitCode:
  774. description: |
  775. ExitCode meanings:
  776. - `0` healthy
  777. - `1` unhealthy
  778. - `2` reserved (considered unhealthy)
  779. - other values: error running probe
  780. type: "integer"
  781. example: 0
  782. Output:
  783. description: "Output from last check"
  784. type: "string"
  785. HostConfig:
  786. description: "Container configuration that depends on the host we are running on"
  787. allOf:
  788. - $ref: "#/definitions/Resources"
  789. - type: "object"
  790. properties:
  791. # Applicable to all platforms
  792. Binds:
  793. type: "array"
  794. description: |
  795. A list of volume bindings for this container. Each volume binding
  796. is a string in one of these forms:
  797. - `host-src:container-dest[:options]` to bind-mount a host path
  798. into the container. Both `host-src`, and `container-dest` must
  799. be an _absolute_ path.
  800. - `volume-name:container-dest[:options]` to bind-mount a volume
  801. managed by a volume driver into the container. `container-dest`
  802. must be an _absolute_ path.
  803. `options` is an optional, comma-delimited list of:
  804. - `nocopy` disables automatic copying of data from the container
  805. path to the volume. The `nocopy` flag only applies to named volumes.
  806. - `[ro|rw]` mounts a volume read-only or read-write, respectively.
  807. If omitted or set to `rw`, volumes are mounted read-write.
  808. - `[z|Z]` applies SELinux labels to allow or deny multiple containers
  809. to read and write to the same volume.
  810. - `z`: a _shared_ content label is applied to the content. This
  811. label indicates that multiple containers can share the volume
  812. content, for both reading and writing.
  813. - `Z`: a _private unshared_ label is applied to the content.
  814. This label indicates that only the current container can use
  815. a private volume. Labeling systems such as SELinux require
  816. proper labels to be placed on volume content that is mounted
  817. into a container. Without a label, the security system can
  818. prevent a container's processes from using the content. By
  819. default, the labels set by the host operating system are not
  820. modified.
  821. - `[[r]shared|[r]slave|[r]private]` specifies mount
  822. [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt).
  823. This only applies to bind-mounted volumes, not internal volumes
  824. or named volumes. Mount propagation requires the source mount
  825. point (the location where the source directory is mounted in the
  826. host operating system) to have the correct propagation properties.
  827. For shared volumes, the source mount point must be set to `shared`.
  828. For slave volumes, the mount must be set to either `shared` or
  829. `slave`.
  830. items:
  831. type: "string"
  832. ContainerIDFile:
  833. type: "string"
  834. description: "Path to a file where the container ID is written"
  835. LogConfig:
  836. type: "object"
  837. description: "The logging configuration for this container"
  838. properties:
  839. Type:
  840. type: "string"
  841. enum:
  842. - "json-file"
  843. - "syslog"
  844. - "journald"
  845. - "gelf"
  846. - "fluentd"
  847. - "awslogs"
  848. - "splunk"
  849. - "etwlogs"
  850. - "none"
  851. Config:
  852. type: "object"
  853. additionalProperties:
  854. type: "string"
  855. NetworkMode:
  856. type: "string"
  857. description: |
  858. Network mode to use for this container. Supported standard values
  859. are: `bridge`, `host`, `none`, and `container:<name|id>`. Any
  860. other value is taken as a custom network's name to which this
  861. container should connect to.
  862. PortBindings:
  863. $ref: "#/definitions/PortMap"
  864. RestartPolicy:
  865. $ref: "#/definitions/RestartPolicy"
  866. AutoRemove:
  867. type: "boolean"
  868. description: |
  869. Automatically remove the container when the container's process
  870. exits. This has no effect if `RestartPolicy` is set.
  871. VolumeDriver:
  872. type: "string"
  873. description: "Driver that this container uses to mount volumes."
  874. VolumesFrom:
  875. type: "array"
  876. description: |
  877. A list of volumes to inherit from another container, specified in
  878. the form `<container name>[:<ro|rw>]`.
  879. items:
  880. type: "string"
  881. Mounts:
  882. description: |
  883. Specification for mounts to be added to the container.
  884. type: "array"
  885. items:
  886. $ref: "#/definitions/Mount"
  887. # Applicable to UNIX platforms
  888. Capabilities:
  889. type: "array"
  890. description: |
  891. A list of kernel capabilities to be available for container (this
  892. overrides the default set).
  893. Conflicts with options 'CapAdd' and 'CapDrop'"
  894. items:
  895. type: "string"
  896. CapAdd:
  897. type: "array"
  898. description: |
  899. A list of kernel capabilities to add to the container. Conflicts
  900. with option 'Capabilities'.
  901. items:
  902. type: "string"
  903. CapDrop:
  904. type: "array"
  905. description: |
  906. A list of kernel capabilities to drop from the container. Conflicts
  907. with option 'Capabilities'.
  908. items:
  909. type: "string"
  910. Dns:
  911. type: "array"
  912. description: "A list of DNS servers for the container to use."
  913. items:
  914. type: "string"
  915. DnsOptions:
  916. type: "array"
  917. description: "A list of DNS options."
  918. items:
  919. type: "string"
  920. DnsSearch:
  921. type: "array"
  922. description: "A list of DNS search domains."
  923. items:
  924. type: "string"
  925. ExtraHosts:
  926. type: "array"
  927. description: |
  928. A list of hostnames/IP mappings to add to the container's `/etc/hosts`
  929. file. Specified in the form `["hostname:IP"]`.
  930. items:
  931. type: "string"
  932. GroupAdd:
  933. type: "array"
  934. description: |
  935. A list of additional groups that the container process will run as.
  936. items:
  937. type: "string"
  938. IpcMode:
  939. type: "string"
  940. description: |
  941. IPC sharing mode for the container. Possible values are:
  942. - `"none"`: own private IPC namespace, with /dev/shm not mounted
  943. - `"private"`: own private IPC namespace
  944. - `"shareable"`: own private IPC namespace, with a possibility to share it with other containers
  945. - `"container:<name|id>"`: join another (shareable) container's IPC namespace
  946. - `"host"`: use the host system's IPC namespace
  947. If not specified, daemon default is used, which can either be `"private"`
  948. or `"shareable"`, depending on daemon version and configuration.
  949. Cgroup:
  950. type: "string"
  951. description: "Cgroup to use for the container."
  952. Links:
  953. type: "array"
  954. description: |
  955. A list of links for the container in the form `container_name:alias`.
  956. items:
  957. type: "string"
  958. OomScoreAdj:
  959. type: "integer"
  960. description: |
  961. An integer value containing the score given to the container in
  962. order to tune OOM killer preferences.
  963. example: 500
  964. PidMode:
  965. type: "string"
  966. description: |
  967. Set the PID (Process) Namespace mode for the container. It can be
  968. either:
  969. - `"container:<name|id>"`: joins another container's PID namespace
  970. - `"host"`: use the host's PID namespace inside the container
  971. Privileged:
  972. type: "boolean"
  973. description: "Gives the container full access to the host."
  974. PublishAllPorts:
  975. type: "boolean"
  976. description: |
  977. Allocates an ephemeral host port for all of a container's
  978. exposed ports.
  979. Ports are de-allocated when the container stops and allocated when
  980. the container starts. The allocated port might be changed when
  981. restarting the container.
  982. The port is selected from the ephemeral port range that depends on
  983. the kernel. For example, on Linux the range is defined by
  984. `/proc/sys/net/ipv4/ip_local_port_range`.
  985. ReadonlyRootfs:
  986. type: "boolean"
  987. description: "Mount the container's root filesystem as read only."
  988. SecurityOpt:
  989. type: "array"
  990. description: |
  991. A list of string values to customize labels for MLS systems, such
  992. as SELinux.
  993. items:
  994. type: "string"
  995. StorageOpt:
  996. type: "object"
  997. description: |
  998. Storage driver options for this container, in the form `{"size": "120G"}`.
  999. additionalProperties:
  1000. type: "string"
  1001. Tmpfs:
  1002. type: "object"
  1003. description: |
  1004. A map of container directories which should be replaced by tmpfs
  1005. mounts, and their corresponding mount options. For example:
  1006. ```
  1007. { "/run": "rw,noexec,nosuid,size=65536k" }
  1008. ```
  1009. additionalProperties:
  1010. type: "string"
  1011. UTSMode:
  1012. type: "string"
  1013. description: "UTS namespace to use for the container."
  1014. UsernsMode:
  1015. type: "string"
  1016. description: |
  1017. Sets the usernamespace mode for the container when usernamespace
  1018. remapping option is enabled.
  1019. ShmSize:
  1020. type: "integer"
  1021. format: "int64"
  1022. description: |
  1023. Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
  1024. minimum: 0
  1025. Sysctls:
  1026. type: "object"
  1027. description: |
  1028. A list of kernel parameters (sysctls) to set in the container.
  1029. For example:
  1030. ```
  1031. {"net.ipv4.ip_forward": "1"}
  1032. ```
  1033. additionalProperties:
  1034. type: "string"
  1035. Runtime:
  1036. type: "string"
  1037. description: "Runtime to use with this container."
  1038. # Applicable to Windows
  1039. ConsoleSize:
  1040. type: "array"
  1041. description: |
  1042. Initial console size, as an `[height, width]` array. (Windows only)
  1043. minItems: 2
  1044. maxItems: 2
  1045. items:
  1046. type: "integer"
  1047. minimum: 0
  1048. Isolation:
  1049. type: "string"
  1050. description: |
  1051. Isolation technology of the container. (Windows only)
  1052. enum:
  1053. - "default"
  1054. - "process"
  1055. - "hyperv"
  1056. MaskedPaths:
  1057. type: "array"
  1058. description: |
  1059. The list of paths to be masked inside the container (this overrides
  1060. the default set of paths).
  1061. items:
  1062. type: "string"
  1063. ReadonlyPaths:
  1064. type: "array"
  1065. description: |
  1066. The list of paths to be set as read-only inside the container
  1067. (this overrides the default set of paths).
  1068. items:
  1069. type: "string"
  1070. ContainerConfig:
  1071. description: |
  1072. Configuration for a container that is portable between hosts.
  1073. When used as `ContainerConfig` field in an image, `ContainerConfig` is an
  1074. optional field containing the configuration of the container that was last
  1075. committed when creating the image.
  1076. Previous versions of Docker builder used this field to store build cache,
  1077. and it is not in active use anymore.
  1078. type: "object"
  1079. properties:
  1080. Hostname:
  1081. description: |
  1082. The hostname to use for the container, as a valid RFC 1123 hostname.
  1083. type: "string"
  1084. example: "439f4e91bd1d"
  1085. Domainname:
  1086. description: |
  1087. The domain name to use for the container.
  1088. type: "string"
  1089. User:
  1090. description: "The user that commands are run as inside the container."
  1091. type: "string"
  1092. AttachStdin:
  1093. description: "Whether to attach to `stdin`."
  1094. type: "boolean"
  1095. default: false
  1096. AttachStdout:
  1097. description: "Whether to attach to `stdout`."
  1098. type: "boolean"
  1099. default: true
  1100. AttachStderr:
  1101. description: "Whether to attach to `stderr`."
  1102. type: "boolean"
  1103. default: true
  1104. ExposedPorts:
  1105. description: |
  1106. An object mapping ports to an empty object in the form:
  1107. `{"<port>/<tcp|udp|sctp>": {}}`
  1108. type: "object"
  1109. x-nullable: true
  1110. additionalProperties:
  1111. type: "object"
  1112. enum:
  1113. - {}
  1114. default: {}
  1115. example: {
  1116. "80/tcp": {},
  1117. "443/tcp": {}
  1118. }
  1119. Tty:
  1120. description: |
  1121. Attach standard streams to a TTY, including `stdin` if it is not closed.
  1122. type: "boolean"
  1123. default: false
  1124. OpenStdin:
  1125. description: "Open `stdin`"
  1126. type: "boolean"
  1127. default: false
  1128. StdinOnce:
  1129. description: "Close `stdin` after one attached client disconnects"
  1130. type: "boolean"
  1131. default: false
  1132. Env:
  1133. description: |
  1134. A list of environment variables to set inside the container in the
  1135. form `["VAR=value", ...]`. A variable without `=` is removed from the
  1136. environment, rather than to have an empty value.
  1137. type: "array"
  1138. items:
  1139. type: "string"
  1140. example:
  1141. - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  1142. Cmd:
  1143. description: |
  1144. Command to run specified as a string or an array of strings.
  1145. type: "array"
  1146. items:
  1147. type: "string"
  1148. example: ["/bin/sh"]
  1149. Healthcheck:
  1150. $ref: "#/definitions/HealthConfig"
  1151. ArgsEscaped:
  1152. description: "Command is already escaped (Windows only)"
  1153. type: "boolean"
  1154. default: false
  1155. example: false
  1156. x-nullable: true
  1157. Image:
  1158. description: |
  1159. The name (or reference) of the image to use when creating the container,
  1160. or which was used when the container was created.
  1161. type: "string"
  1162. example: "example-image:1.0"
  1163. Volumes:
  1164. description: |
  1165. An object mapping mount point paths inside the container to empty
  1166. objects.
  1167. type: "object"
  1168. additionalProperties:
  1169. type: "object"
  1170. enum:
  1171. - {}
  1172. default: {}
  1173. WorkingDir:
  1174. description: "The working directory for commands to run in."
  1175. type: "string"
  1176. example: "/public/"
  1177. Entrypoint:
  1178. description: |
  1179. The entry point for the container as a string or an array of strings.
  1180. If the array consists of exactly one empty string (`[""]`) then the
  1181. entry point is reset to system default (i.e., the entry point used by
  1182. docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
  1183. type: "array"
  1184. items:
  1185. type: "string"
  1186. example: []
  1187. NetworkDisabled:
  1188. description: "Disable networking for the container."
  1189. type: "boolean"
  1190. x-nullable: true
  1191. MacAddress:
  1192. description: "MAC address of the container."
  1193. type: "string"
  1194. x-nullable: true
  1195. OnBuild:
  1196. description: |
  1197. `ONBUILD` metadata that were defined in the image's `Dockerfile`.
  1198. type: "array"
  1199. x-nullable: true
  1200. items:
  1201. type: "string"
  1202. example: []
  1203. Labels:
  1204. description: "User-defined key/value metadata."
  1205. type: "object"
  1206. additionalProperties:
  1207. type: "string"
  1208. example:
  1209. com.example.some-label: "some-value"
  1210. com.example.some-other-label: "some-other-value"
  1211. StopSignal:
  1212. description: |
  1213. Signal to stop a container as a string or unsigned integer.
  1214. type: "string"
  1215. example: "SIGTERM"
  1216. x-nullable: true
  1217. StopTimeout:
  1218. description: "Timeout to stop a container in seconds."
  1219. type: "integer"
  1220. default: 10
  1221. x-nullable: true
  1222. Shell:
  1223. description: |
  1224. Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
  1225. type: "array"
  1226. x-nullable: true
  1227. items:
  1228. type: "string"
  1229. example: ["/bin/sh", "-c"]
  1230. NetworkingConfig:
  1231. description: |
  1232. NetworkingConfig represents the container's networking configuration for
  1233. each of its interfaces.
  1234. It is used for the networking configs specified in the `docker create`
  1235. and `docker network connect` commands.
  1236. type: "object"
  1237. properties:
  1238. EndpointsConfig:
  1239. description: |
  1240. A mapping of network name to endpoint configuration for that network.
  1241. type: "object"
  1242. additionalProperties:
  1243. $ref: "#/definitions/EndpointSettings"
  1244. example:
  1245. # putting an example here, instead of using the example values from
  1246. # /definitions/EndpointSettings, because containers/create currently
  1247. # does not support attaching to multiple networks, so the example request
  1248. # would be confusing if it showed that multiple networks can be contained
  1249. # in the EndpointsConfig.
  1250. # TODO remove once we support multiple networks on container create (see https://github.com/moby/moby/blob/07e6b843594e061f82baa5fa23c2ff7d536c2a05/daemon/create.go#L323)
  1251. EndpointsConfig:
  1252. isolated_nw:
  1253. IPAMConfig:
  1254. IPv4Address: "172.20.30.33"
  1255. IPv6Address: "2001:db8:abcd::3033"
  1256. LinkLocalIPs:
  1257. - "169.254.34.68"
  1258. - "fe80::3468"
  1259. Links:
  1260. - "container_1"
  1261. - "container_2"
  1262. Aliases:
  1263. - "server_x"
  1264. - "server_y"
  1265. NetworkSettings:
  1266. description: "NetworkSettings exposes the network settings in the API"
  1267. type: "object"
  1268. properties:
  1269. Bridge:
  1270. description: Name of the network's bridge (for example, `docker0`).
  1271. type: "string"
  1272. example: "docker0"
  1273. SandboxID:
  1274. description: SandboxID uniquely represents a container's network stack.
  1275. type: "string"
  1276. example: "9d12daf2c33f5959c8bf90aa513e4f65b561738661003029ec84830cd503a0c3"
  1277. HairpinMode:
  1278. description: |
  1279. Indicates if hairpin NAT should be enabled on the virtual interface.
  1280. type: "boolean"
  1281. example: false
  1282. LinkLocalIPv6Address:
  1283. description: IPv6 unicast address using the link-local prefix.
  1284. type: "string"
  1285. example: "fe80::42:acff:fe11:1"
  1286. LinkLocalIPv6PrefixLen:
  1287. description: Prefix length of the IPv6 unicast address.
  1288. type: "integer"
  1289. example: "64"
  1290. Ports:
  1291. $ref: "#/definitions/PortMap"
  1292. SandboxKey:
  1293. description: SandboxKey identifies the sandbox
  1294. type: "string"
  1295. example: "/var/run/docker/netns/8ab54b426c38"
  1296. # TODO is SecondaryIPAddresses actually used?
  1297. SecondaryIPAddresses:
  1298. description: ""
  1299. type: "array"
  1300. items:
  1301. $ref: "#/definitions/Address"
  1302. x-nullable: true
  1303. # TODO is SecondaryIPv6Addresses actually used?
  1304. SecondaryIPv6Addresses:
  1305. description: ""
  1306. type: "array"
  1307. items:
  1308. $ref: "#/definitions/Address"
  1309. x-nullable: true
  1310. # TODO properties below are part of DefaultNetworkSettings, which is
  1311. # marked as deprecated since Docker 1.9 and to be removed in Docker v17.12
  1312. EndpointID:
  1313. description: |
  1314. EndpointID uniquely represents a service endpoint in a Sandbox.
  1315. <p><br /></p>
  1316. > **Deprecated**: This field is only propagated when attached to the
  1317. > default "bridge" network. Use the information from the "bridge"
  1318. > network inside the `Networks` map instead, which contains the same
  1319. > information. This field was deprecated in Docker 1.9 and is scheduled
  1320. > to be removed in Docker 17.12.0
  1321. type: "string"
  1322. example: "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b"
  1323. Gateway:
  1324. description: |
  1325. Gateway address for the default "bridge" network.
  1326. <p><br /></p>
  1327. > **Deprecated**: This field is only propagated when attached to the
  1328. > default "bridge" network. Use the information from the "bridge"
  1329. > network inside the `Networks` map instead, which contains the same
  1330. > information. This field was deprecated in Docker 1.9 and is scheduled
  1331. > to be removed in Docker 17.12.0
  1332. type: "string"
  1333. example: "172.17.0.1"
  1334. GlobalIPv6Address:
  1335. description: |
  1336. Global IPv6 address for the default "bridge" network.
  1337. <p><br /></p>
  1338. > **Deprecated**: This field is only propagated when attached to the
  1339. > default "bridge" network. Use the information from the "bridge"
  1340. > network inside the `Networks` map instead, which contains the same
  1341. > information. This field was deprecated in Docker 1.9 and is scheduled
  1342. > to be removed in Docker 17.12.0
  1343. type: "string"
  1344. example: "2001:db8::5689"
  1345. GlobalIPv6PrefixLen:
  1346. description: |
  1347. Mask length of the global IPv6 address.
  1348. <p><br /></p>
  1349. > **Deprecated**: This field is only propagated when attached to the
  1350. > default "bridge" network. Use the information from the "bridge"
  1351. > network inside the `Networks` map instead, which contains the same
  1352. > information. This field was deprecated in Docker 1.9 and is scheduled
  1353. > to be removed in Docker 17.12.0
  1354. type: "integer"
  1355. example: 64
  1356. IPAddress:
  1357. description: |
  1358. IPv4 address for the default "bridge" network.
  1359. <p><br /></p>
  1360. > **Deprecated**: This field is only propagated when attached to the
  1361. > default "bridge" network. Use the information from the "bridge"
  1362. > network inside the `Networks` map instead, which contains the same
  1363. > information. This field was deprecated in Docker 1.9 and is scheduled
  1364. > to be removed in Docker 17.12.0
  1365. type: "string"
  1366. example: "172.17.0.4"
  1367. IPPrefixLen:
  1368. description: |
  1369. Mask length of the IPv4 address.
  1370. <p><br /></p>
  1371. > **Deprecated**: This field is only propagated when attached to the
  1372. > default "bridge" network. Use the information from the "bridge"
  1373. > network inside the `Networks` map instead, which contains the same
  1374. > information. This field was deprecated in Docker 1.9 and is scheduled
  1375. > to be removed in Docker 17.12.0
  1376. type: "integer"
  1377. example: 16
  1378. IPv6Gateway:
  1379. description: |
  1380. IPv6 gateway address for this network.
  1381. <p><br /></p>
  1382. > **Deprecated**: This field is only propagated when attached to the
  1383. > default "bridge" network. Use the information from the "bridge"
  1384. > network inside the `Networks` map instead, which contains the same
  1385. > information. This field was deprecated in Docker 1.9 and is scheduled
  1386. > to be removed in Docker 17.12.0
  1387. type: "string"
  1388. example: "2001:db8:2::100"
  1389. MacAddress:
  1390. description: |
  1391. MAC address for the container on the default "bridge" network.
  1392. <p><br /></p>
  1393. > **Deprecated**: This field is only propagated when attached to the
  1394. > default "bridge" network. Use the information from the "bridge"
  1395. > network inside the `Networks` map instead, which contains the same
  1396. > information. This field was deprecated in Docker 1.9 and is scheduled
  1397. > to be removed in Docker 17.12.0
  1398. type: "string"
  1399. example: "02:42:ac:11:00:04"
  1400. Networks:
  1401. description: |
  1402. Information about all networks that the container is connected to.
  1403. type: "object"
  1404. additionalProperties:
  1405. $ref: "#/definitions/EndpointSettings"
  1406. Address:
  1407. description: Address represents an IPv4 or IPv6 IP address.
  1408. type: "object"
  1409. properties:
  1410. Addr:
  1411. description: IP address.
  1412. type: "string"
  1413. PrefixLen:
  1414. description: Mask length of the IP address.
  1415. type: "integer"
  1416. PortMap:
  1417. description: |
  1418. PortMap describes the mapping of container ports to host ports, using the
  1419. container's port-number and protocol as key in the format `<port>/<protocol>`,
  1420. for example, `80/udp`.
  1421. If a container's port is mapped for multiple protocols, separate entries
  1422. are added to the mapping table.
  1423. type: "object"
  1424. additionalProperties:
  1425. type: "array"
  1426. x-nullable: true
  1427. items:
  1428. $ref: "#/definitions/PortBinding"
  1429. example:
  1430. "443/tcp":
  1431. - HostIp: "127.0.0.1"
  1432. HostPort: "4443"
  1433. "80/tcp":
  1434. - HostIp: "0.0.0.0"
  1435. HostPort: "80"
  1436. - HostIp: "0.0.0.0"
  1437. HostPort: "8080"
  1438. "80/udp":
  1439. - HostIp: "0.0.0.0"
  1440. HostPort: "80"
  1441. "53/udp":
  1442. - HostIp: "0.0.0.0"
  1443. HostPort: "53"
  1444. "2377/tcp": null
  1445. PortBinding:
  1446. description: |
  1447. PortBinding represents a binding between a host IP address and a host
  1448. port.
  1449. type: "object"
  1450. properties:
  1451. HostIp:
  1452. description: "Host IP address that the container's port is mapped to."
  1453. type: "string"
  1454. example: "127.0.0.1"
  1455. HostPort:
  1456. description: "Host port number that the container's port is mapped to."
  1457. type: "string"
  1458. example: "4443"
  1459. GraphDriverData:
  1460. description: |
  1461. Information about the storage driver used to store the container's and
  1462. image's filesystem.
  1463. type: "object"
  1464. required: [Name, Data]
  1465. properties:
  1466. Name:
  1467. description: "Name of the storage driver."
  1468. type: "string"
  1469. x-nullable: false
  1470. example: "overlay2"
  1471. Data:
  1472. description: |
  1473. Low-level storage metadata, provided as key/value pairs.
  1474. This information is driver-specific, and depends on the storage-driver
  1475. in use, and should be used for informational purposes only.
  1476. type: "object"
  1477. x-nullable: false
  1478. additionalProperties:
  1479. type: "string"
  1480. example: {
  1481. "MergedDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/merged",
  1482. "UpperDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/diff",
  1483. "WorkDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/work"
  1484. }
  1485. ImageInspect:
  1486. description: |
  1487. Information about an image in the local image cache.
  1488. type: "object"
  1489. properties:
  1490. Id:
  1491. description: |
  1492. ID is the content-addressable ID of an image.
  1493. This identifier is a content-addressable digest calculated from the
  1494. image's configuration (which includes the digests of layers used by
  1495. the image).
  1496. Note that this digest differs from the `RepoDigests` below, which
  1497. holds digests of image manifests that reference the image.
  1498. type: "string"
  1499. x-nullable: false
  1500. example: "sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710"
  1501. RepoTags:
  1502. description: |
  1503. List of image names/tags in the local image cache that reference this
  1504. image.
  1505. Multiple image tags can refer to the same image, and this list may be
  1506. empty if no tags reference the image, in which case the image is
  1507. "untagged", in which case it can still be referenced by its ID.
  1508. type: "array"
  1509. items:
  1510. type: "string"
  1511. example:
  1512. - "example:1.0"
  1513. - "example:latest"
  1514. - "example:stable"
  1515. - "internal.registry.example.com:5000/example:1.0"
  1516. RepoDigests:
  1517. description: |
  1518. List of content-addressable digests of locally available image manifests
  1519. that the image is referenced from. Multiple manifests can refer to the
  1520. same image.
  1521. These digests are usually only available if the image was either pulled
  1522. from a registry, or if the image was pushed to a registry, which is when
  1523. the manifest is generated and its digest calculated.
  1524. type: "array"
  1525. items:
  1526. type: "string"
  1527. example:
  1528. - "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb"
  1529. - "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  1530. Parent:
  1531. description: |
  1532. ID of the parent image.
  1533. Depending on how the image was created, this field may be empty and
  1534. is only set for images that were built/created locally. This field
  1535. is empty if the image was pulled from an image registry.
  1536. type: "string"
  1537. x-nullable: false
  1538. example: ""
  1539. Comment:
  1540. description: |
  1541. Optional message that was set when committing or importing the image.
  1542. type: "string"
  1543. x-nullable: false
  1544. example: ""
  1545. Created:
  1546. description: |
  1547. Date and time at which the image was created, formatted in
  1548. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  1549. type: "string"
  1550. x-nullable: false
  1551. example: "2022-02-04T21:20:12.497794809Z"
  1552. Container:
  1553. description: |
  1554. The ID of the container that was used to create the image.
  1555. Depending on how the image was created, this field may be empty.
  1556. type: "string"
  1557. x-nullable: false
  1558. example: "65974bc86f1770ae4bff79f651ebdbce166ae9aada632ee3fa9af3a264911735"
  1559. ContainerConfig:
  1560. $ref: "#/definitions/ContainerConfig"
  1561. DockerVersion:
  1562. description: |
  1563. The version of Docker that was used to build the image.
  1564. Depending on how the image was created, this field may be empty.
  1565. type: "string"
  1566. x-nullable: false
  1567. example: "20.10.7"
  1568. Author:
  1569. description: |
  1570. Name of the author that was specified when committing the image, or as
  1571. specified through MAINTAINER (deprecated) in the Dockerfile.
  1572. type: "string"
  1573. x-nullable: false
  1574. example: ""
  1575. Config:
  1576. $ref: "#/definitions/ContainerConfig"
  1577. Architecture:
  1578. description: |
  1579. Hardware CPU architecture that the image runs on.
  1580. type: "string"
  1581. x-nullable: false
  1582. example: "arm"
  1583. Variant:
  1584. description: |
  1585. CPU architecture variant (presently ARM-only).
  1586. type: "string"
  1587. x-nullable: true
  1588. example: "v7"
  1589. Os:
  1590. description: |
  1591. Operating System the image is built to run on.
  1592. type: "string"
  1593. x-nullable: false
  1594. example: "linux"
  1595. OsVersion:
  1596. description: |
  1597. Operating System version the image is built to run on (especially
  1598. for Windows).
  1599. type: "string"
  1600. example: ""
  1601. x-nullable: true
  1602. Size:
  1603. description: |
  1604. Total size of the image including all layers it is composed of.
  1605. type: "integer"
  1606. format: "int64"
  1607. x-nullable: false
  1608. example: 1239828
  1609. VirtualSize:
  1610. description: |
  1611. Total size of the image including all layers it is composed of.
  1612. In versions of Docker before v1.10, this field was calculated from
  1613. the image itself and all of its parent images. Docker v1.10 and up
  1614. store images self-contained, and no longer use a parent-chain, making
  1615. this field an equivalent of the Size field.
  1616. This field is kept for backward compatibility, but may be removed in
  1617. a future version of the API.
  1618. type: "integer"
  1619. format: "int64"
  1620. x-nullable: false
  1621. example: 1239828
  1622. GraphDriver:
  1623. $ref: "#/definitions/GraphDriverData"
  1624. RootFS:
  1625. description: |
  1626. Information about the image's RootFS, including the layer IDs.
  1627. type: "object"
  1628. required: [Type]
  1629. properties:
  1630. Type:
  1631. type: "string"
  1632. x-nullable: false
  1633. example: "layers"
  1634. Layers:
  1635. type: "array"
  1636. items:
  1637. type: "string"
  1638. example:
  1639. - "sha256:1834950e52ce4d5a88a1bbd131c537f4d0e56d10ff0dd69e66be3b7dfa9df7e6"
  1640. - "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
  1641. Metadata:
  1642. description: |
  1643. Additional metadata of the image in the local cache. This information
  1644. is local to the daemon, and not part of the image itself.
  1645. type: "object"
  1646. properties:
  1647. LastTagTime:
  1648. description: |
  1649. Date and time at which the image was last tagged in
  1650. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  1651. This information is only available if the image was tagged locally,
  1652. and omitted otherwise.
  1653. type: "string"
  1654. format: "dateTime"
  1655. example: "2022-02-28T14:40:02.623929178Z"
  1656. x-nullable: true
  1657. ImageSummary:
  1658. type: "object"
  1659. required:
  1660. - Id
  1661. - ParentId
  1662. - RepoTags
  1663. - RepoDigests
  1664. - Created
  1665. - Size
  1666. - SharedSize
  1667. - VirtualSize
  1668. - Labels
  1669. - Containers
  1670. properties:
  1671. Id:
  1672. description: |
  1673. ID is the content-addressable ID of an image.
  1674. This identifier is a content-addressable digest calculated from the
  1675. image's configuration (which includes the digests of layers used by
  1676. the image).
  1677. Note that this digest differs from the `RepoDigests` below, which
  1678. holds digests of image manifests that reference the image.
  1679. type: "string"
  1680. x-nullable: false
  1681. example: "sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710"
  1682. ParentId:
  1683. description: |
  1684. ID of the parent image.
  1685. Depending on how the image was created, this field may be empty and
  1686. is only set for images that were built/created locally. This field
  1687. is empty if the image was pulled from an image registry.
  1688. type: "string"
  1689. x-nullable: false
  1690. example: ""
  1691. RepoTags:
  1692. description: |
  1693. List of image names/tags in the local image cache that reference this
  1694. image.
  1695. Multiple image tags can refer to the same image, and this list may be
  1696. empty if no tags reference the image, in which case the image is
  1697. "untagged", in which case it can still be referenced by its ID.
  1698. type: "array"
  1699. x-nullable: false
  1700. items:
  1701. type: "string"
  1702. example:
  1703. - "example:1.0"
  1704. - "example:latest"
  1705. - "example:stable"
  1706. - "internal.registry.example.com:5000/example:1.0"
  1707. RepoDigests:
  1708. description: |
  1709. List of content-addressable digests of locally available image manifests
  1710. that the image is referenced from. Multiple manifests can refer to the
  1711. same image.
  1712. These digests are usually only available if the image was either pulled
  1713. from a registry, or if the image was pushed to a registry, which is when
  1714. the manifest is generated and its digest calculated.
  1715. type: "array"
  1716. x-nullable: false
  1717. items:
  1718. type: "string"
  1719. example:
  1720. - "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb"
  1721. - "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  1722. Created:
  1723. description: |
  1724. Date and time at which the image was created as a Unix timestamp
  1725. (number of seconds sinds EPOCH).
  1726. type: "integer"
  1727. x-nullable: false
  1728. example: "1644009612"
  1729. Size:
  1730. description: |
  1731. Total size of the image including all layers it is composed of.
  1732. type: "integer"
  1733. format: "int64"
  1734. x-nullable: false
  1735. example: 172064416
  1736. SharedSize:
  1737. description: |
  1738. Total size of image layers that are shared between this image and other
  1739. images.
  1740. This size is not calculated by default. `-1` indicates that the value
  1741. has not been set / calculated.
  1742. type: "integer"
  1743. format: "int64"
  1744. x-nullable: false
  1745. example: 1239828
  1746. VirtualSize:
  1747. description: |
  1748. Total size of the image including all layers it is composed of.
  1749. In versions of Docker before v1.10, this field was calculated from
  1750. the image itself and all of its parent images. Docker v1.10 and up
  1751. store images self-contained, and no longer use a parent-chain, making
  1752. this field an equivalent of the Size field.
  1753. This field is kept for backward compatibility, but may be removed in
  1754. a future version of the API.
  1755. type: "integer"
  1756. format: "int64"
  1757. x-nullable: false
  1758. example: 172064416
  1759. Labels:
  1760. description: "User-defined key/value metadata."
  1761. type: "object"
  1762. x-nullable: false
  1763. additionalProperties:
  1764. type: "string"
  1765. example:
  1766. com.example.some-label: "some-value"
  1767. com.example.some-other-label: "some-other-value"
  1768. Containers:
  1769. description: |
  1770. Number of containers using this image. Includes both stopped and running
  1771. containers.
  1772. This size is not calculated by default, and depends on which API endpoint
  1773. is used. `-1` indicates that the value has not been set / calculated.
  1774. x-nullable: false
  1775. type: "integer"
  1776. example: 2
  1777. AuthConfig:
  1778. type: "object"
  1779. properties:
  1780. username:
  1781. type: "string"
  1782. password:
  1783. type: "string"
  1784. email:
  1785. type: "string"
  1786. serveraddress:
  1787. type: "string"
  1788. example:
  1789. username: "hannibal"
  1790. password: "xxxx"
  1791. serveraddress: "https://index.docker.io/v1/"
  1792. ProcessConfig:
  1793. type: "object"
  1794. properties:
  1795. privileged:
  1796. type: "boolean"
  1797. user:
  1798. type: "string"
  1799. tty:
  1800. type: "boolean"
  1801. entrypoint:
  1802. type: "string"
  1803. arguments:
  1804. type: "array"
  1805. items:
  1806. type: "string"
  1807. Volume:
  1808. type: "object"
  1809. required: [Name, Driver, Mountpoint, Labels, Scope, Options]
  1810. properties:
  1811. Name:
  1812. type: "string"
  1813. description: "Name of the volume."
  1814. x-nullable: false
  1815. example: "tardis"
  1816. Driver:
  1817. type: "string"
  1818. description: "Name of the volume driver used by the volume."
  1819. x-nullable: false
  1820. example: "custom"
  1821. Mountpoint:
  1822. type: "string"
  1823. description: "Mount path of the volume on the host."
  1824. x-nullable: false
  1825. example: "/var/lib/docker/volumes/tardis"
  1826. CreatedAt:
  1827. type: "string"
  1828. format: "dateTime"
  1829. description: "Date/Time the volume was created."
  1830. example: "2016-06-07T20:31:11.853781916Z"
  1831. Status:
  1832. type: "object"
  1833. description: |
  1834. Low-level details about the volume, provided by the volume driver.
  1835. Details are returned as a map with key/value pairs:
  1836. `{"key":"value","key2":"value2"}`.
  1837. The `Status` field is optional, and is omitted if the volume driver
  1838. does not support this feature.
  1839. additionalProperties:
  1840. type: "object"
  1841. example:
  1842. hello: "world"
  1843. Labels:
  1844. type: "object"
  1845. description: "User-defined key/value metadata."
  1846. x-nullable: false
  1847. additionalProperties:
  1848. type: "string"
  1849. example:
  1850. com.example.some-label: "some-value"
  1851. com.example.some-other-label: "some-other-value"
  1852. Scope:
  1853. type: "string"
  1854. description: |
  1855. The level at which the volume exists. Either `global` for cluster-wide,
  1856. or `local` for machine level.
  1857. default: "local"
  1858. x-nullable: false
  1859. enum: ["local", "global"]
  1860. example: "local"
  1861. Options:
  1862. type: "object"
  1863. description: |
  1864. The driver specific options used when creating the volume.
  1865. additionalProperties:
  1866. type: "string"
  1867. example:
  1868. device: "tmpfs"
  1869. o: "size=100m,uid=1000"
  1870. type: "tmpfs"
  1871. UsageData:
  1872. type: "object"
  1873. x-nullable: true
  1874. required: [Size, RefCount]
  1875. description: |
  1876. Usage details about the volume. This information is used by the
  1877. `GET /system/df` endpoint, and omitted in other endpoints.
  1878. properties:
  1879. Size:
  1880. type: "integer"
  1881. format: "int64"
  1882. default: -1
  1883. description: |
  1884. Amount of disk space used by the volume (in bytes). This information
  1885. is only available for volumes created with the `"local"` volume
  1886. driver. For volumes created with other volume drivers, this field
  1887. is set to `-1` ("not available")
  1888. x-nullable: false
  1889. RefCount:
  1890. type: "integer"
  1891. format: "int64"
  1892. default: -1
  1893. description: |
  1894. The number of containers referencing this volume. This field
  1895. is set to `-1` if the reference-count is not available.
  1896. x-nullable: false
  1897. VolumeCreateOptions:
  1898. description: "Volume configuration"
  1899. type: "object"
  1900. title: "VolumeConfig"
  1901. x-go-name: "VolumeCreateBody"
  1902. properties:
  1903. Name:
  1904. description: |
  1905. The new volume's name. If not specified, Docker generates a name.
  1906. type: "string"
  1907. x-nullable: false
  1908. example: "tardis"
  1909. Driver:
  1910. description: "Name of the volume driver to use."
  1911. type: "string"
  1912. default: "local"
  1913. x-nullable: false
  1914. example: "custom"
  1915. DriverOpts:
  1916. description: |
  1917. A mapping of driver options and values. These options are
  1918. passed directly to the driver and are driver specific.
  1919. type: "object"
  1920. additionalProperties:
  1921. type: "string"
  1922. example:
  1923. device: "tmpfs"
  1924. o: "size=100m,uid=1000"
  1925. type: "tmpfs"
  1926. Labels:
  1927. description: "User-defined key/value metadata."
  1928. type: "object"
  1929. additionalProperties:
  1930. type: "string"
  1931. example:
  1932. com.example.some-label: "some-value"
  1933. com.example.some-other-label: "some-other-value"
  1934. VolumeListResponse:
  1935. type: "object"
  1936. title: "VolumeListResponse"
  1937. x-go-name: "VolumeListOKBody"
  1938. description: "Volume list response"
  1939. properties:
  1940. Volumes:
  1941. type: "array"
  1942. description: "List of volumes"
  1943. items:
  1944. $ref: "#/definitions/Volume"
  1945. Warnings:
  1946. type: "array"
  1947. description: |
  1948. Warnings that occurred when fetching the list of volumes.
  1949. items:
  1950. type: "string"
  1951. example: []
  1952. Network:
  1953. type: "object"
  1954. properties:
  1955. Name:
  1956. type: "string"
  1957. Id:
  1958. type: "string"
  1959. Created:
  1960. type: "string"
  1961. format: "dateTime"
  1962. Scope:
  1963. type: "string"
  1964. Driver:
  1965. type: "string"
  1966. EnableIPv6:
  1967. type: "boolean"
  1968. IPAM:
  1969. $ref: "#/definitions/IPAM"
  1970. Internal:
  1971. type: "boolean"
  1972. Attachable:
  1973. type: "boolean"
  1974. Ingress:
  1975. type: "boolean"
  1976. Containers:
  1977. type: "object"
  1978. additionalProperties:
  1979. $ref: "#/definitions/NetworkContainer"
  1980. Options:
  1981. type: "object"
  1982. additionalProperties:
  1983. type: "string"
  1984. Labels:
  1985. type: "object"
  1986. additionalProperties:
  1987. type: "string"
  1988. example:
  1989. Name: "net01"
  1990. Id: "7d86d31b1478e7cca9ebed7e73aa0fdeec46c5ca29497431d3007d2d9e15ed99"
  1991. Created: "2016-10-19T04:33:30.360899459Z"
  1992. Scope: "local"
  1993. Driver: "bridge"
  1994. EnableIPv6: false
  1995. IPAM:
  1996. Driver: "default"
  1997. Config:
  1998. - Subnet: "172.19.0.0/16"
  1999. Gateway: "172.19.0.1"
  2000. Options:
  2001. foo: "bar"
  2002. Internal: false
  2003. Attachable: false
  2004. Ingress: false
  2005. Containers:
  2006. 19a4d5d687db25203351ed79d478946f861258f018fe384f229f2efa4b23513c:
  2007. Name: "test"
  2008. EndpointID: "628cadb8bcb92de107b2a1e516cbffe463e321f548feb37697cce00ad694f21a"
  2009. MacAddress: "02:42:ac:13:00:02"
  2010. IPv4Address: "172.19.0.2/16"
  2011. IPv6Address: ""
  2012. Options:
  2013. com.docker.network.bridge.default_bridge: "true"
  2014. com.docker.network.bridge.enable_icc: "true"
  2015. com.docker.network.bridge.enable_ip_masquerade: "true"
  2016. com.docker.network.bridge.host_binding_ipv4: "0.0.0.0"
  2017. com.docker.network.bridge.name: "docker0"
  2018. com.docker.network.driver.mtu: "1500"
  2019. Labels:
  2020. com.example.some-label: "some-value"
  2021. com.example.some-other-label: "some-other-value"
  2022. IPAM:
  2023. type: "object"
  2024. properties:
  2025. Driver:
  2026. description: "Name of the IPAM driver to use."
  2027. type: "string"
  2028. default: "default"
  2029. Config:
  2030. description: |
  2031. List of IPAM configuration options, specified as a map:
  2032. ```
  2033. {"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}
  2034. ```
  2035. type: "array"
  2036. items:
  2037. type: "object"
  2038. additionalProperties:
  2039. type: "string"
  2040. Options:
  2041. description: "Driver-specific options, specified as a map."
  2042. type: "object"
  2043. additionalProperties:
  2044. type: "string"
  2045. NetworkContainer:
  2046. type: "object"
  2047. properties:
  2048. Name:
  2049. type: "string"
  2050. EndpointID:
  2051. type: "string"
  2052. MacAddress:
  2053. type: "string"
  2054. IPv4Address:
  2055. type: "string"
  2056. IPv6Address:
  2057. type: "string"
  2058. BuildInfo:
  2059. type: "object"
  2060. properties:
  2061. id:
  2062. type: "string"
  2063. stream:
  2064. type: "string"
  2065. error:
  2066. type: "string"
  2067. errorDetail:
  2068. $ref: "#/definitions/ErrorDetail"
  2069. status:
  2070. type: "string"
  2071. progress:
  2072. type: "string"
  2073. progressDetail:
  2074. $ref: "#/definitions/ProgressDetail"
  2075. aux:
  2076. $ref: "#/definitions/ImageID"
  2077. BuildCache:
  2078. type: "object"
  2079. description: |
  2080. BuildCache contains information about a build cache record.
  2081. properties:
  2082. ID:
  2083. type: "string"
  2084. description: |
  2085. Unique ID of the build cache record.
  2086. example: "ndlpt0hhvkqcdfkputsk4cq9c"
  2087. Parent:
  2088. description: |
  2089. ID of the parent build cache record.
  2090. type: "string"
  2091. example: "hw53o5aio51xtltp5xjp8v7fx"
  2092. Type:
  2093. type: "string"
  2094. description: |
  2095. Cache record type.
  2096. example: "regular"
  2097. # see https://github.com/moby/buildkit/blob/fce4a32258dc9d9664f71a4831d5de10f0670677/client/diskusage.go#L75-L84
  2098. enum:
  2099. - "internal"
  2100. - "frontend"
  2101. - "source.local"
  2102. - "source.git.checkout"
  2103. - "exec.cachemount"
  2104. - "regular"
  2105. Description:
  2106. type: "string"
  2107. description: |
  2108. Description of the build-step that produced the build cache.
  2109. example: "mount / from exec /bin/sh -c echo 'Binary::apt::APT::Keep-Downloaded-Packages \"true\";' > /etc/apt/apt.conf.d/keep-cache"
  2110. InUse:
  2111. type: "boolean"
  2112. description: |
  2113. Indicates if the build cache is in use.
  2114. example: false
  2115. Shared:
  2116. type: "boolean"
  2117. description: |
  2118. Indicates if the build cache is shared.
  2119. example: true
  2120. Size:
  2121. description: |
  2122. Amount of disk space used by the build cache (in bytes).
  2123. type: "integer"
  2124. example: 51
  2125. CreatedAt:
  2126. description: |
  2127. Date and time at which the build cache was created in
  2128. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  2129. type: "string"
  2130. format: "dateTime"
  2131. example: "2016-08-18T10:44:24.496525531Z"
  2132. LastUsedAt:
  2133. description: |
  2134. Date and time at which the build cache was last used in
  2135. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  2136. type: "string"
  2137. format: "dateTime"
  2138. x-nullable: true
  2139. example: "2017-08-09T07:09:37.632105588Z"
  2140. UsageCount:
  2141. type: "integer"
  2142. example: 26
  2143. ImageID:
  2144. type: "object"
  2145. description: "Image ID or Digest"
  2146. properties:
  2147. ID:
  2148. type: "string"
  2149. example:
  2150. ID: "sha256:85f05633ddc1c50679be2b16a0479ab6f7637f8884e0cfe0f4d20e1ebb3d6e7c"
  2151. CreateImageInfo:
  2152. type: "object"
  2153. properties:
  2154. id:
  2155. type: "string"
  2156. error:
  2157. type: "string"
  2158. errorDetail:
  2159. $ref: "#/definitions/ErrorDetail"
  2160. status:
  2161. type: "string"
  2162. progress:
  2163. type: "string"
  2164. progressDetail:
  2165. $ref: "#/definitions/ProgressDetail"
  2166. PushImageInfo:
  2167. type: "object"
  2168. properties:
  2169. error:
  2170. type: "string"
  2171. status:
  2172. type: "string"
  2173. progress:
  2174. type: "string"
  2175. progressDetail:
  2176. $ref: "#/definitions/ProgressDetail"
  2177. ErrorDetail:
  2178. type: "object"
  2179. properties:
  2180. code:
  2181. type: "integer"
  2182. message:
  2183. type: "string"
  2184. ProgressDetail:
  2185. type: "object"
  2186. properties:
  2187. current:
  2188. type: "integer"
  2189. total:
  2190. type: "integer"
  2191. ErrorResponse:
  2192. description: "Represents an error."
  2193. type: "object"
  2194. required: ["message"]
  2195. properties:
  2196. message:
  2197. description: "The error message."
  2198. type: "string"
  2199. x-nullable: false
  2200. example:
  2201. message: "Something went wrong."
  2202. IdResponse:
  2203. description: "Response to an API call that returns just an Id"
  2204. type: "object"
  2205. required: ["Id"]
  2206. properties:
  2207. Id:
  2208. description: "The id of the newly created object."
  2209. type: "string"
  2210. x-nullable: false
  2211. EndpointSettings:
  2212. description: "Configuration for a network endpoint."
  2213. type: "object"
  2214. properties:
  2215. # Configurations
  2216. IPAMConfig:
  2217. $ref: "#/definitions/EndpointIPAMConfig"
  2218. Links:
  2219. type: "array"
  2220. items:
  2221. type: "string"
  2222. example:
  2223. - "container_1"
  2224. - "container_2"
  2225. Aliases:
  2226. type: "array"
  2227. items:
  2228. type: "string"
  2229. example:
  2230. - "server_x"
  2231. - "server_y"
  2232. # Operational data
  2233. NetworkID:
  2234. description: |
  2235. Unique ID of the network.
  2236. type: "string"
  2237. example: "08754567f1f40222263eab4102e1c733ae697e8e354aa9cd6e18d7402835292a"
  2238. EndpointID:
  2239. description: |
  2240. Unique ID for the service endpoint in a Sandbox.
  2241. type: "string"
  2242. example: "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b"
  2243. Gateway:
  2244. description: |
  2245. Gateway address for this network.
  2246. type: "string"
  2247. example: "172.17.0.1"
  2248. IPAddress:
  2249. description: |
  2250. IPv4 address.
  2251. type: "string"
  2252. example: "172.17.0.4"
  2253. IPPrefixLen:
  2254. description: |
  2255. Mask length of the IPv4 address.
  2256. type: "integer"
  2257. example: 16
  2258. IPv6Gateway:
  2259. description: |
  2260. IPv6 gateway address.
  2261. type: "string"
  2262. example: "2001:db8:2::100"
  2263. GlobalIPv6Address:
  2264. description: |
  2265. Global IPv6 address.
  2266. type: "string"
  2267. example: "2001:db8::5689"
  2268. GlobalIPv6PrefixLen:
  2269. description: |
  2270. Mask length of the global IPv6 address.
  2271. type: "integer"
  2272. format: "int64"
  2273. example: 64
  2274. MacAddress:
  2275. description: |
  2276. MAC address for the endpoint on this network.
  2277. type: "string"
  2278. example: "02:42:ac:11:00:04"
  2279. DriverOpts:
  2280. description: |
  2281. DriverOpts is a mapping of driver options and values. These options
  2282. are passed directly to the driver and are driver specific.
  2283. type: "object"
  2284. x-nullable: true
  2285. additionalProperties:
  2286. type: "string"
  2287. example:
  2288. com.example.some-label: "some-value"
  2289. com.example.some-other-label: "some-other-value"
  2290. EndpointIPAMConfig:
  2291. description: |
  2292. EndpointIPAMConfig represents an endpoint's IPAM configuration.
  2293. type: "object"
  2294. x-nullable: true
  2295. properties:
  2296. IPv4Address:
  2297. type: "string"
  2298. example: "172.20.30.33"
  2299. IPv6Address:
  2300. type: "string"
  2301. example: "2001:db8:abcd::3033"
  2302. LinkLocalIPs:
  2303. type: "array"
  2304. items:
  2305. type: "string"
  2306. example:
  2307. - "169.254.34.68"
  2308. - "fe80::3468"
  2309. PluginMount:
  2310. type: "object"
  2311. x-nullable: false
  2312. required: [Name, Description, Settable, Source, Destination, Type, Options]
  2313. properties:
  2314. Name:
  2315. type: "string"
  2316. x-nullable: false
  2317. example: "some-mount"
  2318. Description:
  2319. type: "string"
  2320. x-nullable: false
  2321. example: "This is a mount that's used by the plugin."
  2322. Settable:
  2323. type: "array"
  2324. items:
  2325. type: "string"
  2326. Source:
  2327. type: "string"
  2328. example: "/var/lib/docker/plugins/"
  2329. Destination:
  2330. type: "string"
  2331. x-nullable: false
  2332. example: "/mnt/state"
  2333. Type:
  2334. type: "string"
  2335. x-nullable: false
  2336. example: "bind"
  2337. Options:
  2338. type: "array"
  2339. items:
  2340. type: "string"
  2341. example:
  2342. - "rbind"
  2343. - "rw"
  2344. PluginDevice:
  2345. type: "object"
  2346. required: [Name, Description, Settable, Path]
  2347. x-nullable: false
  2348. properties:
  2349. Name:
  2350. type: "string"
  2351. x-nullable: false
  2352. Description:
  2353. type: "string"
  2354. x-nullable: false
  2355. Settable:
  2356. type: "array"
  2357. items:
  2358. type: "string"
  2359. Path:
  2360. type: "string"
  2361. example: "/dev/fuse"
  2362. PluginEnv:
  2363. type: "object"
  2364. x-nullable: false
  2365. required: [Name, Description, Settable, Value]
  2366. properties:
  2367. Name:
  2368. x-nullable: false
  2369. type: "string"
  2370. Description:
  2371. x-nullable: false
  2372. type: "string"
  2373. Settable:
  2374. type: "array"
  2375. items:
  2376. type: "string"
  2377. Value:
  2378. type: "string"
  2379. PluginInterfaceType:
  2380. type: "object"
  2381. x-nullable: false
  2382. required: [Prefix, Capability, Version]
  2383. properties:
  2384. Prefix:
  2385. type: "string"
  2386. x-nullable: false
  2387. Capability:
  2388. type: "string"
  2389. x-nullable: false
  2390. Version:
  2391. type: "string"
  2392. x-nullable: false
  2393. PluginPrivilege:
  2394. description: |
  2395. Describes a permission the user has to accept upon installing
  2396. the plugin.
  2397. type: "object"
  2398. x-go-name: "PluginPrivilege"
  2399. properties:
  2400. Name:
  2401. type: "string"
  2402. example: "network"
  2403. Description:
  2404. type: "string"
  2405. Value:
  2406. type: "array"
  2407. items:
  2408. type: "string"
  2409. example:
  2410. - "host"
  2411. Plugin:
  2412. description: "A plugin for the Engine API"
  2413. type: "object"
  2414. required: [Settings, Enabled, Config, Name]
  2415. properties:
  2416. Id:
  2417. type: "string"
  2418. example: "5724e2c8652da337ab2eedd19fc6fc0ec908e4bd907c7421bf6a8dfc70c4c078"
  2419. Name:
  2420. type: "string"
  2421. x-nullable: false
  2422. example: "tiborvass/sample-volume-plugin"
  2423. Enabled:
  2424. description:
  2425. True if the plugin is running. False if the plugin is not running,
  2426. only installed.
  2427. type: "boolean"
  2428. x-nullable: false
  2429. example: true
  2430. Settings:
  2431. description: "Settings that can be modified by users."
  2432. type: "object"
  2433. x-nullable: false
  2434. required: [Args, Devices, Env, Mounts]
  2435. properties:
  2436. Mounts:
  2437. type: "array"
  2438. items:
  2439. $ref: "#/definitions/PluginMount"
  2440. Env:
  2441. type: "array"
  2442. items:
  2443. type: "string"
  2444. example:
  2445. - "DEBUG=0"
  2446. Args:
  2447. type: "array"
  2448. items:
  2449. type: "string"
  2450. Devices:
  2451. type: "array"
  2452. items:
  2453. $ref: "#/definitions/PluginDevice"
  2454. PluginReference:
  2455. description: "plugin remote reference used to push/pull the plugin"
  2456. type: "string"
  2457. x-nullable: false
  2458. example: "localhost:5000/tiborvass/sample-volume-plugin:latest"
  2459. Config:
  2460. description: "The config of a plugin."
  2461. type: "object"
  2462. x-nullable: false
  2463. required:
  2464. - Description
  2465. - Documentation
  2466. - Interface
  2467. - Entrypoint
  2468. - WorkDir
  2469. - Network
  2470. - Linux
  2471. - PidHost
  2472. - PropagatedMount
  2473. - IpcHost
  2474. - Mounts
  2475. - Env
  2476. - Args
  2477. properties:
  2478. DockerVersion:
  2479. description: "Docker Version used to create the plugin"
  2480. type: "string"
  2481. x-nullable: false
  2482. example: "17.06.0-ce"
  2483. Description:
  2484. type: "string"
  2485. x-nullable: false
  2486. example: "A sample volume plugin for Docker"
  2487. Documentation:
  2488. type: "string"
  2489. x-nullable: false
  2490. example: "https://docs.docker.com/engine/extend/plugins/"
  2491. Interface:
  2492. description: "The interface between Docker and the plugin"
  2493. x-nullable: false
  2494. type: "object"
  2495. required: [Types, Socket]
  2496. properties:
  2497. Types:
  2498. type: "array"
  2499. items:
  2500. $ref: "#/definitions/PluginInterfaceType"
  2501. example:
  2502. - "docker.volumedriver/1.0"
  2503. Socket:
  2504. type: "string"
  2505. x-nullable: false
  2506. example: "plugins.sock"
  2507. ProtocolScheme:
  2508. type: "string"
  2509. example: "some.protocol/v1.0"
  2510. description: "Protocol to use for clients connecting to the plugin."
  2511. enum:
  2512. - ""
  2513. - "moby.plugins.http/v1"
  2514. Entrypoint:
  2515. type: "array"
  2516. items:
  2517. type: "string"
  2518. example:
  2519. - "/usr/bin/sample-volume-plugin"
  2520. - "/data"
  2521. WorkDir:
  2522. type: "string"
  2523. x-nullable: false
  2524. example: "/bin/"
  2525. User:
  2526. type: "object"
  2527. x-nullable: false
  2528. properties:
  2529. UID:
  2530. type: "integer"
  2531. format: "uint32"
  2532. example: 1000
  2533. GID:
  2534. type: "integer"
  2535. format: "uint32"
  2536. example: 1000
  2537. Network:
  2538. type: "object"
  2539. x-nullable: false
  2540. required: [Type]
  2541. properties:
  2542. Type:
  2543. x-nullable: false
  2544. type: "string"
  2545. example: "host"
  2546. Linux:
  2547. type: "object"
  2548. x-nullable: false
  2549. required: [Capabilities, AllowAllDevices, Devices]
  2550. properties:
  2551. Capabilities:
  2552. type: "array"
  2553. items:
  2554. type: "string"
  2555. example:
  2556. - "CAP_SYS_ADMIN"
  2557. - "CAP_SYSLOG"
  2558. AllowAllDevices:
  2559. type: "boolean"
  2560. x-nullable: false
  2561. example: false
  2562. Devices:
  2563. type: "array"
  2564. items:
  2565. $ref: "#/definitions/PluginDevice"
  2566. PropagatedMount:
  2567. type: "string"
  2568. x-nullable: false
  2569. example: "/mnt/volumes"
  2570. IpcHost:
  2571. type: "boolean"
  2572. x-nullable: false
  2573. example: false
  2574. PidHost:
  2575. type: "boolean"
  2576. x-nullable: false
  2577. example: false
  2578. Mounts:
  2579. type: "array"
  2580. items:
  2581. $ref: "#/definitions/PluginMount"
  2582. Env:
  2583. type: "array"
  2584. items:
  2585. $ref: "#/definitions/PluginEnv"
  2586. example:
  2587. - Name: "DEBUG"
  2588. Description: "If set, prints debug messages"
  2589. Settable: null
  2590. Value: "0"
  2591. Args:
  2592. type: "object"
  2593. x-nullable: false
  2594. required: [Name, Description, Settable, Value]
  2595. properties:
  2596. Name:
  2597. x-nullable: false
  2598. type: "string"
  2599. example: "args"
  2600. Description:
  2601. x-nullable: false
  2602. type: "string"
  2603. example: "command line arguments"
  2604. Settable:
  2605. type: "array"
  2606. items:
  2607. type: "string"
  2608. Value:
  2609. type: "array"
  2610. items:
  2611. type: "string"
  2612. rootfs:
  2613. type: "object"
  2614. properties:
  2615. type:
  2616. type: "string"
  2617. example: "layers"
  2618. diff_ids:
  2619. type: "array"
  2620. items:
  2621. type: "string"
  2622. example:
  2623. - "sha256:675532206fbf3030b8458f88d6e26d4eb1577688a25efec97154c94e8b6b4887"
  2624. - "sha256:e216a057b1cb1efc11f8a268f37ef62083e70b1b38323ba252e25ac88904a7e8"
  2625. ObjectVersion:
  2626. description: |
  2627. The version number of the object such as node, service, etc. This is needed
  2628. to avoid conflicting writes. The client must send the version number along
  2629. with the modified specification when updating these objects.
  2630. This approach ensures safe concurrency and determinism in that the change
  2631. on the object may not be applied if the version number has changed from the
  2632. last read. In other words, if two update requests specify the same base
  2633. version, only one of the requests can succeed. As a result, two separate
  2634. update requests that happen at the same time will not unintentionally
  2635. overwrite each other.
  2636. type: "object"
  2637. properties:
  2638. Index:
  2639. type: "integer"
  2640. format: "uint64"
  2641. example: 373531
  2642. NodeSpec:
  2643. type: "object"
  2644. properties:
  2645. Name:
  2646. description: "Name for the node."
  2647. type: "string"
  2648. example: "my-node"
  2649. Labels:
  2650. description: "User-defined key/value metadata."
  2651. type: "object"
  2652. additionalProperties:
  2653. type: "string"
  2654. Role:
  2655. description: "Role of the node."
  2656. type: "string"
  2657. enum:
  2658. - "worker"
  2659. - "manager"
  2660. example: "manager"
  2661. Availability:
  2662. description: "Availability of the node."
  2663. type: "string"
  2664. enum:
  2665. - "active"
  2666. - "pause"
  2667. - "drain"
  2668. example: "active"
  2669. example:
  2670. Availability: "active"
  2671. Name: "node-name"
  2672. Role: "manager"
  2673. Labels:
  2674. foo: "bar"
  2675. Node:
  2676. type: "object"
  2677. properties:
  2678. ID:
  2679. type: "string"
  2680. example: "24ifsmvkjbyhk"
  2681. Version:
  2682. $ref: "#/definitions/ObjectVersion"
  2683. CreatedAt:
  2684. description: |
  2685. Date and time at which the node was added to the swarm in
  2686. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  2687. type: "string"
  2688. format: "dateTime"
  2689. example: "2016-08-18T10:44:24.496525531Z"
  2690. UpdatedAt:
  2691. description: |
  2692. Date and time at which the node was last updated in
  2693. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  2694. type: "string"
  2695. format: "dateTime"
  2696. example: "2017-08-09T07:09:37.632105588Z"
  2697. Spec:
  2698. $ref: "#/definitions/NodeSpec"
  2699. Description:
  2700. $ref: "#/definitions/NodeDescription"
  2701. Status:
  2702. $ref: "#/definitions/NodeStatus"
  2703. ManagerStatus:
  2704. $ref: "#/definitions/ManagerStatus"
  2705. NodeDescription:
  2706. description: |
  2707. NodeDescription encapsulates the properties of the Node as reported by the
  2708. agent.
  2709. type: "object"
  2710. properties:
  2711. Hostname:
  2712. type: "string"
  2713. example: "bf3067039e47"
  2714. Platform:
  2715. $ref: "#/definitions/Platform"
  2716. Resources:
  2717. $ref: "#/definitions/ResourceObject"
  2718. Engine:
  2719. $ref: "#/definitions/EngineDescription"
  2720. TLSInfo:
  2721. $ref: "#/definitions/TLSInfo"
  2722. Platform:
  2723. description: |
  2724. Platform represents the platform (Arch/OS).
  2725. type: "object"
  2726. properties:
  2727. Architecture:
  2728. description: |
  2729. Architecture represents the hardware architecture (for example,
  2730. `x86_64`).
  2731. type: "string"
  2732. example: "x86_64"
  2733. OS:
  2734. description: |
  2735. OS represents the Operating System (for example, `linux` or `windows`).
  2736. type: "string"
  2737. example: "linux"
  2738. EngineDescription:
  2739. description: "EngineDescription provides information about an engine."
  2740. type: "object"
  2741. properties:
  2742. EngineVersion:
  2743. type: "string"
  2744. example: "17.06.0"
  2745. Labels:
  2746. type: "object"
  2747. additionalProperties:
  2748. type: "string"
  2749. example:
  2750. foo: "bar"
  2751. Plugins:
  2752. type: "array"
  2753. items:
  2754. type: "object"
  2755. properties:
  2756. Type:
  2757. type: "string"
  2758. Name:
  2759. type: "string"
  2760. example:
  2761. - Type: "Log"
  2762. Name: "awslogs"
  2763. - Type: "Log"
  2764. Name: "fluentd"
  2765. - Type: "Log"
  2766. Name: "gcplogs"
  2767. - Type: "Log"
  2768. Name: "gelf"
  2769. - Type: "Log"
  2770. Name: "journald"
  2771. - Type: "Log"
  2772. Name: "json-file"
  2773. - Type: "Log"
  2774. Name: "logentries"
  2775. - Type: "Log"
  2776. Name: "splunk"
  2777. - Type: "Log"
  2778. Name: "syslog"
  2779. - Type: "Network"
  2780. Name: "bridge"
  2781. - Type: "Network"
  2782. Name: "host"
  2783. - Type: "Network"
  2784. Name: "ipvlan"
  2785. - Type: "Network"
  2786. Name: "macvlan"
  2787. - Type: "Network"
  2788. Name: "null"
  2789. - Type: "Network"
  2790. Name: "overlay"
  2791. - Type: "Volume"
  2792. Name: "local"
  2793. - Type: "Volume"
  2794. Name: "localhost:5000/vieux/sshfs:latest"
  2795. - Type: "Volume"
  2796. Name: "vieux/sshfs:latest"
  2797. TLSInfo:
  2798. description: |
  2799. Information about the issuer of leaf TLS certificates and the trusted root
  2800. CA certificate.
  2801. type: "object"
  2802. properties:
  2803. TrustRoot:
  2804. description: |
  2805. The root CA certificate(s) that are used to validate leaf TLS
  2806. certificates.
  2807. type: "string"
  2808. CertIssuerSubject:
  2809. description:
  2810. The base64-url-safe-encoded raw subject bytes of the issuer.
  2811. type: "string"
  2812. CertIssuerPublicKey:
  2813. description: |
  2814. The base64-url-safe-encoded raw public key bytes of the issuer.
  2815. type: "string"
  2816. example:
  2817. TrustRoot: |
  2818. -----BEGIN CERTIFICATE-----
  2819. MIIBajCCARCgAwIBAgIUbYqrLSOSQHoxD8CwG6Bi2PJi9c8wCgYIKoZIzj0EAwIw
  2820. EzERMA8GA1UEAxMIc3dhcm0tY2EwHhcNMTcwNDI0MjE0MzAwWhcNMzcwNDE5MjE0
  2821. MzAwWjATMREwDwYDVQQDEwhzd2FybS1jYTBZMBMGByqGSM49AgEGCCqGSM49AwEH
  2822. A0IABJk/VyMPYdaqDXJb/VXh5n/1Yuv7iNrxV3Qb3l06XD46seovcDWs3IZNV1lf
  2823. 3Skyr0ofcchipoiHkXBODojJydSjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMB
  2824. Af8EBTADAQH/MB0GA1UdDgQWBBRUXxuRcnFjDfR/RIAUQab8ZV/n4jAKBggqhkjO
  2825. PQQDAgNIADBFAiAy+JTe6Uc3KyLCMiqGl2GyWGQqQDEcO3/YG36x7om65AIhAJvz
  2826. pxv6zFeVEkAEEkqIYi0omA9+CjanB/6Bz4n1uw8H
  2827. -----END CERTIFICATE-----
  2828. CertIssuerSubject: "MBMxETAPBgNVBAMTCHN3YXJtLWNh"
  2829. CertIssuerPublicKey: "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmT9XIw9h1qoNclv9VeHmf/Vi6/uI2vFXdBveXTpcPjqx6i9wNazchk1XWV/dKTKvSh9xyGKmiIeRcE4OiMnJ1A=="
  2830. NodeStatus:
  2831. description: |
  2832. NodeStatus represents the status of a node.
  2833. It provides the current status of the node, as seen by the manager.
  2834. type: "object"
  2835. properties:
  2836. State:
  2837. $ref: "#/definitions/NodeState"
  2838. Message:
  2839. type: "string"
  2840. example: ""
  2841. Addr:
  2842. description: "IP address of the node."
  2843. type: "string"
  2844. example: "172.17.0.2"
  2845. NodeState:
  2846. description: "NodeState represents the state of a node."
  2847. type: "string"
  2848. enum:
  2849. - "unknown"
  2850. - "down"
  2851. - "ready"
  2852. - "disconnected"
  2853. example: "ready"
  2854. ManagerStatus:
  2855. description: |
  2856. ManagerStatus represents the status of a manager.
  2857. It provides the current status of a node's manager component, if the node
  2858. is a manager.
  2859. x-nullable: true
  2860. type: "object"
  2861. properties:
  2862. Leader:
  2863. type: "boolean"
  2864. default: false
  2865. example: true
  2866. Reachability:
  2867. $ref: "#/definitions/Reachability"
  2868. Addr:
  2869. description: |
  2870. The IP address and port at which the manager is reachable.
  2871. type: "string"
  2872. example: "10.0.0.46:2377"
  2873. Reachability:
  2874. description: "Reachability represents the reachability of a node."
  2875. type: "string"
  2876. enum:
  2877. - "unknown"
  2878. - "unreachable"
  2879. - "reachable"
  2880. example: "reachable"
  2881. SwarmSpec:
  2882. description: "User modifiable swarm configuration."
  2883. type: "object"
  2884. properties:
  2885. Name:
  2886. description: "Name of the swarm."
  2887. type: "string"
  2888. example: "default"
  2889. Labels:
  2890. description: "User-defined key/value metadata."
  2891. type: "object"
  2892. additionalProperties:
  2893. type: "string"
  2894. example:
  2895. com.example.corp.type: "production"
  2896. com.example.corp.department: "engineering"
  2897. Orchestration:
  2898. description: "Orchestration configuration."
  2899. type: "object"
  2900. x-nullable: true
  2901. properties:
  2902. TaskHistoryRetentionLimit:
  2903. description: |
  2904. The number of historic tasks to keep per instance or node. If
  2905. negative, never remove completed or failed tasks.
  2906. type: "integer"
  2907. format: "int64"
  2908. example: 10
  2909. Raft:
  2910. description: "Raft configuration."
  2911. type: "object"
  2912. properties:
  2913. SnapshotInterval:
  2914. description: "The number of log entries between snapshots."
  2915. type: "integer"
  2916. format: "uint64"
  2917. example: 10000
  2918. KeepOldSnapshots:
  2919. description: |
  2920. The number of snapshots to keep beyond the current snapshot.
  2921. type: "integer"
  2922. format: "uint64"
  2923. LogEntriesForSlowFollowers:
  2924. description: |
  2925. The number of log entries to keep around to sync up slow followers
  2926. after a snapshot is created.
  2927. type: "integer"
  2928. format: "uint64"
  2929. example: 500
  2930. ElectionTick:
  2931. description: |
  2932. The number of ticks that a follower will wait for a message from
  2933. the leader before becoming a candidate and starting an election.
  2934. `ElectionTick` must be greater than `HeartbeatTick`.
  2935. A tick currently defaults to one second, so these translate
  2936. directly to seconds currently, but this is NOT guaranteed.
  2937. type: "integer"
  2938. example: 3
  2939. HeartbeatTick:
  2940. description: |
  2941. The number of ticks between heartbeats. Every HeartbeatTick ticks,
  2942. the leader will send a heartbeat to the followers.
  2943. A tick currently defaults to one second, so these translate
  2944. directly to seconds currently, but this is NOT guaranteed.
  2945. type: "integer"
  2946. example: 1
  2947. Dispatcher:
  2948. description: "Dispatcher configuration."
  2949. type: "object"
  2950. x-nullable: true
  2951. properties:
  2952. HeartbeatPeriod:
  2953. description: |
  2954. The delay for an agent to send a heartbeat to the dispatcher.
  2955. type: "integer"
  2956. format: "int64"
  2957. example: 5000000000
  2958. CAConfig:
  2959. description: "CA configuration."
  2960. type: "object"
  2961. x-nullable: true
  2962. properties:
  2963. NodeCertExpiry:
  2964. description: "The duration node certificates are issued for."
  2965. type: "integer"
  2966. format: "int64"
  2967. example: 7776000000000000
  2968. ExternalCAs:
  2969. description: |
  2970. Configuration for forwarding signing requests to an external
  2971. certificate authority.
  2972. type: "array"
  2973. items:
  2974. type: "object"
  2975. properties:
  2976. Protocol:
  2977. description: |
  2978. Protocol for communication with the external CA (currently
  2979. only `cfssl` is supported).
  2980. type: "string"
  2981. enum:
  2982. - "cfssl"
  2983. default: "cfssl"
  2984. URL:
  2985. description: |
  2986. URL where certificate signing requests should be sent.
  2987. type: "string"
  2988. Options:
  2989. description: |
  2990. An object with key/value pairs that are interpreted as
  2991. protocol-specific options for the external CA driver.
  2992. type: "object"
  2993. additionalProperties:
  2994. type: "string"
  2995. CACert:
  2996. description: |
  2997. The root CA certificate (in PEM format) this external CA uses
  2998. to issue TLS certificates (assumed to be to the current swarm
  2999. root CA certificate if not provided).
  3000. type: "string"
  3001. SigningCACert:
  3002. description: |
  3003. The desired signing CA certificate for all swarm node TLS leaf
  3004. certificates, in PEM format.
  3005. type: "string"
  3006. SigningCAKey:
  3007. description: |
  3008. The desired signing CA key for all swarm node TLS leaf certificates,
  3009. in PEM format.
  3010. type: "string"
  3011. ForceRotate:
  3012. description: |
  3013. An integer whose purpose is to force swarm to generate a new
  3014. signing CA certificate and key, if none have been specified in
  3015. `SigningCACert` and `SigningCAKey`
  3016. format: "uint64"
  3017. type: "integer"
  3018. EncryptionConfig:
  3019. description: "Parameters related to encryption-at-rest."
  3020. type: "object"
  3021. properties:
  3022. AutoLockManagers:
  3023. description: |
  3024. If set, generate a key and use it to lock data stored on the
  3025. managers.
  3026. type: "boolean"
  3027. example: false
  3028. TaskDefaults:
  3029. description: "Defaults for creating tasks in this cluster."
  3030. type: "object"
  3031. properties:
  3032. LogDriver:
  3033. description: |
  3034. The log driver to use for tasks created in the orchestrator if
  3035. unspecified by a service.
  3036. Updating this value only affects new tasks. Existing tasks continue
  3037. to use their previously configured log driver until recreated.
  3038. type: "object"
  3039. properties:
  3040. Name:
  3041. description: |
  3042. The log driver to use as a default for new tasks.
  3043. type: "string"
  3044. example: "json-file"
  3045. Options:
  3046. description: |
  3047. Driver-specific options for the selectd log driver, specified
  3048. as key/value pairs.
  3049. type: "object"
  3050. additionalProperties:
  3051. type: "string"
  3052. example:
  3053. "max-file": "10"
  3054. "max-size": "100m"
  3055. # The Swarm information for `GET /info`. It is the same as `GET /swarm`, but
  3056. # without `JoinTokens`.
  3057. ClusterInfo:
  3058. description: |
  3059. ClusterInfo represents information about the swarm as is returned by the
  3060. "/info" endpoint. Join-tokens are not included.
  3061. x-nullable: true
  3062. type: "object"
  3063. properties:
  3064. ID:
  3065. description: "The ID of the swarm."
  3066. type: "string"
  3067. example: "abajmipo7b4xz5ip2nrla6b11"
  3068. Version:
  3069. $ref: "#/definitions/ObjectVersion"
  3070. CreatedAt:
  3071. description: |
  3072. Date and time at which the swarm was initialised in
  3073. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  3074. type: "string"
  3075. format: "dateTime"
  3076. example: "2016-08-18T10:44:24.496525531Z"
  3077. UpdatedAt:
  3078. description: |
  3079. Date and time at which the swarm was last updated in
  3080. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
  3081. type: "string"
  3082. format: "dateTime"
  3083. example: "2017-08-09T07:09:37.632105588Z"
  3084. Spec:
  3085. $ref: "#/definitions/SwarmSpec"
  3086. TLSInfo:
  3087. $ref: "#/definitions/TLSInfo"
  3088. RootRotationInProgress:
  3089. description: |
  3090. Whether there is currently a root CA rotation in progress for the swarm
  3091. type: "boolean"
  3092. example: false
  3093. DataPathPort:
  3094. description: |
  3095. DataPathPort specifies the data path port number for data traffic.
  3096. Acceptable port range is 1024 to 49151.
  3097. If no port is set or is set to 0, the default port (4789) is used.
  3098. type: "integer"
  3099. format: "uint32"
  3100. default: 4789
  3101. example: 4789
  3102. DefaultAddrPool:
  3103. description: |
  3104. Default Address Pool specifies default subnet pools for global scope
  3105. networks.
  3106. type: "array"
  3107. items:
  3108. type: "string"
  3109. format: "CIDR"
  3110. example: ["10.10.0.0/16", "20.20.0.0/16"]
  3111. SubnetSize:
  3112. description: |
  3113. SubnetSize specifies the subnet size of the networks created from the
  3114. default subnet pool.
  3115. type: "integer"
  3116. format: "uint32"
  3117. maximum: 29
  3118. default: 24
  3119. example: 24
  3120. JoinTokens:
  3121. description: |
  3122. JoinTokens contains the tokens workers and managers need to join the swarm.
  3123. type: "object"
  3124. properties:
  3125. Worker:
  3126. description: |
  3127. The token workers can use to join the swarm.
  3128. type: "string"
  3129. example: "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-1awxwuwd3z9j1z3puu7rcgdbx"
  3130. Manager:
  3131. description: |
  3132. The token managers can use to join the swarm.
  3133. type: "string"
  3134. example: "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
  3135. Swarm:
  3136. type: "object"
  3137. allOf:
  3138. - $ref: "#/definitions/ClusterInfo"
  3139. - type: "object"
  3140. properties:
  3141. JoinTokens:
  3142. $ref: "#/definitions/JoinTokens"
  3143. TaskSpec:
  3144. description: "User modifiable task configuration."
  3145. type: "object"
  3146. properties:
  3147. PluginSpec:
  3148. type: "object"
  3149. description: |
  3150. Plugin spec for the service. *(Experimental release only.)*
  3151. <p><br /></p>
  3152. > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are
  3153. > mutually exclusive. PluginSpec is only used when the Runtime field
  3154. > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime
  3155. > field is set to `attachment`.
  3156. properties:
  3157. Name:
  3158. description: "The name or 'alias' to use for the plugin."
  3159. type: "string"
  3160. Remote:
  3161. description: "The plugin image reference to use."
  3162. type: "string"
  3163. Disabled:
  3164. description: "Disable the plugin once scheduled."
  3165. type: "boolean"
  3166. PluginPrivilege:
  3167. type: "array"
  3168. items:
  3169. $ref: "#/definitions/PluginPrivilege"
  3170. ContainerSpec:
  3171. type: "object"
  3172. description: |
  3173. Container spec for the service.
  3174. <p><br /></p>
  3175. > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are
  3176. > mutually exclusive. PluginSpec is only used when the Runtime field
  3177. > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime
  3178. > field is set to `attachment`.
  3179. properties:
  3180. Image:
  3181. description: "The image name to use for the container"
  3182. type: "string"
  3183. Labels:
  3184. description: "User-defined key/value data."
  3185. type: "object"
  3186. additionalProperties:
  3187. type: "string"
  3188. Command:
  3189. description: "The command to be run in the image."
  3190. type: "array"
  3191. items:
  3192. type: "string"
  3193. Args:
  3194. description: "Arguments to the command."
  3195. type: "array"
  3196. items:
  3197. type: "string"
  3198. Hostname:
  3199. description: |
  3200. The hostname to use for the container, as a valid
  3201. [RFC 1123](https://tools.ietf.org/html/rfc1123) hostname.
  3202. type: "string"
  3203. Env:
  3204. description: |
  3205. A list of environment variables in the form `VAR=value`.
  3206. type: "array"
  3207. items:
  3208. type: "string"
  3209. Dir:
  3210. description: "The working directory for commands to run in."
  3211. type: "string"
  3212. User:
  3213. description: "The user inside the container."
  3214. type: "string"
  3215. Groups:
  3216. type: "array"
  3217. description: |
  3218. A list of additional groups that the container process will run as.
  3219. items:
  3220. type: "string"
  3221. Privileges:
  3222. type: "object"
  3223. description: "Security options for the container"
  3224. properties:
  3225. CredentialSpec:
  3226. type: "object"
  3227. description: "CredentialSpec for managed service account (Windows only)"
  3228. properties:
  3229. Config:
  3230. type: "string"
  3231. example: "0bt9dmxjvjiqermk6xrop3ekq"
  3232. description: |
  3233. Load credential spec from a Swarm Config with the given ID.
  3234. The specified config must also be present in the Configs
  3235. field with the Runtime property set.
  3236. <p><br /></p>
  3237. > **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`,
  3238. > and `CredentialSpec.Config` are mutually exclusive.
  3239. File:
  3240. type: "string"
  3241. example: "spec.json"
  3242. description: |
  3243. Load credential spec from this file. The file is read by
  3244. the daemon, and must be present in the `CredentialSpecs`
  3245. subdirectory in the docker data directory, which defaults
  3246. to `C:\ProgramData\Docker\` on Windows.
  3247. For example, specifying `spec.json` loads
  3248. `C:\ProgramData\Docker\CredentialSpecs\spec.json`.
  3249. <p><br /></p>
  3250. > **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`,
  3251. > and `CredentialSpec.Config` are mutually exclusive.
  3252. Registry:
  3253. type: "string"
  3254. description: |
  3255. Load credential spec from this value in the Windows
  3256. registry. The specified registry value must be located in:
  3257. `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers\CredentialSpecs`
  3258. <p><br /></p>
  3259. > **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`,
  3260. > and `CredentialSpec.Config` are mutually exclusive.
  3261. SELinuxContext:
  3262. type: "object"
  3263. description: "SELinux labels of the container"
  3264. properties:
  3265. Disable:
  3266. type: "boolean"
  3267. description: "Disable SELinux"
  3268. User:
  3269. type: "string"
  3270. description: "SELinux user label"
  3271. Role:
  3272. type: "string"
  3273. description: "SELinux role label"
  3274. Type:
  3275. type: "string"
  3276. description: "SELinux type label"
  3277. Level:
  3278. type: "string"
  3279. description: "SELinux level label"
  3280. TTY:
  3281. description: "Whether a pseudo-TTY should be allocated."
  3282. type: "boolean"
  3283. OpenStdin:
  3284. description: "Open `stdin`"
  3285. type: "boolean"
  3286. ReadOnly:
  3287. description: "Mount the container's root filesystem as read only."
  3288. type: "boolean"
  3289. Mounts:
  3290. description: |
  3291. Specification for mounts to be added to containers created as part
  3292. of the service.
  3293. type: "array"
  3294. items:
  3295. $ref: "#/definitions/Mount"
  3296. StopSignal:
  3297. description: "Signal to stop the container."
  3298. type: "string"
  3299. StopGracePeriod:
  3300. description: |
  3301. Amount of time to wait for the container to terminate before
  3302. forcefully killing it.
  3303. type: "integer"
  3304. format: "int64"
  3305. HealthCheck:
  3306. $ref: "#/definitions/HealthConfig"
  3307. Hosts:
  3308. type: "array"
  3309. description: |
  3310. A list of hostname/IP mappings to add to the container's `hosts`
  3311. file. The format of extra hosts is specified in the
  3312. [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html)
  3313. man page:
  3314. IP_address canonical_hostname [aliases...]
  3315. items:
  3316. type: "string"
  3317. DNSConfig:
  3318. description: |
  3319. Specification for DNS related configurations in resolver configuration
  3320. file (`resolv.conf`).
  3321. type: "object"
  3322. properties:
  3323. Nameservers:
  3324. description: "The IP addresses of the name servers."
  3325. type: "array"
  3326. items:
  3327. type: "string"
  3328. Search:
  3329. description: "A search list for host-name lookup."
  3330. type: "array"
  3331. items:
  3332. type: "string"
  3333. Options:
  3334. description: |
  3335. A list of internal resolver variables to be modified (e.g.,
  3336. `debug`, `ndots:3`, etc.).
  3337. type: "array"
  3338. items:
  3339. type: "string"
  3340. Secrets:
  3341. description: |
  3342. Secrets contains references to zero or more secrets that will be
  3343. exposed to the service.
  3344. type: "array"
  3345. items:
  3346. type: "object"
  3347. properties:
  3348. File:
  3349. description: |
  3350. File represents a specific target that is backed by a file.
  3351. type: "object"
  3352. properties:
  3353. Name:
  3354. description: |
  3355. Name represents the final filename in the filesystem.
  3356. type: "string"
  3357. UID:
  3358. description: "UID represents the file UID."
  3359. type: "string"
  3360. GID:
  3361. description: "GID represents the file GID."
  3362. type: "string"
  3363. Mode:
  3364. description: "Mode represents the FileMode of the file."
  3365. type: "integer"
  3366. format: "uint32"
  3367. SecretID:
  3368. description: |
  3369. SecretID represents the ID of the specific secret that we're
  3370. referencing.
  3371. type: "string"
  3372. SecretName:
  3373. description: |
  3374. SecretName is the name of the secret that this references,
  3375. but this is just provided for lookup/display purposes. The
  3376. secret in the reference will be identified by its ID.
  3377. type: "string"
  3378. Configs:
  3379. description: |
  3380. Configs contains references to zero or more configs that will be
  3381. exposed to the service.
  3382. type: "array"
  3383. items:
  3384. type: "object"
  3385. properties:
  3386. File:
  3387. description: |
  3388. File represents a specific target that is backed by a file.
  3389. <p><br /><p>
  3390. > **Note**: `Configs.File` and `Configs.Runtime` are mutually exclusive
  3391. type: "object"
  3392. properties:
  3393. Name:
  3394. description: |
  3395. Name represents the final filename in the filesystem.
  3396. type: "string"
  3397. UID:
  3398. description: "UID represents the file UID."
  3399. type: "string"
  3400. GID:
  3401. description: "GID represents the file GID."
  3402. type: "string"
  3403. Mode:
  3404. description: "Mode represents the FileMode of the file."
  3405. type: "integer"
  3406. format: "uint32"
  3407. Runtime:
  3408. description: |
  3409. Runtime represents a target that is not mounted into the
  3410. container but is used by the task
  3411. <p><br /><p>
  3412. > **Note**: `Configs.File` and `Configs.Runtime` are mutually
  3413. > exclusive
  3414. type: "object"
  3415. ConfigID:
  3416. description: |
  3417. ConfigID represents the ID of the specific config that we're
  3418. referencing.
  3419. type: "string"
  3420. ConfigName:
  3421. description: |
  3422. ConfigName is the name of the config that this references,
  3423. but this is just provided for lookup/display purposes. The
  3424. config in the reference will be identified by its ID.
  3425. type: "string"
  3426. Isolation:
  3427. type: "string"
  3428. description: |
  3429. Isolation technology of the containers running the service.
  3430. (Windows only)
  3431. enum:
  3432. - "default"
  3433. - "process"
  3434. - "hyperv"
  3435. Init:
  3436. description: |
  3437. Run an init inside the container that forwards signals and reaps
  3438. processes. This field is omitted if empty, and the default (as
  3439. configured on the daemon) is used.
  3440. type: "boolean"
  3441. x-nullable: true
  3442. Sysctls:
  3443. description: |
  3444. Set kernel namedspaced parameters (sysctls) in the container.
  3445. The Sysctls option on services accepts the same sysctls as the
  3446. are supported on containers. Note that while the same sysctls are
  3447. supported, no guarantees or checks are made about their
  3448. suitability for a clustered environment, and it's up to the user
  3449. to determine whether a given sysctl will work properly in a
  3450. Service.
  3451. type: "object"
  3452. additionalProperties:
  3453. type: "string"
  3454. NetworkAttachmentSpec:
  3455. description: |
  3456. Read-only spec type for non-swarm containers attached to swarm overlay
  3457. networks.
  3458. <p><br /></p>
  3459. > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are
  3460. > mutually exclusive. PluginSpec is only used when the Runtime field
  3461. > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime
  3462. > field is set to `attachment`.
  3463. type: "object"
  3464. properties:
  3465. ContainerID:
  3466. description: "ID of the container represented by this task"
  3467. type: "string"
  3468. Resources:
  3469. description: |
  3470. Resource requirements which apply to each individual container created
  3471. as part of the service.
  3472. type: "object"
  3473. properties:
  3474. Limits:
  3475. description: "Define resources limits."
  3476. $ref: "#/definitions/ResourceObject"
  3477. Reservations:
  3478. description: "Define resources reservation."
  3479. $ref: "#/definitions/ResourceObject"
  3480. RestartPolicy:
  3481. description: |
  3482. Specification for the restart policy which applies to containers
  3483. created as part of this service.
  3484. type: "object"
  3485. properties:
  3486. Condition:
  3487. description: "Condition for restart."
  3488. type: "string"
  3489. enum:
  3490. - "none"
  3491. - "on-failure"
  3492. - "any"
  3493. Delay:
  3494. description: "Delay between restart attempts."
  3495. type: "integer"
  3496. format: "int64"
  3497. MaxAttempts:
  3498. description: |
  3499. Maximum attempts to restart a given container before giving up
  3500. (default value is 0, which is ignored).
  3501. type: "integer"
  3502. format: "int64"
  3503. default: 0
  3504. Window:
  3505. description: |
  3506. Windows is the time window used to evaluate the restart policy
  3507. (default value is 0, which is unbounded).
  3508. type: "integer"
  3509. format: "int64"
  3510. default: 0
  3511. Placement:
  3512. type: "object"
  3513. properties:
  3514. Constraints:
  3515. description: |
  3516. An array of constraint expressions to limit the set of nodes where
  3517. a task can be scheduled. Constraint expressions can either use a
  3518. _match_ (`==`) or _exclude_ (`!=`) rule. Multiple constraints find
  3519. nodes that satisfy every expression (AND match). Constraints can
  3520. match node or Docker Engine labels as follows:
  3521. node attribute | matches | example
  3522. ---------------------|--------------------------------|-----------------------------------------------
  3523. `node.id` | Node ID | `node.id==2ivku8v2gvtg4`
  3524. `node.hostname` | Node hostname | `node.hostname!=node-2`
  3525. `node.role` | Node role (`manager`/`worker`) | `node.role==manager`
  3526. `node.platform.os` | Node operating system | `node.platform.os==windows`
  3527. `node.platform.arch` | Node architecture | `node.platform.arch==x86_64`
  3528. `node.labels` | User-defined node labels | `node.labels.security==high`
  3529. `engine.labels` | Docker Engine's labels | `engine.labels.operatingsystem==ubuntu-14.04`
  3530. `engine.labels` apply to Docker Engine labels like operating system,
  3531. drivers, etc. Swarm administrators add `node.labels` for operational
  3532. purposes by using the [`node update endpoint`](#operation/NodeUpdate).
  3533. type: "array"
  3534. items:
  3535. type: "string"
  3536. example:
  3537. - "node.hostname!=node3.corp.example.com"
  3538. - "node.role!=manager"
  3539. - "node.labels.type==production"
  3540. - "node.platform.os==linux"
  3541. - "node.platform.arch==x86_64"
  3542. Preferences:
  3543. description: |
  3544. Preferences provide a way to make the scheduler aware of factors
  3545. such as topology. They are provided in order from highest to
  3546. lowest precedence.
  3547. type: "array"
  3548. items:
  3549. type: "object"
  3550. properties:
  3551. Spread:
  3552. type: "object"
  3553. properties:
  3554. SpreadDescriptor:
  3555. description: |
  3556. label descriptor, such as `engine.labels.az`.
  3557. type: "string"
  3558. example:
  3559. - Spread:
  3560. SpreadDescriptor: "node.labels.datacenter"
  3561. - Spread:
  3562. SpreadDescriptor: "node.labels.rack"
  3563. MaxReplicas:
  3564. description: |
  3565. Maximum number of replicas for per node (default value is 0, which
  3566. is unlimited)
  3567. type: "integer"
  3568. format: "int64"
  3569. default: 0
  3570. Platforms:
  3571. description: |
  3572. Platforms stores all the platforms that the service's image can
  3573. run on. This field is used in the platform filter for scheduling.
  3574. If empty, then the platform filter is off, meaning there are no
  3575. scheduling restrictions.
  3576. type: "array"
  3577. items:
  3578. $ref: "#/definitions/Platform"
  3579. ForceUpdate:
  3580. description: |
  3581. A counter that triggers an update even if no relevant parameters have
  3582. been changed.
  3583. type: "integer"
  3584. Runtime:
  3585. description: |
  3586. Runtime is the type of runtime specified for the task executor.
  3587. type: "string"
  3588. Networks:
  3589. description: "Specifies which networks the service should attach to."
  3590. type: "array"
  3591. items:
  3592. $ref: "#/definitions/NetworkAttachmentConfig"
  3593. LogDriver:
  3594. description: |
  3595. Specifies the log driver to use for tasks created from this spec. If
  3596. not present, the default one for the swarm will be used, finally
  3597. falling back to the engine default if not specified.
  3598. type: "object"
  3599. properties:
  3600. Name:
  3601. type: "string"
  3602. Options:
  3603. type: "object"
  3604. additionalProperties:
  3605. type: "string"
  3606. TaskState:
  3607. type: "string"
  3608. enum:
  3609. - "new"
  3610. - "allocated"
  3611. - "pending"
  3612. - "assigned"
  3613. - "accepted"
  3614. - "preparing"
  3615. - "ready"
  3616. - "starting"
  3617. - "running"
  3618. - "complete"
  3619. - "shutdown"
  3620. - "failed"
  3621. - "rejected"
  3622. - "remove"
  3623. - "orphaned"
  3624. Task:
  3625. type: "object"
  3626. properties:
  3627. ID:
  3628. description: "The ID of the task."
  3629. type: "string"
  3630. Version:
  3631. $ref: "#/definitions/ObjectVersion"
  3632. CreatedAt:
  3633. type: "string"
  3634. format: "dateTime"
  3635. UpdatedAt:
  3636. type: "string"
  3637. format: "dateTime"
  3638. Name:
  3639. description: "Name of the task."
  3640. type: "string"
  3641. Labels:
  3642. description: "User-defined key/value metadata."
  3643. type: "object"
  3644. additionalProperties:
  3645. type: "string"
  3646. Spec:
  3647. $ref: "#/definitions/TaskSpec"
  3648. ServiceID:
  3649. description: "The ID of the service this task is part of."
  3650. type: "string"
  3651. Slot:
  3652. type: "integer"
  3653. NodeID:
  3654. description: "The ID of the node that this task is on."
  3655. type: "string"
  3656. AssignedGenericResources:
  3657. $ref: "#/definitions/GenericResources"
  3658. Status:
  3659. type: "object"
  3660. properties:
  3661. Timestamp:
  3662. type: "string"
  3663. format: "dateTime"
  3664. State:
  3665. $ref: "#/definitions/TaskState"
  3666. Message:
  3667. type: "string"
  3668. Err:
  3669. type: "string"
  3670. ContainerStatus:
  3671. type: "object"
  3672. properties:
  3673. ContainerID:
  3674. type: "string"
  3675. PID:
  3676. type: "integer"
  3677. ExitCode:
  3678. type: "integer"
  3679. DesiredState:
  3680. $ref: "#/definitions/TaskState"
  3681. example:
  3682. ID: "0kzzo1i0y4jz6027t0k7aezc7"
  3683. Version:
  3684. Index: 71
  3685. CreatedAt: "2016-06-07T21:07:31.171892745Z"
  3686. UpdatedAt: "2016-06-07T21:07:31.376370513Z"
  3687. Spec:
  3688. ContainerSpec:
  3689. Image: "redis"
  3690. Resources:
  3691. Limits: {}
  3692. Reservations: {}
  3693. RestartPolicy:
  3694. Condition: "any"
  3695. MaxAttempts: 0
  3696. Placement: {}
  3697. ServiceID: "9mnpnzenvg8p8tdbtq4wvbkcz"
  3698. Slot: 1
  3699. NodeID: "60gvrl6tm78dmak4yl7srz94v"
  3700. Status:
  3701. Timestamp: "2016-06-07T21:07:31.290032978Z"
  3702. State: "running"
  3703. Message: "started"
  3704. ContainerStatus:
  3705. ContainerID: "e5d62702a1b48d01c3e02ca1e0212a250801fa8d67caca0b6f35919ebc12f035"
  3706. PID: 677
  3707. DesiredState: "running"
  3708. NetworksAttachments:
  3709. - Network:
  3710. ID: "4qvuz4ko70xaltuqbt8956gd1"
  3711. Version:
  3712. Index: 18
  3713. CreatedAt: "2016-06-07T20:31:11.912919752Z"
  3714. UpdatedAt: "2016-06-07T21:07:29.955277358Z"
  3715. Spec:
  3716. Name: "ingress"
  3717. Labels:
  3718. com.docker.swarm.internal: "true"
  3719. DriverConfiguration: {}
  3720. IPAMOptions:
  3721. Driver: {}
  3722. Configs:
  3723. - Subnet: "10.255.0.0/16"
  3724. Gateway: "10.255.0.1"
  3725. DriverState:
  3726. Name: "overlay"
  3727. Options:
  3728. com.docker.network.driver.overlay.vxlanid_list: "256"
  3729. IPAMOptions:
  3730. Driver:
  3731. Name: "default"
  3732. Configs:
  3733. - Subnet: "10.255.0.0/16"
  3734. Gateway: "10.255.0.1"
  3735. Addresses:
  3736. - "10.255.0.10/16"
  3737. AssignedGenericResources:
  3738. - DiscreteResourceSpec:
  3739. Kind: "SSD"
  3740. Value: 3
  3741. - NamedResourceSpec:
  3742. Kind: "GPU"
  3743. Value: "UUID1"
  3744. - NamedResourceSpec:
  3745. Kind: "GPU"
  3746. Value: "UUID2"
  3747. ServiceSpec:
  3748. description: "User modifiable configuration for a service."
  3749. type: object
  3750. properties:
  3751. Name:
  3752. description: "Name of the service."
  3753. type: "string"
  3754. Labels:
  3755. description: "User-defined key/value metadata."
  3756. type: "object"
  3757. additionalProperties:
  3758. type: "string"
  3759. TaskTemplate:
  3760. $ref: "#/definitions/TaskSpec"
  3761. Mode:
  3762. description: "Scheduling mode for the service."
  3763. type: "object"
  3764. properties:
  3765. Replicated:
  3766. type: "object"
  3767. properties:
  3768. Replicas:
  3769. type: "integer"
  3770. format: "int64"
  3771. Global:
  3772. type: "object"
  3773. UpdateConfig:
  3774. description: "Specification for the update strategy of the service."
  3775. type: "object"
  3776. properties:
  3777. Parallelism:
  3778. description: |
  3779. Maximum number of tasks to be updated in one iteration (0 means
  3780. unlimited parallelism).
  3781. type: "integer"
  3782. format: "int64"
  3783. Delay:
  3784. description: "Amount of time between updates, in nanoseconds."
  3785. type: "integer"
  3786. format: "int64"
  3787. FailureAction:
  3788. description: |
  3789. Action to take if an updated task fails to run, or stops running
  3790. during the update.
  3791. type: "string"
  3792. enum:
  3793. - "continue"
  3794. - "pause"
  3795. - "rollback"
  3796. Monitor:
  3797. description: |
  3798. Amount of time to monitor each updated task for failures, in
  3799. nanoseconds.
  3800. type: "integer"
  3801. format: "int64"
  3802. MaxFailureRatio:
  3803. description: |
  3804. The fraction of tasks that may fail during an update before the
  3805. failure action is invoked, specified as a floating point number
  3806. between 0 and 1.
  3807. type: "number"
  3808. default: 0
  3809. Order:
  3810. description: |
  3811. The order of operations when rolling out an updated task. Either
  3812. the old task is shut down before the new task is started, or the
  3813. new task is started before the old task is shut down.
  3814. type: "string"
  3815. enum:
  3816. - "stop-first"
  3817. - "start-first"
  3818. RollbackConfig:
  3819. description: "Specification for the rollback strategy of the service."
  3820. type: "object"
  3821. properties:
  3822. Parallelism:
  3823. description: |
  3824. Maximum number of tasks to be rolled back in one iteration (0 means
  3825. unlimited parallelism).
  3826. type: "integer"
  3827. format: "int64"
  3828. Delay:
  3829. description: |
  3830. Amount of time between rollback iterations, in nanoseconds.
  3831. type: "integer"
  3832. format: "int64"
  3833. FailureAction:
  3834. description: |
  3835. Action to take if an rolled back task fails to run, or stops
  3836. running during the rollback.
  3837. type: "string"
  3838. enum:
  3839. - "continue"
  3840. - "pause"
  3841. Monitor:
  3842. description: |
  3843. Amount of time to monitor each rolled back task for failures, in
  3844. nanoseconds.
  3845. type: "integer"
  3846. format: "int64"
  3847. MaxFailureRatio:
  3848. description: |
  3849. The fraction of tasks that may fail during a rollback before the
  3850. failure action is invoked, specified as a floating point number
  3851. between 0 and 1.
  3852. type: "number"
  3853. default: 0
  3854. Order:
  3855. description: |
  3856. The order of operations when rolling back a task. Either the old
  3857. task is shut down before the new task is started, or the new task
  3858. is started before the old task is shut down.
  3859. type: "string"
  3860. enum:
  3861. - "stop-first"
  3862. - "start-first"
  3863. Networks:
  3864. description: "Specifies which networks the service should attach to."
  3865. type: "array"
  3866. items:
  3867. $ref: "#/definitions/NetworkAttachmentConfig"
  3868. EndpointSpec:
  3869. $ref: "#/definitions/EndpointSpec"
  3870. EndpointPortConfig:
  3871. type: "object"
  3872. properties:
  3873. Name:
  3874. type: "string"
  3875. Protocol:
  3876. type: "string"
  3877. enum:
  3878. - "tcp"
  3879. - "udp"
  3880. - "sctp"
  3881. TargetPort:
  3882. description: "The port inside the container."
  3883. type: "integer"
  3884. PublishedPort:
  3885. description: "The port on the swarm hosts."
  3886. type: "integer"
  3887. PublishMode:
  3888. description: |
  3889. The mode in which port is published.
  3890. <p><br /></p>
  3891. - "ingress" makes the target port accessible on every node,
  3892. regardless of whether there is a task for the service running on
  3893. that node or not.
  3894. - "host" bypasses the routing mesh and publish the port directly on
  3895. the swarm node where that service is running.
  3896. type: "string"
  3897. enum:
  3898. - "ingress"
  3899. - "host"
  3900. default: "ingress"
  3901. example: "ingress"
  3902. EndpointSpec:
  3903. description: "Properties that can be configured to access and load balance a service."
  3904. type: "object"
  3905. properties:
  3906. Mode:
  3907. description: |
  3908. The mode of resolution to use for internal load balancing between tasks.
  3909. type: "string"
  3910. enum:
  3911. - "vip"
  3912. - "dnsrr"
  3913. default: "vip"
  3914. Ports:
  3915. description: |
  3916. List of exposed ports that this service is accessible on from the
  3917. outside. Ports can only be provided if `vip` resolution mode is used.
  3918. type: "array"
  3919. items:
  3920. $ref: "#/definitions/EndpointPortConfig"
  3921. Service:
  3922. type: "object"
  3923. properties:
  3924. ID:
  3925. type: "string"
  3926. Version:
  3927. $ref: "#/definitions/ObjectVersion"
  3928. CreatedAt:
  3929. type: "string"
  3930. format: "dateTime"
  3931. UpdatedAt:
  3932. type: "string"
  3933. format: "dateTime"
  3934. Spec:
  3935. $ref: "#/definitions/ServiceSpec"
  3936. Endpoint:
  3937. type: "object"
  3938. properties:
  3939. Spec:
  3940. $ref: "#/definitions/EndpointSpec"
  3941. Ports:
  3942. type: "array"
  3943. items:
  3944. $ref: "#/definitions/EndpointPortConfig"
  3945. VirtualIPs:
  3946. type: "array"
  3947. items:
  3948. type: "object"
  3949. properties:
  3950. NetworkID:
  3951. type: "string"
  3952. Addr:
  3953. type: "string"
  3954. UpdateStatus:
  3955. description: "The status of a service update."
  3956. type: "object"
  3957. properties:
  3958. State:
  3959. type: "string"
  3960. enum:
  3961. - "updating"
  3962. - "paused"
  3963. - "completed"
  3964. StartedAt:
  3965. type: "string"
  3966. format: "dateTime"
  3967. CompletedAt:
  3968. type: "string"
  3969. format: "dateTime"
  3970. Message:
  3971. type: "string"
  3972. example:
  3973. ID: "9mnpnzenvg8p8tdbtq4wvbkcz"
  3974. Version:
  3975. Index: 19
  3976. CreatedAt: "2016-06-07T21:05:51.880065305Z"
  3977. UpdatedAt: "2016-06-07T21:07:29.962229872Z"
  3978. Spec:
  3979. Name: "hopeful_cori"
  3980. TaskTemplate:
  3981. ContainerSpec:
  3982. Image: "redis"
  3983. Resources:
  3984. Limits: {}
  3985. Reservations: {}
  3986. RestartPolicy:
  3987. Condition: "any"
  3988. MaxAttempts: 0
  3989. Placement: {}
  3990. ForceUpdate: 0
  3991. Mode:
  3992. Replicated:
  3993. Replicas: 1
  3994. UpdateConfig:
  3995. Parallelism: 1
  3996. Delay: 1000000000
  3997. FailureAction: "pause"
  3998. Monitor: 15000000000
  3999. MaxFailureRatio: 0.15
  4000. RollbackConfig:
  4001. Parallelism: 1
  4002. Delay: 1000000000
  4003. FailureAction: "pause"
  4004. Monitor: 15000000000
  4005. MaxFailureRatio: 0.15
  4006. EndpointSpec:
  4007. Mode: "vip"
  4008. Ports:
  4009. -
  4010. Protocol: "tcp"
  4011. TargetPort: 6379
  4012. PublishedPort: 30001
  4013. Endpoint:
  4014. Spec:
  4015. Mode: "vip"
  4016. Ports:
  4017. -
  4018. Protocol: "tcp"
  4019. TargetPort: 6379
  4020. PublishedPort: 30001
  4021. Ports:
  4022. -
  4023. Protocol: "tcp"
  4024. TargetPort: 6379
  4025. PublishedPort: 30001
  4026. VirtualIPs:
  4027. -
  4028. NetworkID: "4qvuz4ko70xaltuqbt8956gd1"
  4029. Addr: "10.255.0.2/16"
  4030. -
  4031. NetworkID: "4qvuz4ko70xaltuqbt8956gd1"
  4032. Addr: "10.255.0.3/16"
  4033. ImageDeleteResponseItem:
  4034. type: "object"
  4035. properties:
  4036. Untagged:
  4037. description: "The image ID of an image that was untagged"
  4038. type: "string"
  4039. Deleted:
  4040. description: "The image ID of an image that was deleted"
  4041. type: "string"
  4042. ServiceUpdateResponse:
  4043. type: "object"
  4044. properties:
  4045. Warnings:
  4046. description: "Optional warning messages"
  4047. type: "array"
  4048. items:
  4049. type: "string"
  4050. example:
  4051. Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
  4052. ContainerSummary:
  4053. type: "object"
  4054. properties:
  4055. Id:
  4056. description: "The ID of this container"
  4057. type: "string"
  4058. x-go-name: "ID"
  4059. Names:
  4060. description: "The names that this container has been given"
  4061. type: "array"
  4062. items:
  4063. type: "string"
  4064. Image:
  4065. description: "The name of the image used when creating this container"
  4066. type: "string"
  4067. ImageID:
  4068. description: "The ID of the image that this container was created from"
  4069. type: "string"
  4070. Command:
  4071. description: "Command to run when starting the container"
  4072. type: "string"
  4073. Created:
  4074. description: "When the container was created"
  4075. type: "integer"
  4076. format: "int64"
  4077. Ports:
  4078. description: "The ports exposed by this container"
  4079. type: "array"
  4080. items:
  4081. $ref: "#/definitions/Port"
  4082. SizeRw:
  4083. description: "The size of files that have been created or changed by this container"
  4084. type: "integer"
  4085. format: "int64"
  4086. SizeRootFs:
  4087. description: "The total size of all the files in this container"
  4088. type: "integer"
  4089. format: "int64"
  4090. Labels:
  4091. description: "User-defined key/value metadata."
  4092. type: "object"
  4093. additionalProperties:
  4094. type: "string"
  4095. State:
  4096. description: "The state of this container (e.g. `Exited`)"
  4097. type: "string"
  4098. Status:
  4099. description: "Additional human-readable status of this container (e.g. `Exit 0`)"
  4100. type: "string"
  4101. HostConfig:
  4102. type: "object"
  4103. properties:
  4104. NetworkMode:
  4105. type: "string"
  4106. NetworkSettings:
  4107. description: "A summary of the container's network settings"
  4108. type: "object"
  4109. properties:
  4110. Networks:
  4111. type: "object"
  4112. additionalProperties:
  4113. $ref: "#/definitions/EndpointSettings"
  4114. Mounts:
  4115. type: "array"
  4116. items:
  4117. $ref: "#/definitions/MountPoint"
  4118. Driver:
  4119. description: "Driver represents a driver (network, logging, secrets)."
  4120. type: "object"
  4121. required: [Name]
  4122. properties:
  4123. Name:
  4124. description: "Name of the driver."
  4125. type: "string"
  4126. x-nullable: false
  4127. example: "some-driver"
  4128. Options:
  4129. description: "Key/value map of driver-specific options."
  4130. type: "object"
  4131. x-nullable: false
  4132. additionalProperties:
  4133. type: "string"
  4134. example:
  4135. OptionA: "value for driver-specific option A"
  4136. OptionB: "value for driver-specific option B"
  4137. SecretSpec:
  4138. type: "object"
  4139. properties:
  4140. Name:
  4141. description: "User-defined name of the secret."
  4142. type: "string"
  4143. Labels:
  4144. description: "User-defined key/value metadata."
  4145. type: "object"
  4146. additionalProperties:
  4147. type: "string"
  4148. example:
  4149. com.example.some-label: "some-value"
  4150. com.example.some-other-label: "some-other-value"
  4151. Data:
  4152. description: |
  4153. Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
  4154. data to store as secret.
  4155. This field is only used to _create_ a secret, and is not returned by
  4156. other endpoints.
  4157. type: "string"
  4158. example: ""
  4159. Driver:
  4160. description: |
  4161. Name of the secrets driver used to fetch the secret's value from an
  4162. external secret store.
  4163. $ref: "#/definitions/Driver"
  4164. Templating:
  4165. description: |
  4166. Templating driver, if applicable
  4167. Templating controls whether and how to evaluate the config payload as
  4168. a template. If no driver is set, no templating is used.
  4169. $ref: "#/definitions/Driver"
  4170. Secret:
  4171. type: "object"
  4172. properties:
  4173. ID:
  4174. type: "string"
  4175. example: "blt1owaxmitz71s9v5zh81zun"
  4176. Version:
  4177. $ref: "#/definitions/ObjectVersion"
  4178. CreatedAt:
  4179. type: "string"
  4180. format: "dateTime"
  4181. example: "2017-07-20T13:55:28.678958722Z"
  4182. UpdatedAt:
  4183. type: "string"
  4184. format: "dateTime"
  4185. example: "2017-07-20T13:55:28.678958722Z"
  4186. Spec:
  4187. $ref: "#/definitions/SecretSpec"
  4188. ConfigSpec:
  4189. type: "object"
  4190. properties:
  4191. Name:
  4192. description: "User-defined name of the config."
  4193. type: "string"
  4194. Labels:
  4195. description: "User-defined key/value metadata."
  4196. type: "object"
  4197. additionalProperties:
  4198. type: "string"
  4199. Data:
  4200. description: |
  4201. Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
  4202. config data.
  4203. type: "string"
  4204. Templating:
  4205. description: |
  4206. Templating driver, if applicable
  4207. Templating controls whether and how to evaluate the config payload as
  4208. a template. If no driver is set, no templating is used.
  4209. $ref: "#/definitions/Driver"
  4210. Config:
  4211. type: "object"
  4212. properties:
  4213. ID:
  4214. type: "string"
  4215. Version:
  4216. $ref: "#/definitions/ObjectVersion"
  4217. CreatedAt:
  4218. type: "string"
  4219. format: "dateTime"
  4220. UpdatedAt:
  4221. type: "string"
  4222. format: "dateTime"
  4223. Spec:
  4224. $ref: "#/definitions/ConfigSpec"
  4225. ContainerState:
  4226. description: |
  4227. ContainerState stores container's running state. It's part of ContainerJSONBase
  4228. and will be returned by the "inspect" command.
  4229. type: "object"
  4230. x-nullable: true
  4231. properties:
  4232. Status:
  4233. description: |
  4234. String representation of the container state. Can be one of "created",
  4235. "running", "paused", "restarting", "removing", "exited", or "dead".
  4236. type: "string"
  4237. enum: ["created", "running", "paused", "restarting", "removing", "exited", "dead"]
  4238. example: "running"
  4239. Running:
  4240. description: |
  4241. Whether this container is running.
  4242. Note that a running container can be _paused_. The `Running` and `Paused`
  4243. booleans are not mutually exclusive:
  4244. When pausing a container (on Linux), the freezer cgroup is used to suspend
  4245. all processes in the container. Freezing the process requires the process to
  4246. be running. As a result, paused containers are both `Running` _and_ `Paused`.
  4247. Use the `Status` field instead to determine if a container's state is "running".
  4248. type: "boolean"
  4249. example: true
  4250. Paused:
  4251. description: "Whether this container is paused."
  4252. type: "boolean"
  4253. example: false
  4254. Restarting:
  4255. description: "Whether this container is restarting."
  4256. type: "boolean"
  4257. example: false
  4258. OOMKilled:
  4259. description: |
  4260. Whether this container has been killed because it ran out of memory.
  4261. type: "boolean"
  4262. example: false
  4263. Dead:
  4264. type: "boolean"
  4265. example: false
  4266. Pid:
  4267. description: "The process ID of this container"
  4268. type: "integer"
  4269. example: 1234
  4270. ExitCode:
  4271. description: "The last exit code of this container"
  4272. type: "integer"
  4273. example: 0
  4274. Error:
  4275. type: "string"
  4276. StartedAt:
  4277. description: "The time when this container was last started."
  4278. type: "string"
  4279. example: "2020-01-06T09:06:59.461876391Z"
  4280. FinishedAt:
  4281. description: "The time when this container last exited."
  4282. type: "string"
  4283. example: "2020-01-06T09:07:59.461876391Z"
  4284. Health:
  4285. $ref: "#/definitions/Health"
  4286. ContainerWaitResponse:
  4287. description: "OK response to ContainerWait operation"
  4288. type: "object"
  4289. x-go-name: "ContainerWaitOKBody"
  4290. title: "ContainerWaitResponse"
  4291. required: [StatusCode]
  4292. properties:
  4293. StatusCode:
  4294. description: "Exit code of the container"
  4295. type: "integer"
  4296. format: "int64"
  4297. x-nullable: false
  4298. Error:
  4299. $ref: "#/definitions/ContainerWaitExitError"
  4300. ContainerWaitExitError:
  4301. description: "container waiting error, if any"
  4302. type: "object"
  4303. x-go-name: "ContainerWaitOKBodyError"
  4304. properties:
  4305. Message:
  4306. description: "Details of an error"
  4307. type: "string"
  4308. SystemVersion:
  4309. type: "object"
  4310. description: |
  4311. Response of Engine API: GET "/version"
  4312. properties:
  4313. Platform:
  4314. type: "object"
  4315. required: [Name]
  4316. properties:
  4317. Name:
  4318. type: "string"
  4319. Components:
  4320. type: "array"
  4321. description: |
  4322. Information about system components
  4323. items:
  4324. type: "object"
  4325. x-go-name: ComponentVersion
  4326. required: [Name, Version]
  4327. properties:
  4328. Name:
  4329. description: |
  4330. Name of the component
  4331. type: "string"
  4332. example: "Engine"
  4333. Version:
  4334. description: |
  4335. Version of the component
  4336. type: "string"
  4337. x-nullable: false
  4338. example: "19.03.12"
  4339. Details:
  4340. description: |
  4341. Key/value pairs of strings with additional information about the
  4342. component. These values are intended for informational purposes
  4343. only, and their content is not defined, and not part of the API
  4344. specification.
  4345. These messages can be printed by the client as information to the user.
  4346. type: "object"
  4347. x-nullable: true
  4348. Version:
  4349. description: "The version of the daemon"
  4350. type: "string"
  4351. example: "19.03.12"
  4352. ApiVersion:
  4353. description: |
  4354. The default (and highest) API version that is supported by the daemon
  4355. type: "string"
  4356. example: "1.40"
  4357. MinAPIVersion:
  4358. description: |
  4359. The minimum API version that is supported by the daemon
  4360. type: "string"
  4361. example: "1.12"
  4362. GitCommit:
  4363. description: |
  4364. The Git commit of the source code that was used to build the daemon
  4365. type: "string"
  4366. example: "48a66213fe"
  4367. GoVersion:
  4368. description: |
  4369. The version Go used to compile the daemon, and the version of the Go
  4370. runtime in use.
  4371. type: "string"
  4372. example: "go1.13.14"
  4373. Os:
  4374. description: |
  4375. The operating system that the daemon is running on ("linux" or "windows")
  4376. type: "string"
  4377. example: "linux"
  4378. Arch:
  4379. description: |
  4380. The architecture that the daemon is running on
  4381. type: "string"
  4382. example: "amd64"
  4383. KernelVersion:
  4384. description: |
  4385. The kernel version (`uname -r`) that the daemon is running on.
  4386. This field is omitted when empty.
  4387. type: "string"
  4388. example: "4.19.76-linuxkit"
  4389. Experimental:
  4390. description: |
  4391. Indicates if the daemon is started with experimental features enabled.
  4392. This field is omitted when empty / false.
  4393. type: "boolean"
  4394. example: true
  4395. BuildTime:
  4396. description: |
  4397. The date and time that the daemon was compiled.
  4398. type: "string"
  4399. example: "2020-06-22T15:49:27.000000000+00:00"
  4400. SystemInfo:
  4401. type: "object"
  4402. properties:
  4403. ID:
  4404. description: |
  4405. Unique identifier of the daemon.
  4406. <p><br /></p>
  4407. > **Note**: The format of the ID itself is not part of the API, and
  4408. > should not be considered stable.
  4409. type: "string"
  4410. example: "7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS"
  4411. Containers:
  4412. description: "Total number of containers on the host."
  4413. type: "integer"
  4414. example: 14
  4415. ContainersRunning:
  4416. description: |
  4417. Number of containers with status `"running"`.
  4418. type: "integer"
  4419. example: 3
  4420. ContainersPaused:
  4421. description: |
  4422. Number of containers with status `"paused"`.
  4423. type: "integer"
  4424. example: 1
  4425. ContainersStopped:
  4426. description: |
  4427. Number of containers with status `"stopped"`.
  4428. type: "integer"
  4429. example: 10
  4430. Images:
  4431. description: |
  4432. Total number of images on the host.
  4433. Both _tagged_ and _untagged_ (dangling) images are counted.
  4434. type: "integer"
  4435. example: 508
  4436. Driver:
  4437. description: "Name of the storage driver in use."
  4438. type: "string"
  4439. example: "overlay2"
  4440. DriverStatus:
  4441. description: |
  4442. Information specific to the storage driver, provided as
  4443. "label" / "value" pairs.
  4444. This information is provided by the storage driver, and formatted
  4445. in a way consistent with the output of `docker info` on the command
  4446. line.
  4447. <p><br /></p>
  4448. > **Note**: The information returned in this field, including the
  4449. > formatting of values and labels, should not be considered stable,
  4450. > and may change without notice.
  4451. type: "array"
  4452. items:
  4453. type: "array"
  4454. items:
  4455. type: "string"
  4456. example:
  4457. - ["Backing Filesystem", "extfs"]
  4458. - ["Supports d_type", "true"]
  4459. - ["Native Overlay Diff", "true"]
  4460. DockerRootDir:
  4461. description: |
  4462. Root directory of persistent Docker state.
  4463. Defaults to `/var/lib/docker` on Linux, and `C:\ProgramData\docker`
  4464. on Windows.
  4465. type: "string"
  4466. example: "/var/lib/docker"
  4467. SystemStatus:
  4468. description: |
  4469. Status information about this node (standalone Swarm API).
  4470. <p><br /></p>
  4471. > **Note**: The information returned in this field is only propagated
  4472. > by the Swarm standalone API, and is empty (`null`) when using
  4473. > built-in swarm mode.
  4474. type: "array"
  4475. items:
  4476. type: "array"
  4477. items:
  4478. type: "string"
  4479. example:
  4480. - ["Role", "primary"]
  4481. - ["State", "Healthy"]
  4482. - ["Strategy", "spread"]
  4483. - ["Filters", "health, port, containerslots, dependency, affinity, constraint, whitelist"]
  4484. - ["Nodes", "2"]
  4485. - [" swarm-agent-00", "192.168.99.102:2376"]
  4486. - [" └ ID", "5CT6:FBGO:RVGO:CZL4:PB2K:WCYN:2JSV:KSHH:GGFW:QOPG:6J5Q:IOZ2|192.168.99.102:2376"]
  4487. - [" └ Status", "Healthy"]
  4488. - [" └ Containers", "1 (1 Running, 0 Paused, 0 Stopped)"]
  4489. - [" └ Reserved CPUs", "0 / 1"]
  4490. - [" └ Reserved Memory", "0 B / 1.021 GiB"]
  4491. - [" └ Labels", "kernelversion=4.4.74-boot2docker, operatingsystem=Boot2Docker 17.06.0-ce (TCL 7.2); HEAD : 0672754 - Thu Jun 29 00:06:31 UTC 2017, ostype=linux, provider=virtualbox, storagedriver=aufs"]
  4492. - [" └ UpdatedAt", "2017-08-09T10:03:46Z"]
  4493. - [" └ ServerVersion", "17.06.0-ce"]
  4494. - [" swarm-manager", "192.168.99.101:2376"]
  4495. - [" └ ID", "TAMD:7LL3:SEF7:LW2W:4Q2X:WVFH:RTXX:JSYS:XY2P:JEHL:ZMJK:JGIW|192.168.99.101:2376"]
  4496. - [" └ Status", "Healthy"]
  4497. - [" └ Containers", "2 (2 Running, 0 Paused, 0 Stopped)"]
  4498. - [" └ Reserved CPUs", "0 / 1"]
  4499. - [" └ Reserved Memory", "0 B / 1.021 GiB"]
  4500. - [" └ Labels", "kernelversion=4.4.74-boot2docker, operatingsystem=Boot2Docker 17.06.0-ce (TCL 7.2); HEAD : 0672754 - Thu Jun 29 00:06:31 UTC 2017, ostype=linux, provider=virtualbox, storagedriver=aufs"]
  4501. - [" └ UpdatedAt", "2017-08-09T10:04:11Z"]
  4502. - [" └ ServerVersion", "17.06.0-ce"]
  4503. Plugins:
  4504. $ref: "#/definitions/PluginsInfo"
  4505. MemoryLimit:
  4506. description: "Indicates if the host has memory limit support enabled."
  4507. type: "boolean"
  4508. example: true
  4509. SwapLimit:
  4510. description: "Indicates if the host has memory swap limit support enabled."
  4511. type: "boolean"
  4512. example: true
  4513. KernelMemory:
  4514. description: "Indicates if the host has kernel memory limit support enabled."
  4515. type: "boolean"
  4516. example: true
  4517. KernelMemoryTCP:
  4518. description: |
  4519. Indicates if the host has kernel memory TCP limit support enabled.
  4520. Kernel memory TCP limits are not supported when using cgroups v2, which
  4521. does not support the corresponding `memory.kmem.tcp.limit_in_bytes` cgroup.
  4522. type: "boolean"
  4523. example: true
  4524. CpuCfsPeriod:
  4525. description: |
  4526. Indicates if CPU CFS(Completely Fair Scheduler) period is supported by
  4527. the host.
  4528. type: "boolean"
  4529. example: true
  4530. CpuCfsQuota:
  4531. description: |
  4532. Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by
  4533. the host.
  4534. type: "boolean"
  4535. example: true
  4536. CPUShares:
  4537. description: |
  4538. Indicates if CPU Shares limiting is supported by the host.
  4539. type: "boolean"
  4540. example: true
  4541. CPUSet:
  4542. description: |
  4543. Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.
  4544. See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt)
  4545. type: "boolean"
  4546. example: true
  4547. PidsLimit:
  4548. description: "Indicates if the host kernel has PID limit support enabled."
  4549. type: "boolean"
  4550. example: true
  4551. OomKillDisable:
  4552. description: "Indicates if OOM killer disable is supported on the host."
  4553. type: "boolean"
  4554. IPv4Forwarding:
  4555. description: "Indicates IPv4 forwarding is enabled."
  4556. type: "boolean"
  4557. example: true
  4558. BridgeNfIptables:
  4559. description: "Indicates if `bridge-nf-call-iptables` is available on the host."
  4560. type: "boolean"
  4561. example: true
  4562. BridgeNfIp6tables:
  4563. description: "Indicates if `bridge-nf-call-ip6tables` is available on the host."
  4564. type: "boolean"
  4565. example: true
  4566. Debug:
  4567. description: |
  4568. Indicates if the daemon is running in debug-mode / with debug-level
  4569. logging enabled.
  4570. type: "boolean"
  4571. example: true
  4572. NFd:
  4573. description: |
  4574. The total number of file Descriptors in use by the daemon process.
  4575. This information is only returned if debug-mode is enabled.
  4576. type: "integer"
  4577. example: 64
  4578. NGoroutines:
  4579. description: |
  4580. The number of goroutines that currently exist.
  4581. This information is only returned if debug-mode is enabled.
  4582. type: "integer"
  4583. example: 174
  4584. SystemTime:
  4585. description: |
  4586. Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt)
  4587. format with nano-seconds.
  4588. type: "string"
  4589. example: "2017-08-08T20:28:29.06202363Z"
  4590. LoggingDriver:
  4591. description: |
  4592. The logging driver to use as a default for new containers.
  4593. type: "string"
  4594. CgroupDriver:
  4595. description: |
  4596. The driver to use for managing cgroups.
  4597. type: "string"
  4598. enum: ["cgroupfs", "systemd", "none"]
  4599. default: "cgroupfs"
  4600. example: "cgroupfs"
  4601. NEventsListener:
  4602. description: "Number of event listeners subscribed."
  4603. type: "integer"
  4604. example: 30
  4605. KernelVersion:
  4606. description: |
  4607. Kernel version of the host.
  4608. On Linux, this information obtained from `uname`. On Windows this
  4609. information is queried from the <kbd>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\</kbd>
  4610. registry value, for example _"10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)"_.
  4611. type: "string"
  4612. example: "4.9.38-moby"
  4613. OperatingSystem:
  4614. description: |
  4615. Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS"
  4616. or "Windows Server 2016 Datacenter"
  4617. type: "string"
  4618. example: "Alpine Linux v3.5"
  4619. OSType:
  4620. description: |
  4621. Generic type of the operating system of the host, as returned by the
  4622. Go runtime (`GOOS`).
  4623. Currently returned values are "linux" and "windows". A full list of
  4624. possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment).
  4625. type: "string"
  4626. example: "linux"
  4627. Architecture:
  4628. description: |
  4629. Hardware architecture of the host, as returned by the Go runtime
  4630. (`GOARCH`).
  4631. A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment).
  4632. type: "string"
  4633. example: "x86_64"
  4634. NCPU:
  4635. description: |
  4636. The number of logical CPUs usable by the daemon.
  4637. The number of available CPUs is checked by querying the operating
  4638. system when the daemon starts. Changes to operating system CPU
  4639. allocation after the daemon is started are not reflected.
  4640. type: "integer"
  4641. example: 4
  4642. MemTotal:
  4643. description: |
  4644. Total amount of physical memory available on the host, in bytes.
  4645. type: "integer"
  4646. format: "int64"
  4647. example: 2095882240
  4648. IndexServerAddress:
  4649. description: |
  4650. Address / URL of the index server that is used for image search,
  4651. and as a default for user authentication for Docker Hub and Docker Cloud.
  4652. default: "https://index.docker.io/v1/"
  4653. type: "string"
  4654. example: "https://index.docker.io/v1/"
  4655. RegistryConfig:
  4656. $ref: "#/definitions/RegistryServiceConfig"
  4657. GenericResources:
  4658. $ref: "#/definitions/GenericResources"
  4659. HttpProxy:
  4660. description: |
  4661. HTTP-proxy configured for the daemon. This value is obtained from the
  4662. [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
  4663. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL
  4664. are masked in the API response.
  4665. Containers do not automatically inherit this configuration.
  4666. type: "string"
  4667. example: "http://xxxxx:xxxxx@proxy.corp.example.com:8080"
  4668. HttpsProxy:
  4669. description: |
  4670. HTTPS-proxy configured for the daemon. This value is obtained from the
  4671. [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
  4672. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL
  4673. are masked in the API response.
  4674. Containers do not automatically inherit this configuration.
  4675. type: "string"
  4676. example: "https://xxxxx:xxxxx@proxy.corp.example.com:4443"
  4677. NoProxy:
  4678. description: |
  4679. Comma-separated list of domain extensions for which no proxy should be
  4680. used. This value is obtained from the [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
  4681. environment variable.
  4682. Containers do not automatically inherit this configuration.
  4683. type: "string"
  4684. example: "*.local, 169.254/16"
  4685. Name:
  4686. description: "Hostname of the host."
  4687. type: "string"
  4688. example: "node5.corp.example.com"
  4689. Labels:
  4690. description: |
  4691. User-defined labels (key/value metadata) as set on the daemon.
  4692. <p><br /></p>
  4693. > **Note**: When part of a Swarm, nodes can both have _daemon_ labels,
  4694. > set through the daemon configuration, and _node_ labels, set from a
  4695. > manager node in the Swarm. Node labels are not included in this
  4696. > field. Node labels can be retrieved using the `/nodes/(id)` endpoint
  4697. > on a manager node in the Swarm.
  4698. type: "array"
  4699. items:
  4700. type: "string"
  4701. example: ["storage=ssd", "production"]
  4702. ExperimentalBuild:
  4703. description: |
  4704. Indicates if experimental features are enabled on the daemon.
  4705. type: "boolean"
  4706. example: true
  4707. ServerVersion:
  4708. description: |
  4709. Version string of the daemon.
  4710. type: "string"
  4711. example: "17.06.0-ce"
  4712. ClusterStore:
  4713. description: |
  4714. URL of the distributed storage backend.
  4715. The storage backend is used for multihost networking (to store
  4716. network and endpoint information) and by the node discovery mechanism.
  4717. <p><br /></p>
  4718. > **Note**: This field is only propagated when using standalone Swarm
  4719. > mode, and overlay networking using an external k/v store. Overlay
  4720. > networks with Swarm mode enabled use the built-in raft store, and
  4721. > this field will be empty.
  4722. type: "string"
  4723. example: "consul://consul.corp.example.com:8600/some/path"
  4724. ClusterAdvertise:
  4725. description: |
  4726. The network endpoint that the Engine advertises for the purpose of
  4727. node discovery. ClusterAdvertise is a `host:port` combination on which
  4728. the daemon is reachable by other hosts.
  4729. <p><br /></p>
  4730. > **Note**: This field is only propagated when using standalone Swarm
  4731. > mode, and overlay networking using an external k/v store. Overlay
  4732. > networks with Swarm mode enabled use the built-in raft store, and
  4733. > this field will be empty.
  4734. type: "string"
  4735. example: "node5.corp.example.com:8000"
  4736. Runtimes:
  4737. description: |
  4738. List of [OCI compliant](https://github.com/opencontainers/runtime-spec)
  4739. runtimes configured on the daemon. Keys hold the "name" used to
  4740. reference the runtime.
  4741. The Docker daemon relies on an OCI compliant runtime (invoked via the
  4742. `containerd` daemon) as its interface to the Linux kernel namespaces,
  4743. cgroups, and SELinux.
  4744. The default runtime is `runc`, and automatically configured. Additional
  4745. runtimes can be configured by the user and will be listed here.
  4746. type: "object"
  4747. additionalProperties:
  4748. $ref: "#/definitions/Runtime"
  4749. default:
  4750. runc:
  4751. path: "runc"
  4752. example:
  4753. runc:
  4754. path: "runc"
  4755. runc-master:
  4756. path: "/go/bin/runc"
  4757. custom:
  4758. path: "/usr/local/bin/my-oci-runtime"
  4759. runtimeArgs: ["--debug", "--systemd-cgroup=false"]
  4760. DefaultRuntime:
  4761. description: |
  4762. Name of the default OCI runtime that is used when starting containers.
  4763. The default can be overridden per-container at create time.
  4764. type: "string"
  4765. default: "runc"
  4766. example: "runc"
  4767. Swarm:
  4768. $ref: "#/definitions/SwarmInfo"
  4769. LiveRestoreEnabled:
  4770. description: |
  4771. Indicates if live restore is enabled.
  4772. If enabled, containers are kept running when the daemon is shutdown
  4773. or upon daemon start if running containers are detected.
  4774. type: "boolean"
  4775. default: false
  4776. example: false
  4777. Isolation:
  4778. description: |
  4779. Represents the isolation technology to use as a default for containers.
  4780. The supported values are platform-specific.
  4781. If no isolation value is specified on daemon start, on Windows client,
  4782. the default is `hyperv`, and on Windows server, the default is `process`.
  4783. This option is currently not used on other platforms.
  4784. default: "default"
  4785. type: "string"
  4786. enum:
  4787. - "default"
  4788. - "hyperv"
  4789. - "process"
  4790. InitBinary:
  4791. description: |
  4792. Name and, optional, path of the `docker-init` binary.
  4793. If the path is omitted, the daemon searches the host's `$PATH` for the
  4794. binary and uses the first result.
  4795. type: "string"
  4796. example: "docker-init"
  4797. ContainerdCommit:
  4798. $ref: "#/definitions/Commit"
  4799. RuncCommit:
  4800. $ref: "#/definitions/Commit"
  4801. InitCommit:
  4802. $ref: "#/definitions/Commit"
  4803. SecurityOptions:
  4804. description: |
  4805. List of security features that are enabled on the daemon, such as
  4806. apparmor, seccomp, SELinux, user-namespaces (userns), and rootless.
  4807. Additional configuration options for each security feature may
  4808. be present, and are included as a comma-separated list of key/value
  4809. pairs.
  4810. type: "array"
  4811. items:
  4812. type: "string"
  4813. example:
  4814. - "name=apparmor"
  4815. - "name=seccomp,profile=default"
  4816. - "name=selinux"
  4817. - "name=userns"
  4818. - "name=rootless"
  4819. ProductLicense:
  4820. description: |
  4821. Reports a summary of the product license on the daemon.
  4822. If a commercial license has been applied to the daemon, information
  4823. such as number of nodes, and expiration are included.
  4824. type: "string"
  4825. example: "Community Engine"
  4826. Warnings:
  4827. description: |
  4828. List of warnings / informational messages about missing features, or
  4829. issues related to the daemon configuration.
  4830. These messages can be printed by the client as information to the user.
  4831. type: "array"
  4832. items:
  4833. type: "string"
  4834. example:
  4835. - "WARNING: No memory limit support"
  4836. - "WARNING: bridge-nf-call-iptables is disabled"
  4837. - "WARNING: bridge-nf-call-ip6tables is disabled"
  4838. # PluginsInfo is a temp struct holding Plugins name
  4839. # registered with docker daemon. It is used by Info struct
  4840. PluginsInfo:
  4841. description: |
  4842. Available plugins per type.
  4843. <p><br /></p>
  4844. > **Note**: Only unmanaged (V1) plugins are included in this list.
  4845. > V1 plugins are "lazily" loaded, and are not returned in this list
  4846. > if there is no resource using the plugin.
  4847. type: "object"
  4848. properties:
  4849. Volume:
  4850. description: "Names of available volume-drivers, and network-driver plugins."
  4851. type: "array"
  4852. items:
  4853. type: "string"
  4854. example: ["local"]
  4855. Network:
  4856. description: "Names of available network-drivers, and network-driver plugins."
  4857. type: "array"
  4858. items:
  4859. type: "string"
  4860. example: ["bridge", "host", "ipvlan", "macvlan", "null", "overlay"]
  4861. Authorization:
  4862. description: "Names of available authorization plugins."
  4863. type: "array"
  4864. items:
  4865. type: "string"
  4866. example: ["img-authz-plugin", "hbm"]
  4867. Log:
  4868. description: "Names of available logging-drivers, and logging-driver plugins."
  4869. type: "array"
  4870. items:
  4871. type: "string"
  4872. example: ["awslogs", "fluentd", "gcplogs", "gelf", "journald", "json-file", "logentries", "splunk", "syslog"]
  4873. RegistryServiceConfig:
  4874. description: |
  4875. RegistryServiceConfig stores daemon registry services configuration.
  4876. type: "object"
  4877. x-nullable: true
  4878. properties:
  4879. AllowNondistributableArtifactsCIDRs:
  4880. description: |
  4881. List of IP ranges to which nondistributable artifacts can be pushed,
  4882. using the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632).
  4883. Some images (for example, Windows base images) contain artifacts
  4884. whose distribution is restricted by license. When these images are
  4885. pushed to a registry, restricted artifacts are not included.
  4886. This configuration override this behavior, and enables the daemon to
  4887. push nondistributable artifacts to all registries whose resolved IP
  4888. address is within the subnet described by the CIDR syntax.
  4889. This option is useful when pushing images containing
  4890. nondistributable artifacts to a registry on an air-gapped network so
  4891. hosts on that network can pull the images without connecting to
  4892. another server.
  4893. > **Warning**: Nondistributable artifacts typically have restrictions
  4894. > on how and where they can be distributed and shared. Only use this
  4895. > feature to push artifacts to private registries and ensure that you
  4896. > are in compliance with any terms that cover redistributing
  4897. > nondistributable artifacts.
  4898. type: "array"
  4899. items:
  4900. type: "string"
  4901. example: ["::1/128", "127.0.0.0/8"]
  4902. AllowNondistributableArtifactsHostnames:
  4903. description: |
  4904. List of registry hostnames to which nondistributable artifacts can be
  4905. pushed, using the format `<hostname>[:<port>]` or `<IP address>[:<port>]`.
  4906. Some images (for example, Windows base images) contain artifacts
  4907. whose distribution is restricted by license. When these images are
  4908. pushed to a registry, restricted artifacts are not included.
  4909. This configuration override this behavior for the specified
  4910. registries.
  4911. This option is useful when pushing images containing
  4912. nondistributable artifacts to a registry on an air-gapped network so
  4913. hosts on that network can pull the images without connecting to
  4914. another server.
  4915. > **Warning**: Nondistributable artifacts typically have restrictions
  4916. > on how and where they can be distributed and shared. Only use this
  4917. > feature to push artifacts to private registries and ensure that you
  4918. > are in compliance with any terms that cover redistributing
  4919. > nondistributable artifacts.
  4920. type: "array"
  4921. items:
  4922. type: "string"
  4923. example: ["registry.internal.corp.example.com:3000", "[2001:db8:a0b:12f0::1]:443"]
  4924. InsecureRegistryCIDRs:
  4925. description: |
  4926. List of IP ranges of insecure registries, using the CIDR syntax
  4927. ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries
  4928. accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates
  4929. from unknown CAs) communication.
  4930. By default, local registries (`127.0.0.0/8`) are configured as
  4931. insecure. All other registries are secure. Communicating with an
  4932. insecure registry is not possible if the daemon assumes that registry
  4933. is secure.
  4934. This configuration override this behavior, insecure communication with
  4935. registries whose resolved IP address is within the subnet described by
  4936. the CIDR syntax.
  4937. Registries can also be marked insecure by hostname. Those registries
  4938. are listed under `IndexConfigs` and have their `Secure` field set to
  4939. `false`.
  4940. > **Warning**: Using this option can be useful when running a local
  4941. > registry, but introduces security vulnerabilities. This option
  4942. > should therefore ONLY be used for testing purposes. For increased
  4943. > security, users should add their CA to their system's list of trusted
  4944. > CAs instead of enabling this option.
  4945. type: "array"
  4946. items:
  4947. type: "string"
  4948. example: ["::1/128", "127.0.0.0/8"]
  4949. IndexConfigs:
  4950. type: "object"
  4951. additionalProperties:
  4952. $ref: "#/definitions/IndexInfo"
  4953. example:
  4954. "127.0.0.1:5000":
  4955. "Name": "127.0.0.1:5000"
  4956. "Mirrors": []
  4957. "Secure": false
  4958. "Official": false
  4959. "[2001:db8:a0b:12f0::1]:80":
  4960. "Name": "[2001:db8:a0b:12f0::1]:80"
  4961. "Mirrors": []
  4962. "Secure": false
  4963. "Official": false
  4964. "docker.io":
  4965. Name: "docker.io"
  4966. Mirrors: ["https://hub-mirror.corp.example.com:5000/"]
  4967. Secure: true
  4968. Official: true
  4969. "registry.internal.corp.example.com:3000":
  4970. Name: "registry.internal.corp.example.com:3000"
  4971. Mirrors: []
  4972. Secure: false
  4973. Official: false
  4974. Mirrors:
  4975. description: |
  4976. List of registry URLs that act as a mirror for the official
  4977. (`docker.io`) registry.
  4978. type: "array"
  4979. items:
  4980. type: "string"
  4981. example:
  4982. - "https://hub-mirror.corp.example.com:5000/"
  4983. - "https://[2001:db8:a0b:12f0::1]/"
  4984. IndexInfo:
  4985. description:
  4986. IndexInfo contains information about a registry.
  4987. type: "object"
  4988. x-nullable: true
  4989. properties:
  4990. Name:
  4991. description: |
  4992. Name of the registry, such as "docker.io".
  4993. type: "string"
  4994. example: "docker.io"
  4995. Mirrors:
  4996. description: |
  4997. List of mirrors, expressed as URIs.
  4998. type: "array"
  4999. items:
  5000. type: "string"
  5001. example:
  5002. - "https://hub-mirror.corp.example.com:5000/"
  5003. - "https://registry-2.docker.io/"
  5004. - "https://registry-3.docker.io/"
  5005. Secure:
  5006. description: |
  5007. Indicates if the registry is part of the list of insecure
  5008. registries.
  5009. If `false`, the registry is insecure. Insecure registries accept
  5010. un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from
  5011. unknown CAs) communication.
  5012. > **Warning**: Insecure registries can be useful when running a local
  5013. > registry. However, because its use creates security vulnerabilities
  5014. > it should ONLY be enabled for testing purposes. For increased
  5015. > security, users should add their CA to their system's list of
  5016. > trusted CAs instead of enabling this option.
  5017. type: "boolean"
  5018. example: true
  5019. Official:
  5020. description: |
  5021. Indicates whether this is an official registry (i.e., Docker Hub / docker.io)
  5022. type: "boolean"
  5023. example: true
  5024. Runtime:
  5025. description: |
  5026. Runtime describes an [OCI compliant](https://github.com/opencontainers/runtime-spec)
  5027. runtime.
  5028. The runtime is invoked by the daemon via the `containerd` daemon. OCI
  5029. runtimes act as an interface to the Linux kernel namespaces, cgroups,
  5030. and SELinux.
  5031. type: "object"
  5032. properties:
  5033. path:
  5034. description: |
  5035. Name and, optional, path, of the OCI executable binary.
  5036. If the path is omitted, the daemon searches the host's `$PATH` for the
  5037. binary and uses the first result.
  5038. type: "string"
  5039. example: "/usr/local/bin/my-oci-runtime"
  5040. runtimeArgs:
  5041. description: |
  5042. List of command-line arguments to pass to the runtime when invoked.
  5043. type: "array"
  5044. x-nullable: true
  5045. items:
  5046. type: "string"
  5047. example: ["--debug", "--systemd-cgroup=false"]
  5048. Commit:
  5049. description: |
  5050. Commit holds the Git-commit (SHA1) that a binary was built from, as
  5051. reported in the version-string of external tools, such as `containerd`,
  5052. or `runC`.
  5053. type: "object"
  5054. properties:
  5055. ID:
  5056. description: "Actual commit ID of external tool."
  5057. type: "string"
  5058. example: "cfb82a876ecc11b5ca0977d1733adbe58599088a"
  5059. Expected:
  5060. description: |
  5061. Commit ID of external tool expected by dockerd as set at build time.
  5062. type: "string"
  5063. example: "2d41c047c83e09a6d61d464906feb2a2f3c52aa4"
  5064. SwarmInfo:
  5065. description: |
  5066. Represents generic information about swarm.
  5067. type: "object"
  5068. properties:
  5069. NodeID:
  5070. description: "Unique identifier of for this node in the swarm."
  5071. type: "string"
  5072. default: ""
  5073. example: "k67qz4598weg5unwwffg6z1m1"
  5074. NodeAddr:
  5075. description: |
  5076. IP address at which this node can be reached by other nodes in the
  5077. swarm.
  5078. type: "string"
  5079. default: ""
  5080. example: "10.0.0.46"
  5081. LocalNodeState:
  5082. $ref: "#/definitions/LocalNodeState"
  5083. ControlAvailable:
  5084. type: "boolean"
  5085. default: false
  5086. example: true
  5087. Error:
  5088. type: "string"
  5089. default: ""
  5090. RemoteManagers:
  5091. description: |
  5092. List of ID's and addresses of other managers in the swarm.
  5093. type: "array"
  5094. default: null
  5095. x-nullable: true
  5096. items:
  5097. $ref: "#/definitions/PeerNode"
  5098. example:
  5099. - NodeID: "71izy0goik036k48jg985xnds"
  5100. Addr: "10.0.0.158:2377"
  5101. - NodeID: "79y6h1o4gv8n120drcprv5nmc"
  5102. Addr: "10.0.0.159:2377"
  5103. - NodeID: "k67qz4598weg5unwwffg6z1m1"
  5104. Addr: "10.0.0.46:2377"
  5105. Nodes:
  5106. description: "Total number of nodes in the swarm."
  5107. type: "integer"
  5108. x-nullable: true
  5109. example: 4
  5110. Managers:
  5111. description: "Total number of managers in the swarm."
  5112. type: "integer"
  5113. x-nullable: true
  5114. example: 3
  5115. Cluster:
  5116. $ref: "#/definitions/ClusterInfo"
  5117. LocalNodeState:
  5118. description: "Current local status of this node."
  5119. type: "string"
  5120. default: ""
  5121. enum:
  5122. - ""
  5123. - "inactive"
  5124. - "pending"
  5125. - "active"
  5126. - "error"
  5127. - "locked"
  5128. example: "active"
  5129. PeerNode:
  5130. description: "Represents a peer-node in the swarm"
  5131. type: "object"
  5132. properties:
  5133. NodeID:
  5134. description: "Unique identifier of for this node in the swarm."
  5135. type: "string"
  5136. Addr:
  5137. description: |
  5138. IP address and ports at which this node can be reached.
  5139. type: "string"
  5140. NetworkAttachmentConfig:
  5141. description: |
  5142. Specifies how a service should be attached to a particular network.
  5143. type: "object"
  5144. properties:
  5145. Target:
  5146. description: |
  5147. The target network for attachment. Must be a network name or ID.
  5148. type: "string"
  5149. Aliases:
  5150. description: |
  5151. Discoverable alternate names for the service on this network.
  5152. type: "array"
  5153. items:
  5154. type: "string"
  5155. DriverOpts:
  5156. description: |
  5157. Driver attachment options for the network target.
  5158. type: "object"
  5159. additionalProperties:
  5160. type: "string"
  5161. EventActor:
  5162. description: |
  5163. Actor describes something that generates events, like a container, network,
  5164. or a volume.
  5165. type: "object"
  5166. properties:
  5167. ID:
  5168. description: "The ID of the object emitting the event"
  5169. type: "string"
  5170. example: "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743"
  5171. Attributes:
  5172. description: |
  5173. Various key/value attributes of the object, depending on its type.
  5174. type: "object"
  5175. additionalProperties:
  5176. type: "string"
  5177. example:
  5178. com.example.some-label: "some-label-value"
  5179. image: "alpine:latest"
  5180. name: "my-container"
  5181. EventMessage:
  5182. description: |
  5183. EventMessage represents the information an event contains.
  5184. type: "object"
  5185. title: "SystemEventsResponse"
  5186. properties:
  5187. Type:
  5188. description: "The type of object emitting the event"
  5189. type: "string"
  5190. enum: ["builder", "config", "container", "daemon", "image", "network", "node", "plugin", "secret", "service", "volume"]
  5191. example: "container"
  5192. Action:
  5193. description: "The type of event"
  5194. type: "string"
  5195. example: "create"
  5196. Actor:
  5197. $ref: "#/definitions/EventActor"
  5198. scope:
  5199. description: |
  5200. Scope of the event. Engine events are `local` scope. Cluster (Swarm)
  5201. events are `swarm` scope.
  5202. type: "string"
  5203. enum: ["local", "swarm"]
  5204. time:
  5205. description: "Timestamp of event"
  5206. type: "integer"
  5207. format: "int64"
  5208. example: 1629574695
  5209. timeNano:
  5210. description: "Timestamp of event, with nanosecond accuracy"
  5211. type: "integer"
  5212. format: "int64"
  5213. example: 1629574695515050031
  5214. OCIDescriptor:
  5215. type: "object"
  5216. x-go-name: Descriptor
  5217. description: |
  5218. A descriptor struct containing digest, media type, and size, as defined in
  5219. the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
  5220. properties:
  5221. mediaType:
  5222. description: |
  5223. The media type of the object this schema refers to.
  5224. type: "string"
  5225. example: "application/vnd.docker.distribution.manifest.v2+json"
  5226. digest:
  5227. description: |
  5228. The digest of the targeted content.
  5229. type: "string"
  5230. example: "sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96"
  5231. size:
  5232. description: |
  5233. The size in bytes of the blob.
  5234. type: "integer"
  5235. format: "int64"
  5236. example: 3987495
  5237. # TODO Not yet including these fields for now, as they are nil / omitted in our response.
  5238. # urls:
  5239. # description: |
  5240. # List of URLs from which this object MAY be downloaded.
  5241. # type: "array"
  5242. # items:
  5243. # type: "string"
  5244. # format: "uri"
  5245. # annotations:
  5246. # description: |
  5247. # Arbitrary metadata relating to the targeted content.
  5248. # type: "object"
  5249. # additionalProperties:
  5250. # type: "string"
  5251. # platform:
  5252. # $ref: "#/definitions/OCIPlatform"
  5253. OCIPlatform:
  5254. type: "object"
  5255. x-go-name: Platform
  5256. description: |
  5257. Describes the platform which the image in the manifest runs on, as defined
  5258. in the [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
  5259. properties:
  5260. architecture:
  5261. description: |
  5262. The CPU architecture, for example `amd64` or `ppc64`.
  5263. type: "string"
  5264. example: "arm"
  5265. os:
  5266. description: |
  5267. The operating system, for example `linux` or `windows`.
  5268. type: "string"
  5269. example: "windows"
  5270. os.version:
  5271. description: |
  5272. Optional field specifying the operating system version, for example on
  5273. Windows `10.0.19041.1165`.
  5274. type: "string"
  5275. example: "10.0.19041.1165"
  5276. os.features:
  5277. description: |
  5278. Optional field specifying an array of strings, each listing a required
  5279. OS feature (for example on Windows `win32k`).
  5280. type: "array"
  5281. items:
  5282. type: "string"
  5283. example:
  5284. - "win32k"
  5285. variant:
  5286. description: |
  5287. Optional field specifying a variant of the CPU, for example `v7` to
  5288. specify ARMv7 when architecture is `arm`.
  5289. type: "string"
  5290. example: "v7"
  5291. DistributionInspect:
  5292. type: "object"
  5293. x-go-name: DistributionInspect
  5294. title: "DistributionInspectResponse"
  5295. required: [Descriptor, Platforms]
  5296. description: |
  5297. Describes the result obtained from contacting the registry to retrieve
  5298. image metadata.
  5299. properties:
  5300. Descriptor:
  5301. $ref: "#/definitions/OCIDescriptor"
  5302. Platforms:
  5303. type: "array"
  5304. description: |
  5305. An array containing all platforms supported by the image.
  5306. items:
  5307. $ref: "#/definitions/OCIPlatform"
  5308. paths:
  5309. /containers/json:
  5310. get:
  5311. summary: "List containers"
  5312. description: |
  5313. Returns a list of containers. For details on the format, see the
  5314. [inspect endpoint](#operation/ContainerInspect).
  5315. Note that it uses a different, smaller representation of a container
  5316. than inspecting a single container. For example, the list of linked
  5317. containers is not propagated .
  5318. operationId: "ContainerList"
  5319. produces:
  5320. - "application/json"
  5321. parameters:
  5322. - name: "all"
  5323. in: "query"
  5324. description: |
  5325. Return all containers. By default, only running containers are shown.
  5326. type: "boolean"
  5327. default: false
  5328. - name: "limit"
  5329. in: "query"
  5330. description: |
  5331. Return this number of most recently created containers, including
  5332. non-running ones.
  5333. type: "integer"
  5334. - name: "size"
  5335. in: "query"
  5336. description: |
  5337. Return the size of container as fields `SizeRw` and `SizeRootFs`.
  5338. type: "boolean"
  5339. default: false
  5340. - name: "filters"
  5341. in: "query"
  5342. description: |
  5343. Filters to process on the container list, encoded as JSON (a
  5344. `map[string][]string`). For example, `{"status": ["paused"]}` will
  5345. only return paused containers.
  5346. Available filters:
  5347. - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`)
  5348. - `before`=(`<container id>` or `<container name>`)
  5349. - `expose`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
  5350. - `exited=<int>` containers with exit code of `<int>`
  5351. - `health`=(`starting`|`healthy`|`unhealthy`|`none`)
  5352. - `id=<ID>` a container's ID
  5353. - `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only)
  5354. - `is-task=`(`true`|`false`)
  5355. - `label=key` or `label="key=value"` of a container label
  5356. - `name=<name>` a container's name
  5357. - `network`=(`<network id>` or `<network name>`)
  5358. - `publish`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
  5359. - `since`=(`<container id>` or `<container name>`)
  5360. - `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`)
  5361. - `volume`=(`<volume name>` or `<mount point destination>`)
  5362. type: "string"
  5363. responses:
  5364. 200:
  5365. description: "no error"
  5366. schema:
  5367. type: "array"
  5368. items:
  5369. $ref: "#/definitions/ContainerSummary"
  5370. examples:
  5371. application/json:
  5372. - Id: "8dfafdbc3a40"
  5373. Names:
  5374. - "/boring_feynman"
  5375. Image: "ubuntu:latest"
  5376. ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
  5377. Command: "echo 1"
  5378. Created: 1367854155
  5379. State: "Exited"
  5380. Status: "Exit 0"
  5381. Ports:
  5382. - PrivatePort: 2222
  5383. PublicPort: 3333
  5384. Type: "tcp"
  5385. Labels:
  5386. com.example.vendor: "Acme"
  5387. com.example.license: "GPL"
  5388. com.example.version: "1.0"
  5389. SizeRw: 12288
  5390. SizeRootFs: 0
  5391. HostConfig:
  5392. NetworkMode: "default"
  5393. NetworkSettings:
  5394. Networks:
  5395. bridge:
  5396. NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
  5397. EndpointID: "2cdc4edb1ded3631c81f57966563e5c8525b81121bb3706a9a9a3ae102711f3f"
  5398. Gateway: "172.17.0.1"
  5399. IPAddress: "172.17.0.2"
  5400. IPPrefixLen: 16
  5401. IPv6Gateway: ""
  5402. GlobalIPv6Address: ""
  5403. GlobalIPv6PrefixLen: 0
  5404. MacAddress: "02:42:ac:11:00:02"
  5405. Mounts:
  5406. - Name: "fac362...80535"
  5407. Source: "/data"
  5408. Destination: "/data"
  5409. Driver: "local"
  5410. Mode: "ro,Z"
  5411. RW: false
  5412. Propagation: ""
  5413. - Id: "9cd87474be90"
  5414. Names:
  5415. - "/coolName"
  5416. Image: "ubuntu:latest"
  5417. ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
  5418. Command: "echo 222222"
  5419. Created: 1367854155
  5420. State: "Exited"
  5421. Status: "Exit 0"
  5422. Ports: []
  5423. Labels: {}
  5424. SizeRw: 12288
  5425. SizeRootFs: 0
  5426. HostConfig:
  5427. NetworkMode: "default"
  5428. NetworkSettings:
  5429. Networks:
  5430. bridge:
  5431. NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
  5432. EndpointID: "88eaed7b37b38c2a3f0c4bc796494fdf51b270c2d22656412a2ca5d559a64d7a"
  5433. Gateway: "172.17.0.1"
  5434. IPAddress: "172.17.0.8"
  5435. IPPrefixLen: 16
  5436. IPv6Gateway: ""
  5437. GlobalIPv6Address: ""
  5438. GlobalIPv6PrefixLen: 0
  5439. MacAddress: "02:42:ac:11:00:08"
  5440. Mounts: []
  5441. - Id: "3176a2479c92"
  5442. Names:
  5443. - "/sleepy_dog"
  5444. Image: "ubuntu:latest"
  5445. ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
  5446. Command: "echo 3333333333333333"
  5447. Created: 1367854154
  5448. State: "Exited"
  5449. Status: "Exit 0"
  5450. Ports: []
  5451. Labels: {}
  5452. SizeRw: 12288
  5453. SizeRootFs: 0
  5454. HostConfig:
  5455. NetworkMode: "default"
  5456. NetworkSettings:
  5457. Networks:
  5458. bridge:
  5459. NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
  5460. EndpointID: "8b27c041c30326d59cd6e6f510d4f8d1d570a228466f956edf7815508f78e30d"
  5461. Gateway: "172.17.0.1"
  5462. IPAddress: "172.17.0.6"
  5463. IPPrefixLen: 16
  5464. IPv6Gateway: ""
  5465. GlobalIPv6Address: ""
  5466. GlobalIPv6PrefixLen: 0
  5467. MacAddress: "02:42:ac:11:00:06"
  5468. Mounts: []
  5469. - Id: "4cb07b47f9fb"
  5470. Names:
  5471. - "/running_cat"
  5472. Image: "ubuntu:latest"
  5473. ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
  5474. Command: "echo 444444444444444444444444444444444"
  5475. Created: 1367854152
  5476. State: "Exited"
  5477. Status: "Exit 0"
  5478. Ports: []
  5479. Labels: {}
  5480. SizeRw: 12288
  5481. SizeRootFs: 0
  5482. HostConfig:
  5483. NetworkMode: "default"
  5484. NetworkSettings:
  5485. Networks:
  5486. bridge:
  5487. NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
  5488. EndpointID: "d91c7b2f0644403d7ef3095985ea0e2370325cd2332ff3a3225c4247328e66e9"
  5489. Gateway: "172.17.0.1"
  5490. IPAddress: "172.17.0.5"
  5491. IPPrefixLen: 16
  5492. IPv6Gateway: ""
  5493. GlobalIPv6Address: ""
  5494. GlobalIPv6PrefixLen: 0
  5495. MacAddress: "02:42:ac:11:00:05"
  5496. Mounts: []
  5497. 400:
  5498. description: "bad parameter"
  5499. schema:
  5500. $ref: "#/definitions/ErrorResponse"
  5501. 500:
  5502. description: "server error"
  5503. schema:
  5504. $ref: "#/definitions/ErrorResponse"
  5505. tags: ["Container"]
  5506. /containers/create:
  5507. post:
  5508. summary: "Create a container"
  5509. operationId: "ContainerCreate"
  5510. consumes:
  5511. - "application/json"
  5512. - "application/octet-stream"
  5513. produces:
  5514. - "application/json"
  5515. parameters:
  5516. - name: "name"
  5517. in: "query"
  5518. description: |
  5519. Assign the specified name to the container. Must match
  5520. `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
  5521. type: "string"
  5522. pattern: "^/?[a-zA-Z0-9][a-zA-Z0-9_.-]+$"
  5523. - name: "body"
  5524. in: "body"
  5525. description: "Container to create"
  5526. schema:
  5527. allOf:
  5528. - $ref: "#/definitions/ContainerConfig"
  5529. - type: "object"
  5530. properties:
  5531. HostConfig:
  5532. $ref: "#/definitions/HostConfig"
  5533. NetworkingConfig:
  5534. $ref: "#/definitions/NetworkingConfig"
  5535. example:
  5536. Hostname: ""
  5537. Domainname: ""
  5538. User: ""
  5539. AttachStdin: false
  5540. AttachStdout: true
  5541. AttachStderr: true
  5542. Tty: false
  5543. OpenStdin: false
  5544. StdinOnce: false
  5545. Env:
  5546. - "FOO=bar"
  5547. - "BAZ=quux"
  5548. Cmd:
  5549. - "date"
  5550. Entrypoint: ""
  5551. Image: "ubuntu"
  5552. Labels:
  5553. com.example.vendor: "Acme"
  5554. com.example.license: "GPL"
  5555. com.example.version: "1.0"
  5556. Volumes:
  5557. /volumes/data: {}
  5558. WorkingDir: ""
  5559. NetworkDisabled: false
  5560. MacAddress: "12:34:56:78:9a:bc"
  5561. ExposedPorts:
  5562. 22/tcp: {}
  5563. StopSignal: "SIGTERM"
  5564. StopTimeout: 10
  5565. HostConfig:
  5566. Binds:
  5567. - "/tmp:/tmp"
  5568. Links:
  5569. - "redis3:redis"
  5570. Memory: 0
  5571. MemorySwap: 0
  5572. MemoryReservation: 0
  5573. KernelMemory: 0
  5574. NanoCpus: 500000
  5575. CpuPercent: 80
  5576. CpuShares: 512
  5577. CpuPeriod: 100000
  5578. CpuRealtimePeriod: 1000000
  5579. CpuRealtimeRuntime: 10000
  5580. CpuQuota: 50000
  5581. CpusetCpus: "0,1"
  5582. CpusetMems: "0,1"
  5583. MaximumIOps: 0
  5584. MaximumIOBps: 0
  5585. BlkioWeight: 300
  5586. BlkioWeightDevice:
  5587. - {}
  5588. BlkioDeviceReadBps:
  5589. - {}
  5590. BlkioDeviceReadIOps:
  5591. - {}
  5592. BlkioDeviceWriteBps:
  5593. - {}
  5594. BlkioDeviceWriteIOps:
  5595. - {}
  5596. DeviceRequests:
  5597. - Driver: "nvidia"
  5598. Count: -1
  5599. DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
  5600. Capabilities: [["gpu", "nvidia", "compute"]]
  5601. Options:
  5602. property1: "string"
  5603. property2: "string"
  5604. MemorySwappiness: 60
  5605. OomKillDisable: false
  5606. OomScoreAdj: 500
  5607. PidMode: ""
  5608. PidsLimit: 0
  5609. PortBindings:
  5610. 22/tcp:
  5611. - HostPort: "11022"
  5612. PublishAllPorts: false
  5613. Privileged: false
  5614. ReadonlyRootfs: false
  5615. Dns:
  5616. - "8.8.8.8"
  5617. DnsOptions:
  5618. - ""
  5619. DnsSearch:
  5620. - ""
  5621. VolumesFrom:
  5622. - "parent"
  5623. - "other:ro"
  5624. CapAdd:
  5625. - "NET_ADMIN"
  5626. CapDrop:
  5627. - "MKNOD"
  5628. GroupAdd:
  5629. - "newgroup"
  5630. RestartPolicy:
  5631. Name: ""
  5632. MaximumRetryCount: 0
  5633. AutoRemove: true
  5634. NetworkMode: "bridge"
  5635. Devices: []
  5636. Ulimits:
  5637. - {}
  5638. LogConfig:
  5639. Type: "json-file"
  5640. Config: {}
  5641. SecurityOpt: []
  5642. StorageOpt: {}
  5643. CgroupParent: ""
  5644. VolumeDriver: ""
  5645. ShmSize: 67108864
  5646. NetworkingConfig:
  5647. EndpointsConfig:
  5648. isolated_nw:
  5649. IPAMConfig:
  5650. IPv4Address: "172.20.30.33"
  5651. IPv6Address: "2001:db8:abcd::3033"
  5652. LinkLocalIPs:
  5653. - "169.254.34.68"
  5654. - "fe80::3468"
  5655. Links:
  5656. - "container_1"
  5657. - "container_2"
  5658. Aliases:
  5659. - "server_x"
  5660. - "server_y"
  5661. required: true
  5662. responses:
  5663. 201:
  5664. description: "Container created successfully"
  5665. schema:
  5666. type: "object"
  5667. title: "ContainerCreateResponse"
  5668. description: "OK response to ContainerCreate operation"
  5669. required: [Id, Warnings]
  5670. properties:
  5671. Id:
  5672. description: "The ID of the created container"
  5673. type: "string"
  5674. x-nullable: false
  5675. Warnings:
  5676. description: "Warnings encountered when creating the container"
  5677. type: "array"
  5678. x-nullable: false
  5679. items:
  5680. type: "string"
  5681. examples:
  5682. application/json:
  5683. Id: "e90e34656806"
  5684. Warnings: []
  5685. 400:
  5686. description: "bad parameter"
  5687. schema:
  5688. $ref: "#/definitions/ErrorResponse"
  5689. 404:
  5690. description: "no such image"
  5691. schema:
  5692. $ref: "#/definitions/ErrorResponse"
  5693. examples:
  5694. application/json:
  5695. message: "No such image: c2ada9df5af8"
  5696. 409:
  5697. description: "conflict"
  5698. schema:
  5699. $ref: "#/definitions/ErrorResponse"
  5700. 500:
  5701. description: "server error"
  5702. schema:
  5703. $ref: "#/definitions/ErrorResponse"
  5704. tags: ["Container"]
  5705. /containers/{id}/json:
  5706. get:
  5707. summary: "Inspect a container"
  5708. description: "Return low-level information about a container."
  5709. operationId: "ContainerInspect"
  5710. produces:
  5711. - "application/json"
  5712. responses:
  5713. 200:
  5714. description: "no error"
  5715. schema:
  5716. type: "object"
  5717. title: "ContainerInspectResponse"
  5718. properties:
  5719. Id:
  5720. description: "The ID of the container"
  5721. type: "string"
  5722. Created:
  5723. description: "The time the container was created"
  5724. type: "string"
  5725. Path:
  5726. description: "The path to the command being run"
  5727. type: "string"
  5728. Args:
  5729. description: "The arguments to the command being run"
  5730. type: "array"
  5731. items:
  5732. type: "string"
  5733. State:
  5734. $ref: "#/definitions/ContainerState"
  5735. Image:
  5736. description: "The container's image ID"
  5737. type: "string"
  5738. ResolvConfPath:
  5739. type: "string"
  5740. HostnamePath:
  5741. type: "string"
  5742. HostsPath:
  5743. type: "string"
  5744. LogPath:
  5745. type: "string"
  5746. Name:
  5747. type: "string"
  5748. RestartCount:
  5749. type: "integer"
  5750. Driver:
  5751. type: "string"
  5752. Platform:
  5753. type: "string"
  5754. MountLabel:
  5755. type: "string"
  5756. ProcessLabel:
  5757. type: "string"
  5758. AppArmorProfile:
  5759. type: "string"
  5760. ExecIDs:
  5761. description: "IDs of exec instances that are running in the container."
  5762. type: "array"
  5763. items:
  5764. type: "string"
  5765. x-nullable: true
  5766. HostConfig:
  5767. $ref: "#/definitions/HostConfig"
  5768. GraphDriver:
  5769. $ref: "#/definitions/GraphDriverData"
  5770. SizeRw:
  5771. description: |
  5772. The size of files that have been created or changed by this
  5773. container.
  5774. type: "integer"
  5775. format: "int64"
  5776. SizeRootFs:
  5777. description: "The total size of all the files in this container."
  5778. type: "integer"
  5779. format: "int64"
  5780. Mounts:
  5781. type: "array"
  5782. items:
  5783. $ref: "#/definitions/MountPoint"
  5784. Config:
  5785. $ref: "#/definitions/ContainerConfig"
  5786. NetworkSettings:
  5787. $ref: "#/definitions/NetworkSettings"
  5788. examples:
  5789. application/json:
  5790. AppArmorProfile: ""
  5791. Args:
  5792. - "-c"
  5793. - "exit 9"
  5794. Config:
  5795. AttachStderr: true
  5796. AttachStdin: false
  5797. AttachStdout: true
  5798. Cmd:
  5799. - "/bin/sh"
  5800. - "-c"
  5801. - "exit 9"
  5802. Domainname: ""
  5803. Env:
  5804. - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  5805. Healthcheck:
  5806. Test: ["CMD-SHELL", "exit 0"]
  5807. Hostname: "ba033ac44011"
  5808. Image: "ubuntu"
  5809. Labels:
  5810. com.example.vendor: "Acme"
  5811. com.example.license: "GPL"
  5812. com.example.version: "1.0"
  5813. MacAddress: ""
  5814. NetworkDisabled: false
  5815. OpenStdin: false
  5816. StdinOnce: false
  5817. Tty: false
  5818. User: ""
  5819. Volumes:
  5820. /volumes/data: {}
  5821. WorkingDir: ""
  5822. StopSignal: "SIGTERM"
  5823. StopTimeout: 10
  5824. Created: "2015-01-06T15:47:31.485331387Z"
  5825. Driver: "overlay2"
  5826. ExecIDs:
  5827. - "b35395de42bc8abd327f9dd65d913b9ba28c74d2f0734eeeae84fa1c616a0fca"
  5828. - "3fc1232e5cd20c8de182ed81178503dc6437f4e7ef12b52cc5e8de020652f1c4"
  5829. HostConfig:
  5830. MaximumIOps: 0
  5831. MaximumIOBps: 0
  5832. BlkioWeight: 0
  5833. BlkioWeightDevice:
  5834. - {}
  5835. BlkioDeviceReadBps:
  5836. - {}
  5837. BlkioDeviceWriteBps:
  5838. - {}
  5839. BlkioDeviceReadIOps:
  5840. - {}
  5841. BlkioDeviceWriteIOps:
  5842. - {}
  5843. ContainerIDFile: ""
  5844. CpusetCpus: ""
  5845. CpusetMems: ""
  5846. CpuPercent: 80
  5847. CpuShares: 0
  5848. CpuPeriod: 100000
  5849. CpuRealtimePeriod: 1000000
  5850. CpuRealtimeRuntime: 10000
  5851. Devices: []
  5852. DeviceRequests:
  5853. - Driver: "nvidia"
  5854. Count: -1
  5855. DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
  5856. Capabilities: [["gpu", "nvidia", "compute"]]
  5857. Options:
  5858. property1: "string"
  5859. property2: "string"
  5860. IpcMode: ""
  5861. Memory: 0
  5862. MemorySwap: 0
  5863. MemoryReservation: 0
  5864. KernelMemory: 0
  5865. OomKillDisable: false
  5866. OomScoreAdj: 500
  5867. NetworkMode: "bridge"
  5868. PidMode: ""
  5869. PortBindings: {}
  5870. Privileged: false
  5871. ReadonlyRootfs: false
  5872. PublishAllPorts: false
  5873. RestartPolicy:
  5874. MaximumRetryCount: 2
  5875. Name: "on-failure"
  5876. LogConfig:
  5877. Type: "json-file"
  5878. Sysctls:
  5879. net.ipv4.ip_forward: "1"
  5880. Ulimits:
  5881. - {}
  5882. VolumeDriver: ""
  5883. ShmSize: 67108864
  5884. HostnamePath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname"
  5885. HostsPath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts"
  5886. LogPath: "/var/lib/docker/containers/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b-json.log"
  5887. Id: "ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39"
  5888. Image: "04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2"
  5889. MountLabel: ""
  5890. Name: "/boring_euclid"
  5891. NetworkSettings:
  5892. Bridge: ""
  5893. SandboxID: ""
  5894. HairpinMode: false
  5895. LinkLocalIPv6Address: ""
  5896. LinkLocalIPv6PrefixLen: 0
  5897. SandboxKey: ""
  5898. EndpointID: ""
  5899. Gateway: ""
  5900. GlobalIPv6Address: ""
  5901. GlobalIPv6PrefixLen: 0
  5902. IPAddress: ""
  5903. IPPrefixLen: 0
  5904. IPv6Gateway: ""
  5905. MacAddress: ""
  5906. Networks:
  5907. bridge:
  5908. NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
  5909. EndpointID: "7587b82f0dada3656fda26588aee72630c6fab1536d36e394b2bfbcf898c971d"
  5910. Gateway: "172.17.0.1"
  5911. IPAddress: "172.17.0.2"
  5912. IPPrefixLen: 16
  5913. IPv6Gateway: ""
  5914. GlobalIPv6Address: ""
  5915. GlobalIPv6PrefixLen: 0
  5916. MacAddress: "02:42:ac:12:00:02"
  5917. Path: "/bin/sh"
  5918. ProcessLabel: ""
  5919. ResolvConfPath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf"
  5920. RestartCount: 1
  5921. State:
  5922. Error: ""
  5923. ExitCode: 9
  5924. FinishedAt: "2015-01-06T15:47:32.080254511Z"
  5925. Health:
  5926. Status: "healthy"
  5927. FailingStreak: 0
  5928. Log:
  5929. - Start: "2019-12-22T10:59:05.6385933Z"
  5930. End: "2019-12-22T10:59:05.8078452Z"
  5931. ExitCode: 0
  5932. Output: ""
  5933. OOMKilled: false
  5934. Dead: false
  5935. Paused: false
  5936. Pid: 0
  5937. Restarting: false
  5938. Running: true
  5939. StartedAt: "2015-01-06T15:47:32.072697474Z"
  5940. Status: "running"
  5941. Mounts:
  5942. - Name: "fac362...80535"
  5943. Source: "/data"
  5944. Destination: "/data"
  5945. Driver: "local"
  5946. Mode: "ro,Z"
  5947. RW: false
  5948. Propagation: ""
  5949. 404:
  5950. description: "no such container"
  5951. schema:
  5952. $ref: "#/definitions/ErrorResponse"
  5953. examples:
  5954. application/json:
  5955. message: "No such container: c2ada9df5af8"
  5956. 500:
  5957. description: "server error"
  5958. schema:
  5959. $ref: "#/definitions/ErrorResponse"
  5960. parameters:
  5961. - name: "id"
  5962. in: "path"
  5963. required: true
  5964. description: "ID or name of the container"
  5965. type: "string"
  5966. - name: "size"
  5967. in: "query"
  5968. type: "boolean"
  5969. default: false
  5970. description: "Return the size of container as fields `SizeRw` and `SizeRootFs`"
  5971. tags: ["Container"]
  5972. /containers/{id}/top:
  5973. get:
  5974. summary: "List processes running inside a container"
  5975. description: |
  5976. On Unix systems, this is done by running the `ps` command. This endpoint
  5977. is not supported on Windows.
  5978. operationId: "ContainerTop"
  5979. responses:
  5980. 200:
  5981. description: "no error"
  5982. schema:
  5983. type: "object"
  5984. title: "ContainerTopResponse"
  5985. description: "OK response to ContainerTop operation"
  5986. properties:
  5987. Titles:
  5988. description: "The ps column titles"
  5989. type: "array"
  5990. items:
  5991. type: "string"
  5992. Processes:
  5993. description: |
  5994. Each process running in the container, where each is process
  5995. is an array of values corresponding to the titles.
  5996. type: "array"
  5997. items:
  5998. type: "array"
  5999. items:
  6000. type: "string"
  6001. examples:
  6002. application/json:
  6003. Titles:
  6004. - "UID"
  6005. - "PID"
  6006. - "PPID"
  6007. - "C"
  6008. - "STIME"
  6009. - "TTY"
  6010. - "TIME"
  6011. - "CMD"
  6012. Processes:
  6013. -
  6014. - "root"
  6015. - "13642"
  6016. - "882"
  6017. - "0"
  6018. - "17:03"
  6019. - "pts/0"
  6020. - "00:00:00"
  6021. - "/bin/bash"
  6022. -
  6023. - "root"
  6024. - "13735"
  6025. - "13642"
  6026. - "0"
  6027. - "17:06"
  6028. - "pts/0"
  6029. - "00:00:00"
  6030. - "sleep 10"
  6031. 404:
  6032. description: "no such container"
  6033. schema:
  6034. $ref: "#/definitions/ErrorResponse"
  6035. examples:
  6036. application/json:
  6037. message: "No such container: c2ada9df5af8"
  6038. 500:
  6039. description: "server error"
  6040. schema:
  6041. $ref: "#/definitions/ErrorResponse"
  6042. parameters:
  6043. - name: "id"
  6044. in: "path"
  6045. required: true
  6046. description: "ID or name of the container"
  6047. type: "string"
  6048. - name: "ps_args"
  6049. in: "query"
  6050. description: "The arguments to pass to `ps`. For example, `aux`"
  6051. type: "string"
  6052. default: "-ef"
  6053. tags: ["Container"]
  6054. /containers/{id}/logs:
  6055. get:
  6056. summary: "Get container logs"
  6057. description: |
  6058. Get `stdout` and `stderr` logs from a container.
  6059. Note: This endpoint works only for containers with the `json-file` or
  6060. `journald` logging driver.
  6061. operationId: "ContainerLogs"
  6062. responses:
  6063. 200:
  6064. description: |
  6065. logs returned as a stream in response body.
  6066. For the stream format, [see the documentation for the attach endpoint](#operation/ContainerAttach).
  6067. Note that unlike the attach endpoint, the logs endpoint does not
  6068. upgrade the connection and does not set Content-Type.
  6069. schema:
  6070. type: "string"
  6071. format: "binary"
  6072. 404:
  6073. description: "no such container"
  6074. schema:
  6075. $ref: "#/definitions/ErrorResponse"
  6076. examples:
  6077. application/json:
  6078. message: "No such container: c2ada9df5af8"
  6079. 500:
  6080. description: "server error"
  6081. schema:
  6082. $ref: "#/definitions/ErrorResponse"
  6083. parameters:
  6084. - name: "id"
  6085. in: "path"
  6086. required: true
  6087. description: "ID or name of the container"
  6088. type: "string"
  6089. - name: "follow"
  6090. in: "query"
  6091. description: "Keep connection after returning logs."
  6092. type: "boolean"
  6093. default: false
  6094. - name: "stdout"
  6095. in: "query"
  6096. description: "Return logs from `stdout`"
  6097. type: "boolean"
  6098. default: false
  6099. - name: "stderr"
  6100. in: "query"
  6101. description: "Return logs from `stderr`"
  6102. type: "boolean"
  6103. default: false
  6104. - name: "since"
  6105. in: "query"
  6106. description: "Only return logs since this time, as a UNIX timestamp"
  6107. type: "integer"
  6108. default: 0
  6109. - name: "until"
  6110. in: "query"
  6111. description: "Only return logs before this time, as a UNIX timestamp"
  6112. type: "integer"
  6113. default: 0
  6114. - name: "timestamps"
  6115. in: "query"
  6116. description: "Add timestamps to every log line"
  6117. type: "boolean"
  6118. default: false
  6119. - name: "tail"
  6120. in: "query"
  6121. description: |
  6122. Only return this number of log lines from the end of the logs.
  6123. Specify as an integer or `all` to output all log lines.
  6124. type: "string"
  6125. default: "all"
  6126. tags: ["Container"]
  6127. /containers/{id}/changes:
  6128. get:
  6129. summary: "Get changes on a container’s filesystem"
  6130. description: |
  6131. Returns which files in a container's filesystem have been added, deleted,
  6132. or modified. The `Kind` of modification can be one of:
  6133. - `0`: Modified
  6134. - `1`: Added
  6135. - `2`: Deleted
  6136. operationId: "ContainerChanges"
  6137. produces: ["application/json"]
  6138. responses:
  6139. 200:
  6140. description: "The list of changes"
  6141. schema:
  6142. type: "array"
  6143. items:
  6144. type: "object"
  6145. x-go-name: "ContainerChangeResponseItem"
  6146. title: "ContainerChangeResponseItem"
  6147. description: "change item in response to ContainerChanges operation"
  6148. required: [Path, Kind]
  6149. properties:
  6150. Path:
  6151. description: "Path to file that has changed"
  6152. type: "string"
  6153. x-nullable: false
  6154. Kind:
  6155. description: "Kind of change"
  6156. type: "integer"
  6157. format: "uint8"
  6158. enum: [0, 1, 2]
  6159. x-nullable: false
  6160. examples:
  6161. application/json:
  6162. - Path: "/dev"
  6163. Kind: 0
  6164. - Path: "/dev/kmsg"
  6165. Kind: 1
  6166. - Path: "/test"
  6167. Kind: 1
  6168. 404:
  6169. description: "no such container"
  6170. schema:
  6171. $ref: "#/definitions/ErrorResponse"
  6172. examples:
  6173. application/json:
  6174. message: "No such container: c2ada9df5af8"
  6175. 500:
  6176. description: "server error"
  6177. schema:
  6178. $ref: "#/definitions/ErrorResponse"
  6179. parameters:
  6180. - name: "id"
  6181. in: "path"
  6182. required: true
  6183. description: "ID or name of the container"
  6184. type: "string"
  6185. tags: ["Container"]
  6186. /containers/{id}/export:
  6187. get:
  6188. summary: "Export a container"
  6189. description: "Export the contents of a container as a tarball."
  6190. operationId: "ContainerExport"
  6191. produces:
  6192. - "application/octet-stream"
  6193. responses:
  6194. 200:
  6195. description: "no error"
  6196. 404:
  6197. description: "no such container"
  6198. schema:
  6199. $ref: "#/definitions/ErrorResponse"
  6200. examples:
  6201. application/json:
  6202. message: "No such container: c2ada9df5af8"
  6203. 500:
  6204. description: "server error"
  6205. schema:
  6206. $ref: "#/definitions/ErrorResponse"
  6207. parameters:
  6208. - name: "id"
  6209. in: "path"
  6210. required: true
  6211. description: "ID or name of the container"
  6212. type: "string"
  6213. tags: ["Container"]
  6214. /containers/{id}/stats:
  6215. get:
  6216. summary: "Get container stats based on resource usage"
  6217. description: |
  6218. This endpoint returns a live stream of a container’s resource usage
  6219. statistics.
  6220. The `precpu_stats` is the CPU statistic of the *previous* read, and is
  6221. used to calculate the CPU usage percentage. It is not an exact copy
  6222. of the `cpu_stats` field.
  6223. If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
  6224. nil then for compatibility with older daemons the length of the
  6225. corresponding `cpu_usage.percpu_usage` array should be used.
  6226. To calculate the values shown by the `stats` command of the docker cli tool
  6227. the following formulas can be used:
  6228. * used_memory = `memory_stats.usage - memory_stats.stats.cache`
  6229. * available_memory = `memory_stats.limit`
  6230. * Memory usage % = `(used_memory / available_memory) * 100.0`
  6231. * cpu_delta = `cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage`
  6232. * system_cpu_delta = `cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage`
  6233. * number_cpus = `lenght(cpu_stats.cpu_usage.percpu_usage)` or `cpu_stats.online_cpus`
  6234. * CPU usage % = `(cpu_delta / system_cpu_delta) * number_cpus * 100.0`
  6235. operationId: "ContainerStats"
  6236. produces: ["application/json"]
  6237. responses:
  6238. 200:
  6239. description: "no error"
  6240. schema:
  6241. type: "object"
  6242. examples:
  6243. application/json:
  6244. read: "2015-01-08T22:57:31.547920715Z"
  6245. pids_stats:
  6246. current: 3
  6247. networks:
  6248. eth0:
  6249. rx_bytes: 5338
  6250. rx_dropped: 0
  6251. rx_errors: 0
  6252. rx_packets: 36
  6253. tx_bytes: 648
  6254. tx_dropped: 0
  6255. tx_errors: 0
  6256. tx_packets: 8
  6257. eth5:
  6258. rx_bytes: 4641
  6259. rx_dropped: 0
  6260. rx_errors: 0
  6261. rx_packets: 26
  6262. tx_bytes: 690
  6263. tx_dropped: 0
  6264. tx_errors: 0
  6265. tx_packets: 9
  6266. memory_stats:
  6267. stats:
  6268. total_pgmajfault: 0
  6269. cache: 0
  6270. mapped_file: 0
  6271. total_inactive_file: 0
  6272. pgpgout: 414
  6273. rss: 6537216
  6274. total_mapped_file: 0
  6275. writeback: 0
  6276. unevictable: 0
  6277. pgpgin: 477
  6278. total_unevictable: 0
  6279. pgmajfault: 0
  6280. total_rss: 6537216
  6281. total_rss_huge: 6291456
  6282. total_writeback: 0
  6283. total_inactive_anon: 0
  6284. rss_huge: 6291456
  6285. hierarchical_memory_limit: 67108864
  6286. total_pgfault: 964
  6287. total_active_file: 0
  6288. active_anon: 6537216
  6289. total_active_anon: 6537216
  6290. total_pgpgout: 414
  6291. total_cache: 0
  6292. inactive_anon: 0
  6293. active_file: 0
  6294. pgfault: 964
  6295. inactive_file: 0
  6296. total_pgpgin: 477
  6297. max_usage: 6651904
  6298. usage: 6537216
  6299. failcnt: 0
  6300. limit: 67108864
  6301. blkio_stats: {}
  6302. cpu_stats:
  6303. cpu_usage:
  6304. percpu_usage:
  6305. - 8646879
  6306. - 24472255
  6307. - 36438778
  6308. - 30657443
  6309. usage_in_usermode: 50000000
  6310. total_usage: 100215355
  6311. usage_in_kernelmode: 30000000
  6312. system_cpu_usage: 739306590000000
  6313. online_cpus: 4
  6314. throttling_data:
  6315. periods: 0
  6316. throttled_periods: 0
  6317. throttled_time: 0
  6318. precpu_stats:
  6319. cpu_usage:
  6320. percpu_usage:
  6321. - 8646879
  6322. - 24350896
  6323. - 36438778
  6324. - 30657443
  6325. usage_in_usermode: 50000000
  6326. total_usage: 100093996
  6327. usage_in_kernelmode: 30000000
  6328. system_cpu_usage: 9492140000000
  6329. online_cpus: 4
  6330. throttling_data:
  6331. periods: 0
  6332. throttled_periods: 0
  6333. throttled_time: 0
  6334. 404:
  6335. description: "no such container"
  6336. schema:
  6337. $ref: "#/definitions/ErrorResponse"
  6338. examples:
  6339. application/json:
  6340. message: "No such container: c2ada9df5af8"
  6341. 500:
  6342. description: "server error"
  6343. schema:
  6344. $ref: "#/definitions/ErrorResponse"
  6345. parameters:
  6346. - name: "id"
  6347. in: "path"
  6348. required: true
  6349. description: "ID or name of the container"
  6350. type: "string"
  6351. - name: "stream"
  6352. in: "query"
  6353. description: |
  6354. Stream the output. If false, the stats will be output once and then
  6355. it will disconnect.
  6356. type: "boolean"
  6357. default: true
  6358. tags: ["Container"]
  6359. /containers/{id}/resize:
  6360. post:
  6361. summary: "Resize a container TTY"
  6362. description: "Resize the TTY for a container."
  6363. operationId: "ContainerResize"
  6364. consumes:
  6365. - "application/octet-stream"
  6366. produces:
  6367. - "text/plain"
  6368. responses:
  6369. 200:
  6370. description: "no error"
  6371. 404:
  6372. description: "no such container"
  6373. schema:
  6374. $ref: "#/definitions/ErrorResponse"
  6375. examples:
  6376. application/json:
  6377. message: "No such container: c2ada9df5af8"
  6378. 500:
  6379. description: "cannot resize container"
  6380. schema:
  6381. $ref: "#/definitions/ErrorResponse"
  6382. parameters:
  6383. - name: "id"
  6384. in: "path"
  6385. required: true
  6386. description: "ID or name of the container"
  6387. type: "string"
  6388. - name: "h"
  6389. in: "query"
  6390. description: "Height of the TTY session in characters"
  6391. type: "integer"
  6392. - name: "w"
  6393. in: "query"
  6394. description: "Width of the TTY session in characters"
  6395. type: "integer"
  6396. tags: ["Container"]
  6397. /containers/{id}/start:
  6398. post:
  6399. summary: "Start a container"
  6400. operationId: "ContainerStart"
  6401. responses:
  6402. 204:
  6403. description: "no error"
  6404. 304:
  6405. description: "container already started"
  6406. 404:
  6407. description: "no such container"
  6408. schema:
  6409. $ref: "#/definitions/ErrorResponse"
  6410. examples:
  6411. application/json:
  6412. message: "No such container: c2ada9df5af8"
  6413. 500:
  6414. description: "server error"
  6415. schema:
  6416. $ref: "#/definitions/ErrorResponse"
  6417. parameters:
  6418. - name: "id"
  6419. in: "path"
  6420. required: true
  6421. description: "ID or name of the container"
  6422. type: "string"
  6423. - name: "detachKeys"
  6424. in: "query"
  6425. description: |
  6426. Override the key sequence for detaching a container. Format is a
  6427. single character `[a-Z]` or `ctrl-<value>` where `<value>` is one
  6428. of: `a-z`, `@`, `^`, `[`, `,` or `_`.
  6429. type: "string"
  6430. tags: ["Container"]
  6431. /containers/{id}/stop:
  6432. post:
  6433. summary: "Stop a container"
  6434. operationId: "ContainerStop"
  6435. responses:
  6436. 204:
  6437. description: "no error"
  6438. 304:
  6439. description: "container already stopped"
  6440. 404:
  6441. description: "no such container"
  6442. schema:
  6443. $ref: "#/definitions/ErrorResponse"
  6444. examples:
  6445. application/json:
  6446. message: "No such container: c2ada9df5af8"
  6447. 500:
  6448. description: "server error"
  6449. schema:
  6450. $ref: "#/definitions/ErrorResponse"
  6451. parameters:
  6452. - name: "id"
  6453. in: "path"
  6454. required: true
  6455. description: "ID or name of the container"
  6456. type: "string"
  6457. - name: "t"
  6458. in: "query"
  6459. description: "Number of seconds to wait before killing the container"
  6460. type: "integer"
  6461. tags: ["Container"]
  6462. /containers/{id}/restart:
  6463. post:
  6464. summary: "Restart a container"
  6465. operationId: "ContainerRestart"
  6466. responses:
  6467. 204:
  6468. description: "no error"
  6469. 404:
  6470. description: "no such container"
  6471. schema:
  6472. $ref: "#/definitions/ErrorResponse"
  6473. examples:
  6474. application/json:
  6475. message: "No such container: c2ada9df5af8"
  6476. 500:
  6477. description: "server error"
  6478. schema:
  6479. $ref: "#/definitions/ErrorResponse"
  6480. parameters:
  6481. - name: "id"
  6482. in: "path"
  6483. required: true
  6484. description: "ID or name of the container"
  6485. type: "string"
  6486. - name: "t"
  6487. in: "query"
  6488. description: "Number of seconds to wait before killing the container"
  6489. type: "integer"
  6490. tags: ["Container"]
  6491. /containers/{id}/kill:
  6492. post:
  6493. summary: "Kill a container"
  6494. description: |
  6495. Send a POSIX signal to a container, defaulting to killing to the
  6496. container.
  6497. operationId: "ContainerKill"
  6498. responses:
  6499. 204:
  6500. description: "no error"
  6501. 404:
  6502. description: "no such container"
  6503. schema:
  6504. $ref: "#/definitions/ErrorResponse"
  6505. examples:
  6506. application/json:
  6507. message: "No such container: c2ada9df5af8"
  6508. 409:
  6509. description: "container is not running"
  6510. schema:
  6511. $ref: "#/definitions/ErrorResponse"
  6512. examples:
  6513. application/json:
  6514. message: "Container d37cde0fe4ad63c3a7252023b2f9800282894247d145cb5933ddf6e52cc03a28 is not running"
  6515. 500:
  6516. description: "server error"
  6517. schema:
  6518. $ref: "#/definitions/ErrorResponse"
  6519. parameters:
  6520. - name: "id"
  6521. in: "path"
  6522. required: true
  6523. description: "ID or name of the container"
  6524. type: "string"
  6525. - name: "signal"
  6526. in: "query"
  6527. description: |
  6528. Signal to send to the container as an integer or string (e.g. `SIGINT`).
  6529. type: "string"
  6530. default: "SIGKILL"
  6531. tags: ["Container"]
  6532. /containers/{id}/update:
  6533. post:
  6534. summary: "Update a container"
  6535. description: |
  6536. Change various configuration options of a container without having to
  6537. recreate it.
  6538. operationId: "ContainerUpdate"
  6539. consumes: ["application/json"]
  6540. produces: ["application/json"]
  6541. responses:
  6542. 200:
  6543. description: "The container has been updated."
  6544. schema:
  6545. type: "object"
  6546. title: "ContainerUpdateResponse"
  6547. description: "OK response to ContainerUpdate operation"
  6548. properties:
  6549. Warnings:
  6550. type: "array"
  6551. items:
  6552. type: "string"
  6553. 404:
  6554. description: "no such container"
  6555. schema:
  6556. $ref: "#/definitions/ErrorResponse"
  6557. examples:
  6558. application/json:
  6559. message: "No such container: c2ada9df5af8"
  6560. 500:
  6561. description: "server error"
  6562. schema:
  6563. $ref: "#/definitions/ErrorResponse"
  6564. parameters:
  6565. - name: "id"
  6566. in: "path"
  6567. required: true
  6568. description: "ID or name of the container"
  6569. type: "string"
  6570. - name: "update"
  6571. in: "body"
  6572. required: true
  6573. schema:
  6574. allOf:
  6575. - $ref: "#/definitions/Resources"
  6576. - type: "object"
  6577. properties:
  6578. RestartPolicy:
  6579. $ref: "#/definitions/RestartPolicy"
  6580. example:
  6581. BlkioWeight: 300
  6582. CpuShares: 512
  6583. CpuPeriod: 100000
  6584. CpuQuota: 50000
  6585. CpuRealtimePeriod: 1000000
  6586. CpuRealtimeRuntime: 10000
  6587. CpusetCpus: "0,1"
  6588. CpusetMems: "0"
  6589. Memory: 314572800
  6590. MemorySwap: 514288000
  6591. MemoryReservation: 209715200
  6592. KernelMemory: 52428800
  6593. RestartPolicy:
  6594. MaximumRetryCount: 4
  6595. Name: "on-failure"
  6596. tags: ["Container"]
  6597. /containers/{id}/rename:
  6598. post:
  6599. summary: "Rename a container"
  6600. operationId: "ContainerRename"
  6601. responses:
  6602. 204:
  6603. description: "no error"
  6604. 404:
  6605. description: "no such container"
  6606. schema:
  6607. $ref: "#/definitions/ErrorResponse"
  6608. examples:
  6609. application/json:
  6610. message: "No such container: c2ada9df5af8"
  6611. 409:
  6612. description: "name already in use"
  6613. schema:
  6614. $ref: "#/definitions/ErrorResponse"
  6615. 500:
  6616. description: "server error"
  6617. schema:
  6618. $ref: "#/definitions/ErrorResponse"
  6619. parameters:
  6620. - name: "id"
  6621. in: "path"
  6622. required: true
  6623. description: "ID or name of the container"
  6624. type: "string"
  6625. - name: "name"
  6626. in: "query"
  6627. required: true
  6628. description: "New name for the container"
  6629. type: "string"
  6630. tags: ["Container"]
  6631. /containers/{id}/pause:
  6632. post:
  6633. summary: "Pause a container"
  6634. description: |
  6635. Use the freezer cgroup to suspend all processes in a container.
  6636. Traditionally, when suspending a process the `SIGSTOP` signal is used,
  6637. which is observable by the process being suspended. With the freezer
  6638. cgroup the process is unaware, and unable to capture, that it is being
  6639. suspended, and subsequently resumed.
  6640. operationId: "ContainerPause"
  6641. responses:
  6642. 204:
  6643. description: "no error"
  6644. 404:
  6645. description: "no such container"
  6646. schema:
  6647. $ref: "#/definitions/ErrorResponse"
  6648. examples:
  6649. application/json:
  6650. message: "No such container: c2ada9df5af8"
  6651. 500:
  6652. description: "server error"
  6653. schema:
  6654. $ref: "#/definitions/ErrorResponse"
  6655. parameters:
  6656. - name: "id"
  6657. in: "path"
  6658. required: true
  6659. description: "ID or name of the container"
  6660. type: "string"
  6661. tags: ["Container"]
  6662. /containers/{id}/unpause:
  6663. post:
  6664. summary: "Unpause a container"
  6665. description: "Resume a container which has been paused."
  6666. operationId: "ContainerUnpause"
  6667. responses:
  6668. 204:
  6669. description: "no error"
  6670. 404:
  6671. description: "no such container"
  6672. schema:
  6673. $ref: "#/definitions/ErrorResponse"
  6674. examples:
  6675. application/json:
  6676. message: "No such container: c2ada9df5af8"
  6677. 500:
  6678. description: "server error"
  6679. schema:
  6680. $ref: "#/definitions/ErrorResponse"
  6681. parameters:
  6682. - name: "id"
  6683. in: "path"
  6684. required: true
  6685. description: "ID or name of the container"
  6686. type: "string"
  6687. tags: ["Container"]
  6688. /containers/{id}/attach:
  6689. post:
  6690. summary: "Attach to a container"
  6691. description: |
  6692. Attach to a container to read its output or send it input. You can attach
  6693. to the same container multiple times and you can reattach to containers
  6694. that have been detached.
  6695. Either the `stream` or `logs` parameter must be `true` for this endpoint
  6696. to do anything.
  6697. See the [documentation for the `docker attach` command](https://docs.docker.com/engine/reference/commandline/attach/)
  6698. for more details.
  6699. ### Hijacking
  6700. This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`,
  6701. and `stderr` on the same socket.
  6702. This is the response from the daemon for an attach request:
  6703. ```
  6704. HTTP/1.1 200 OK
  6705. Content-Type: application/vnd.docker.raw-stream
  6706. [STREAM]
  6707. ```
  6708. After the headers and two new lines, the TCP connection can now be used
  6709. for raw, bidirectional communication between the client and server.
  6710. To hint potential proxies about connection hijacking, the Docker client
  6711. can also optionally send connection upgrade headers.
  6712. For example, the client sends this request to upgrade the connection:
  6713. ```
  6714. POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1
  6715. Upgrade: tcp
  6716. Connection: Upgrade
  6717. ```
  6718. The Docker daemon will respond with a `101 UPGRADED` response, and will
  6719. similarly follow with the raw stream:
  6720. ```
  6721. HTTP/1.1 101 UPGRADED
  6722. Content-Type: application/vnd.docker.raw-stream
  6723. Connection: Upgrade
  6724. Upgrade: tcp
  6725. [STREAM]
  6726. ```
  6727. ### Stream format
  6728. When the TTY setting is disabled in [`POST /containers/create`](#operation/ContainerCreate),
  6729. the stream over the hijacked connected is multiplexed to separate out
  6730. `stdout` and `stderr`. The stream consists of a series of frames, each
  6731. containing a header and a payload.
  6732. The header contains the information which the stream writes (`stdout` or
  6733. `stderr`). It also contains the size of the associated frame encoded in
  6734. the last four bytes (`uint32`).
  6735. It is encoded on the first eight bytes like this:
  6736. ```go
  6737. header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
  6738. ```
  6739. `STREAM_TYPE` can be:
  6740. - 0: `stdin` (is written on `stdout`)
  6741. - 1: `stdout`
  6742. - 2: `stderr`
  6743. `SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size
  6744. encoded as big endian.
  6745. Following the header is the payload, which is the specified number of
  6746. bytes of `STREAM_TYPE`.
  6747. The simplest way to implement this protocol is the following:
  6748. 1. Read 8 bytes.
  6749. 2. Choose `stdout` or `stderr` depending on the first byte.
  6750. 3. Extract the frame size from the last four bytes.
  6751. 4. Read the extracted size and output it on the correct output.
  6752. 5. Goto 1.
  6753. ### Stream format when using a TTY
  6754. When the TTY setting is enabled in [`POST /containers/create`](#operation/ContainerCreate),
  6755. the stream is not multiplexed. The data exchanged over the hijacked
  6756. connection is simply the raw data from the process PTY and client's
  6757. `stdin`.
  6758. operationId: "ContainerAttach"
  6759. produces:
  6760. - "application/vnd.docker.raw-stream"
  6761. responses:
  6762. 101:
  6763. description: "no error, hints proxy about hijacking"
  6764. 200:
  6765. description: "no error, no upgrade header found"
  6766. 400:
  6767. description: "bad parameter"
  6768. schema:
  6769. $ref: "#/definitions/ErrorResponse"
  6770. 404:
  6771. description: "no such container"
  6772. schema:
  6773. $ref: "#/definitions/ErrorResponse"
  6774. examples:
  6775. application/json:
  6776. message: "No such container: c2ada9df5af8"
  6777. 500:
  6778. description: "server error"
  6779. schema:
  6780. $ref: "#/definitions/ErrorResponse"
  6781. parameters:
  6782. - name: "id"
  6783. in: "path"
  6784. required: true
  6785. description: "ID or name of the container"
  6786. type: "string"
  6787. - name: "detachKeys"
  6788. in: "query"
  6789. description: |
  6790. Override the key sequence for detaching a container.Format is a single
  6791. character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
  6792. `@`, `^`, `[`, `,` or `_`.
  6793. type: "string"
  6794. - name: "logs"
  6795. in: "query"
  6796. description: |
  6797. Replay previous logs from the container.
  6798. This is useful for attaching to a container that has started and you
  6799. want to output everything since the container started.
  6800. If `stream` is also enabled, once all the previous output has been
  6801. returned, it will seamlessly transition into streaming current
  6802. output.
  6803. type: "boolean"
  6804. default: false
  6805. - name: "stream"
  6806. in: "query"
  6807. description: |
  6808. Stream attached streams from the time the request was made onwards.
  6809. type: "boolean"
  6810. default: false
  6811. - name: "stdin"
  6812. in: "query"
  6813. description: "Attach to `stdin`"
  6814. type: "boolean"
  6815. default: false
  6816. - name: "stdout"
  6817. in: "query"
  6818. description: "Attach to `stdout`"
  6819. type: "boolean"
  6820. default: false
  6821. - name: "stderr"
  6822. in: "query"
  6823. description: "Attach to `stderr`"
  6824. type: "boolean"
  6825. default: false
  6826. tags: ["Container"]
  6827. /containers/{id}/attach/ws:
  6828. get:
  6829. summary: "Attach to a container via a websocket"
  6830. operationId: "ContainerAttachWebsocket"
  6831. responses:
  6832. 101:
  6833. description: "no error, hints proxy about hijacking"
  6834. 200:
  6835. description: "no error, no upgrade header found"
  6836. 400:
  6837. description: "bad parameter"
  6838. schema:
  6839. $ref: "#/definitions/ErrorResponse"
  6840. 404:
  6841. description: "no such container"
  6842. schema:
  6843. $ref: "#/definitions/ErrorResponse"
  6844. examples:
  6845. application/json:
  6846. message: "No such container: c2ada9df5af8"
  6847. 500:
  6848. description: "server error"
  6849. schema:
  6850. $ref: "#/definitions/ErrorResponse"
  6851. parameters:
  6852. - name: "id"
  6853. in: "path"
  6854. required: true
  6855. description: "ID or name of the container"
  6856. type: "string"
  6857. - name: "detachKeys"
  6858. in: "query"
  6859. description: |
  6860. Override the key sequence for detaching a container.Format is a single
  6861. character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
  6862. `@`, `^`, `[`, `,`, or `_`.
  6863. type: "string"
  6864. - name: "logs"
  6865. in: "query"
  6866. description: "Return logs"
  6867. type: "boolean"
  6868. default: false
  6869. - name: "stream"
  6870. in: "query"
  6871. description: "Return stream"
  6872. type: "boolean"
  6873. default: false
  6874. tags: ["Container"]
  6875. /containers/{id}/wait:
  6876. post:
  6877. summary: "Wait for a container"
  6878. description: "Block until a container stops, then returns the exit code."
  6879. operationId: "ContainerWait"
  6880. produces: ["application/json"]
  6881. responses:
  6882. 200:
  6883. description: "The container has exit."
  6884. schema:
  6885. $ref: "#/definitions/ContainerWaitResponse"
  6886. 400:
  6887. description: "bad parameter"
  6888. schema:
  6889. $ref: "#/definitions/ErrorResponse"
  6890. 404:
  6891. description: "no such container"
  6892. schema:
  6893. $ref: "#/definitions/ErrorResponse"
  6894. examples:
  6895. application/json:
  6896. message: "No such container: c2ada9df5af8"
  6897. 500:
  6898. description: "server error"
  6899. schema:
  6900. $ref: "#/definitions/ErrorResponse"
  6901. parameters:
  6902. - name: "id"
  6903. in: "path"
  6904. required: true
  6905. description: "ID or name of the container"
  6906. type: "string"
  6907. - name: "condition"
  6908. in: "query"
  6909. description: |
  6910. Wait until a container state reaches the given condition.
  6911. Defaults to `not-running` if omitted or empty.
  6912. type: "string"
  6913. enum:
  6914. - "not-running"
  6915. - "next-exit"
  6916. - "removed"
  6917. default: "not-running"
  6918. tags: ["Container"]
  6919. /containers/{id}:
  6920. delete:
  6921. summary: "Remove a container"
  6922. operationId: "ContainerDelete"
  6923. responses:
  6924. 204:
  6925. description: "no error"
  6926. 400:
  6927. description: "bad parameter"
  6928. schema:
  6929. $ref: "#/definitions/ErrorResponse"
  6930. 404:
  6931. description: "no such container"
  6932. schema:
  6933. $ref: "#/definitions/ErrorResponse"
  6934. examples:
  6935. application/json:
  6936. message: "No such container: c2ada9df5af8"
  6937. 409:
  6938. description: "conflict"
  6939. schema:
  6940. $ref: "#/definitions/ErrorResponse"
  6941. examples:
  6942. application/json:
  6943. message: |
  6944. You cannot remove a running container: c2ada9df5af8. Stop the
  6945. container before attempting removal or force remove
  6946. 500:
  6947. description: "server error"
  6948. schema:
  6949. $ref: "#/definitions/ErrorResponse"
  6950. parameters:
  6951. - name: "id"
  6952. in: "path"
  6953. required: true
  6954. description: "ID or name of the container"
  6955. type: "string"
  6956. - name: "v"
  6957. in: "query"
  6958. description: "Remove anonymous volumes associated with the container."
  6959. type: "boolean"
  6960. default: false
  6961. - name: "force"
  6962. in: "query"
  6963. description: "If the container is running, kill it before removing it."
  6964. type: "boolean"
  6965. default: false
  6966. - name: "link"
  6967. in: "query"
  6968. description: "Remove the specified link associated with the container."
  6969. type: "boolean"
  6970. default: false
  6971. tags: ["Container"]
  6972. /containers/{id}/archive:
  6973. head:
  6974. summary: "Get information about files in a container"
  6975. description: |
  6976. A response header `X-Docker-Container-Path-Stat` is returned, containing
  6977. a base64 - encoded JSON object with some filesystem header information
  6978. about the path.
  6979. operationId: "ContainerArchiveInfo"
  6980. responses:
  6981. 200:
  6982. description: "no error"
  6983. headers:
  6984. X-Docker-Container-Path-Stat:
  6985. type: "string"
  6986. description: |
  6987. A base64 - encoded JSON object with some filesystem header
  6988. information about the path
  6989. 400:
  6990. description: "Bad parameter"
  6991. schema:
  6992. $ref: "#/definitions/ErrorResponse"
  6993. 404:
  6994. description: "Container or path does not exist"
  6995. schema:
  6996. $ref: "#/definitions/ErrorResponse"
  6997. examples:
  6998. application/json:
  6999. message: "No such container: c2ada9df5af8"
  7000. 500:
  7001. description: "Server error"
  7002. schema:
  7003. $ref: "#/definitions/ErrorResponse"
  7004. parameters:
  7005. - name: "id"
  7006. in: "path"
  7007. required: true
  7008. description: "ID or name of the container"
  7009. type: "string"
  7010. - name: "path"
  7011. in: "query"
  7012. required: true
  7013. description: "Resource in the container’s filesystem to archive."
  7014. type: "string"
  7015. tags: ["Container"]
  7016. get:
  7017. summary: "Get an archive of a filesystem resource in a container"
  7018. description: "Get a tar archive of a resource in the filesystem of container id."
  7019. operationId: "ContainerArchive"
  7020. produces: ["application/x-tar"]
  7021. responses:
  7022. 200:
  7023. description: "no error"
  7024. 400:
  7025. description: "Bad parameter"
  7026. schema:
  7027. $ref: "#/definitions/ErrorResponse"
  7028. 404:
  7029. description: "Container or path does not exist"
  7030. schema:
  7031. $ref: "#/definitions/ErrorResponse"
  7032. examples:
  7033. application/json:
  7034. message: "No such container: c2ada9df5af8"
  7035. 500:
  7036. description: "server error"
  7037. schema:
  7038. $ref: "#/definitions/ErrorResponse"
  7039. parameters:
  7040. - name: "id"
  7041. in: "path"
  7042. required: true
  7043. description: "ID or name of the container"
  7044. type: "string"
  7045. - name: "path"
  7046. in: "query"
  7047. required: true
  7048. description: "Resource in the container’s filesystem to archive."
  7049. type: "string"
  7050. tags: ["Container"]
  7051. put:
  7052. summary: "Extract an archive of files or folders to a directory in a container"
  7053. description: |
  7054. Upload a tar archive to be extracted to a path in the filesystem of container id.
  7055. `path` parameter is asserted to be a directory. If it exists as a file, 400 error
  7056. will be returned with message "not a directory".
  7057. operationId: "PutContainerArchive"
  7058. consumes: ["application/x-tar", "application/octet-stream"]
  7059. responses:
  7060. 200:
  7061. description: "The content was extracted successfully"
  7062. 400:
  7063. description: "Bad parameter"
  7064. schema:
  7065. $ref: "#/definitions/ErrorResponse"
  7066. examples:
  7067. application/json:
  7068. message: "not a directory"
  7069. 403:
  7070. description: "Permission denied, the volume or container rootfs is marked as read-only."
  7071. schema:
  7072. $ref: "#/definitions/ErrorResponse"
  7073. 404:
  7074. description: "No such container or path does not exist inside the container"
  7075. schema:
  7076. $ref: "#/definitions/ErrorResponse"
  7077. examples:
  7078. application/json:
  7079. message: "No such container: c2ada9df5af8"
  7080. 500:
  7081. description: "Server error"
  7082. schema:
  7083. $ref: "#/definitions/ErrorResponse"
  7084. parameters:
  7085. - name: "id"
  7086. in: "path"
  7087. required: true
  7088. description: "ID or name of the container"
  7089. type: "string"
  7090. - name: "path"
  7091. in: "query"
  7092. required: true
  7093. description: "Path to a directory in the container to extract the archive’s contents into. "
  7094. type: "string"
  7095. - name: "noOverwriteDirNonDir"
  7096. in: "query"
  7097. description: |
  7098. If `1`, `true`, or `True` then it will be an error if unpacking the
  7099. given content would cause an existing directory to be replaced with
  7100. a non-directory and vice versa.
  7101. type: "string"
  7102. - name: "copyUIDGID"
  7103. in: "query"
  7104. description: |
  7105. If `1`, `true`, then it will copy UID/GID maps to the dest file or
  7106. dir
  7107. type: "string"
  7108. - name: "inputStream"
  7109. in: "body"
  7110. required: true
  7111. description: |
  7112. The input stream must be a tar archive compressed with one of the
  7113. following algorithms: `identity` (no compression), `gzip`, `bzip2`,
  7114. or `xz`.
  7115. schema:
  7116. type: "string"
  7117. format: "binary"
  7118. tags: ["Container"]
  7119. /containers/prune:
  7120. post:
  7121. summary: "Delete stopped containers"
  7122. produces:
  7123. - "application/json"
  7124. operationId: "ContainerPrune"
  7125. parameters:
  7126. - name: "filters"
  7127. in: "query"
  7128. description: |
  7129. Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
  7130. Available filters:
  7131. - `until=<timestamp>` Prune containers created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
  7132. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune containers with (or without, in case `label!=...` is used) the specified labels.
  7133. type: "string"
  7134. responses:
  7135. 200:
  7136. description: "No error"
  7137. schema:
  7138. type: "object"
  7139. title: "ContainerPruneResponse"
  7140. properties:
  7141. ContainersDeleted:
  7142. description: "Container IDs that were deleted"
  7143. type: "array"
  7144. items:
  7145. type: "string"
  7146. SpaceReclaimed:
  7147. description: "Disk space reclaimed in bytes"
  7148. type: "integer"
  7149. format: "int64"
  7150. 500:
  7151. description: "Server error"
  7152. schema:
  7153. $ref: "#/definitions/ErrorResponse"
  7154. tags: ["Container"]
  7155. /images/json:
  7156. get:
  7157. summary: "List Images"
  7158. description: "Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image."
  7159. operationId: "ImageList"
  7160. produces:
  7161. - "application/json"
  7162. responses:
  7163. 200:
  7164. description: "Summary image data for the images matching the query"
  7165. schema:
  7166. type: "array"
  7167. items:
  7168. $ref: "#/definitions/ImageSummary"
  7169. 500:
  7170. description: "server error"
  7171. schema:
  7172. $ref: "#/definitions/ErrorResponse"
  7173. parameters:
  7174. - name: "all"
  7175. in: "query"
  7176. description: "Show all images. Only images from a final layer (no children) are shown by default."
  7177. type: "boolean"
  7178. default: false
  7179. - name: "filters"
  7180. in: "query"
  7181. description: |
  7182. A JSON encoded value of the filters (a `map[string][]string`) to
  7183. process on the images list.
  7184. Available filters:
  7185. - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
  7186. - `dangling=true`
  7187. - `label=key` or `label="key=value"` of an image label
  7188. - `reference`=(`<image-name>[:<tag>]`)
  7189. - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
  7190. type: "string"
  7191. - name: "digests"
  7192. in: "query"
  7193. description: "Show digest information as a `RepoDigests` field on each image."
  7194. type: "boolean"
  7195. default: false
  7196. tags: ["Image"]
  7197. /build:
  7198. post:
  7199. summary: "Build an image"
  7200. description: |
  7201. Build an image from a tar archive with a `Dockerfile` in it.
  7202. The `Dockerfile` specifies how the image is built from the tar archive. It is typically in the archive's root, but can be at a different path or have a different name by specifying the `dockerfile` parameter. [See the `Dockerfile` reference for more information](https://docs.docker.com/engine/reference/builder/).
  7203. The Docker daemon performs a preliminary validation of the `Dockerfile` before starting the build, and returns an error if the syntax is incorrect. After that, each instruction is run one-by-one until the ID of the new image is output.
  7204. The build is canceled if the client drops the connection by quitting or being killed.
  7205. operationId: "ImageBuild"
  7206. consumes:
  7207. - "application/octet-stream"
  7208. produces:
  7209. - "application/json"
  7210. parameters:
  7211. - name: "inputStream"
  7212. in: "body"
  7213. description: "A tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz."
  7214. schema:
  7215. type: "string"
  7216. format: "binary"
  7217. - name: "dockerfile"
  7218. in: "query"
  7219. description: "Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`."
  7220. type: "string"
  7221. default: "Dockerfile"
  7222. - name: "t"
  7223. in: "query"
  7224. description: "A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters."
  7225. type: "string"
  7226. - name: "extrahosts"
  7227. in: "query"
  7228. description: "Extra hosts to add to /etc/hosts"
  7229. type: "string"
  7230. - name: "remote"
  7231. in: "query"
  7232. description: "A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball."
  7233. type: "string"
  7234. - name: "q"
  7235. in: "query"
  7236. description: "Suppress verbose build output."
  7237. type: "boolean"
  7238. default: false
  7239. - name: "nocache"
  7240. in: "query"
  7241. description: "Do not use the cache when building the image."
  7242. type: "boolean"
  7243. default: false
  7244. - name: "cachefrom"
  7245. in: "query"
  7246. description: "JSON array of images used for build cache resolution."
  7247. type: "string"
  7248. - name: "pull"
  7249. in: "query"
  7250. description: "Attempt to pull the image even if an older image exists locally."
  7251. type: "string"
  7252. - name: "rm"
  7253. in: "query"
  7254. description: "Remove intermediate containers after a successful build."
  7255. type: "boolean"
  7256. default: true
  7257. - name: "forcerm"
  7258. in: "query"
  7259. description: "Always remove intermediate containers, even upon failure."
  7260. type: "boolean"
  7261. default: false
  7262. - name: "memory"
  7263. in: "query"
  7264. description: "Set memory limit for build."
  7265. type: "integer"
  7266. - name: "memswap"
  7267. in: "query"
  7268. description: "Total memory (memory + swap). Set as `-1` to disable swap."
  7269. type: "integer"
  7270. - name: "cpushares"
  7271. in: "query"
  7272. description: "CPU shares (relative weight)."
  7273. type: "integer"
  7274. - name: "cpusetcpus"
  7275. in: "query"
  7276. description: "CPUs in which to allow execution (e.g., `0-3`, `0,1`)."
  7277. type: "string"
  7278. - name: "cpuperiod"
  7279. in: "query"
  7280. description: "The length of a CPU period in microseconds."
  7281. type: "integer"
  7282. - name: "cpuquota"
  7283. in: "query"
  7284. description: "Microseconds of CPU time that the container can get in a CPU period."
  7285. type: "integer"
  7286. - name: "buildargs"
  7287. in: "query"
  7288. description: >
  7289. JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker
  7290. uses the buildargs as the environment context for commands run via the `Dockerfile` RUN
  7291. instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for
  7292. passing secret values.
  7293. For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the
  7294. query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded.
  7295. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)
  7296. type: "string"
  7297. - name: "shmsize"
  7298. in: "query"
  7299. description: "Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB."
  7300. type: "integer"
  7301. - name: "squash"
  7302. in: "query"
  7303. description: "Squash the resulting images layers into a single layer. *(Experimental release only.)*"
  7304. type: "boolean"
  7305. - name: "labels"
  7306. in: "query"
  7307. description: "Arbitrary key/value labels to set on the image, as a JSON map of string pairs."
  7308. type: "string"
  7309. - name: "networkmode"
  7310. in: "query"
  7311. description: |
  7312. Sets the networking mode for the run commands during build. Supported
  7313. standard values are: `bridge`, `host`, `none`, and `container:<name|id>`.
  7314. Any other value is taken as a custom network's name or ID to which this
  7315. container should connect to.
  7316. type: "string"
  7317. - name: "Content-type"
  7318. in: "header"
  7319. type: "string"
  7320. enum:
  7321. - "application/x-tar"
  7322. default: "application/x-tar"
  7323. - name: "X-Registry-Config"
  7324. in: "header"
  7325. description: |
  7326. This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to.
  7327. The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example:
  7328. ```
  7329. {
  7330. "docker.example.com": {
  7331. "username": "janedoe",
  7332. "password": "hunter2"
  7333. },
  7334. "https://index.docker.io/v1/": {
  7335. "username": "mobydock",
  7336. "password": "conta1n3rize14"
  7337. }
  7338. }
  7339. ```
  7340. Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
  7341. type: "string"
  7342. - name: "platform"
  7343. in: "query"
  7344. description: "Platform in the format os[/arch[/variant]]"
  7345. type: "string"
  7346. default: ""
  7347. - name: "target"
  7348. in: "query"
  7349. description: "Target build stage"
  7350. type: "string"
  7351. default: ""
  7352. - name: "outputs"
  7353. in: "query"
  7354. description: "BuildKit output configuration"
  7355. type: "string"
  7356. default: ""
  7357. responses:
  7358. 200:
  7359. description: "no error"
  7360. 400:
  7361. description: "Bad parameter"
  7362. schema:
  7363. $ref: "#/definitions/ErrorResponse"
  7364. 500:
  7365. description: "server error"
  7366. schema:
  7367. $ref: "#/definitions/ErrorResponse"
  7368. tags: ["Image"]
  7369. /build/prune:
  7370. post:
  7371. summary: "Delete builder cache"
  7372. produces:
  7373. - "application/json"
  7374. operationId: "BuildPrune"
  7375. parameters:
  7376. - name: "keep-storage"
  7377. in: "query"
  7378. description: "Amount of disk space in bytes to keep for cache"
  7379. type: "integer"
  7380. format: "int64"
  7381. - name: "all"
  7382. in: "query"
  7383. type: "boolean"
  7384. description: "Remove all types of build cache"
  7385. - name: "filters"
  7386. in: "query"
  7387. type: "string"
  7388. description: |
  7389. A JSON encoded value of the filters (a `map[string][]string`) to
  7390. process on the list of build cache objects.
  7391. Available filters:
  7392. - `until=<duration>`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
  7393. - `id=<id>`
  7394. - `parent=<id>`
  7395. - `type=<string>`
  7396. - `description=<string>`
  7397. - `inuse`
  7398. - `shared`
  7399. - `private`
  7400. responses:
  7401. 200:
  7402. description: "No error"
  7403. schema:
  7404. type: "object"
  7405. title: "BuildPruneResponse"
  7406. properties:
  7407. CachesDeleted:
  7408. type: "array"
  7409. items:
  7410. description: "ID of build cache object"
  7411. type: "string"
  7412. SpaceReclaimed:
  7413. description: "Disk space reclaimed in bytes"
  7414. type: "integer"
  7415. format: "int64"
  7416. 500:
  7417. description: "Server error"
  7418. schema:
  7419. $ref: "#/definitions/ErrorResponse"
  7420. tags: ["Image"]
  7421. /images/create:
  7422. post:
  7423. summary: "Create an image"
  7424. description: "Create an image by either pulling it from a registry or importing it."
  7425. operationId: "ImageCreate"
  7426. consumes:
  7427. - "text/plain"
  7428. - "application/octet-stream"
  7429. produces:
  7430. - "application/json"
  7431. responses:
  7432. 200:
  7433. description: "no error"
  7434. 404:
  7435. description: "repository does not exist or no read access"
  7436. schema:
  7437. $ref: "#/definitions/ErrorResponse"
  7438. 500:
  7439. description: "server error"
  7440. schema:
  7441. $ref: "#/definitions/ErrorResponse"
  7442. parameters:
  7443. - name: "fromImage"
  7444. in: "query"
  7445. description: "Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed."
  7446. type: "string"
  7447. - name: "fromSrc"
  7448. in: "query"
  7449. description: "Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image."
  7450. type: "string"
  7451. - name: "repo"
  7452. in: "query"
  7453. description: "Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image."
  7454. type: "string"
  7455. - name: "tag"
  7456. in: "query"
  7457. description: "Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled."
  7458. type: "string"
  7459. - name: "message"
  7460. in: "query"
  7461. description: "Set commit message for imported image."
  7462. type: "string"
  7463. - name: "inputImage"
  7464. in: "body"
  7465. description: "Image content if the value `-` has been specified in fromSrc query parameter"
  7466. schema:
  7467. type: "string"
  7468. required: false
  7469. - name: "X-Registry-Auth"
  7470. in: "header"
  7471. description: |
  7472. A base64url-encoded auth configuration.
  7473. Refer to the [authentication section](#section/Authentication) for
  7474. details.
  7475. type: "string"
  7476. - name: "changes"
  7477. in: "query"
  7478. description: |
  7479. Apply `Dockerfile` instructions to the image that is created,
  7480. for example: `changes=ENV DEBUG=true`.
  7481. Note that `ENV DEBUG=true` should be URI component encoded.
  7482. Supported `Dockerfile` instructions:
  7483. `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
  7484. type: "array"
  7485. items:
  7486. type: "string"
  7487. - name: "platform"
  7488. in: "query"
  7489. description: "Platform in the format os[/arch[/variant]]"
  7490. type: "string"
  7491. default: ""
  7492. tags: ["Image"]
  7493. /images/{name}/json:
  7494. get:
  7495. summary: "Inspect an image"
  7496. description: "Return low-level information about an image."
  7497. operationId: "ImageInspect"
  7498. produces:
  7499. - "application/json"
  7500. responses:
  7501. 200:
  7502. description: "No error"
  7503. schema:
  7504. $ref: "#/definitions/ImageInspect"
  7505. 404:
  7506. description: "No such image"
  7507. schema:
  7508. $ref: "#/definitions/ErrorResponse"
  7509. examples:
  7510. application/json:
  7511. message: "No such image: someimage (tag: latest)"
  7512. 500:
  7513. description: "Server error"
  7514. schema:
  7515. $ref: "#/definitions/ErrorResponse"
  7516. parameters:
  7517. - name: "name"
  7518. in: "path"
  7519. description: "Image name or id"
  7520. type: "string"
  7521. required: true
  7522. tags: ["Image"]
  7523. /images/{name}/history:
  7524. get:
  7525. summary: "Get the history of an image"
  7526. description: "Return parent layers of an image."
  7527. operationId: "ImageHistory"
  7528. produces: ["application/json"]
  7529. responses:
  7530. 200:
  7531. description: "List of image layers"
  7532. schema:
  7533. type: "array"
  7534. items:
  7535. type: "object"
  7536. x-go-name: HistoryResponseItem
  7537. title: "HistoryResponseItem"
  7538. description: "individual image layer information in response to ImageHistory operation"
  7539. required: [Id, Created, CreatedBy, Tags, Size, Comment]
  7540. properties:
  7541. Id:
  7542. type: "string"
  7543. x-nullable: false
  7544. Created:
  7545. type: "integer"
  7546. format: "int64"
  7547. x-nullable: false
  7548. CreatedBy:
  7549. type: "string"
  7550. x-nullable: false
  7551. Tags:
  7552. type: "array"
  7553. items:
  7554. type: "string"
  7555. Size:
  7556. type: "integer"
  7557. format: "int64"
  7558. x-nullable: false
  7559. Comment:
  7560. type: "string"
  7561. x-nullable: false
  7562. examples:
  7563. application/json:
  7564. - Id: "3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710"
  7565. Created: 1398108230
  7566. CreatedBy: "/bin/sh -c #(nop) ADD file:eb15dbd63394e063b805a3c32ca7bf0266ef64676d5a6fab4801f2e81e2a5148 in /"
  7567. Tags:
  7568. - "ubuntu:lucid"
  7569. - "ubuntu:10.04"
  7570. Size: 182964289
  7571. Comment: ""
  7572. - Id: "6cfa4d1f33fb861d4d114f43b25abd0ac737509268065cdfd69d544a59c85ab8"
  7573. Created: 1398108222
  7574. CreatedBy: "/bin/sh -c #(nop) MAINTAINER Tianon Gravi <admwiggin@gmail.com> - mkimage-debootstrap.sh -i iproute,iputils-ping,ubuntu-minimal -t lucid.tar.xz lucid http://archive.ubuntu.com/ubuntu/"
  7575. Tags: []
  7576. Size: 0
  7577. Comment: ""
  7578. - Id: "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"
  7579. Created: 1371157430
  7580. CreatedBy: ""
  7581. Tags:
  7582. - "scratch12:latest"
  7583. - "scratch:latest"
  7584. Size: 0
  7585. Comment: "Imported from -"
  7586. 404:
  7587. description: "No such image"
  7588. schema:
  7589. $ref: "#/definitions/ErrorResponse"
  7590. 500:
  7591. description: "Server error"
  7592. schema:
  7593. $ref: "#/definitions/ErrorResponse"
  7594. parameters:
  7595. - name: "name"
  7596. in: "path"
  7597. description: "Image name or ID"
  7598. type: "string"
  7599. required: true
  7600. tags: ["Image"]
  7601. /images/{name}/push:
  7602. post:
  7603. summary: "Push an image"
  7604. description: |
  7605. Push an image to a registry.
  7606. If you wish to push an image on to a private registry, that image must
  7607. already have a tag which references the registry. For example,
  7608. `registry.example.com/myimage:latest`.
  7609. The push is cancelled if the HTTP connection is closed.
  7610. operationId: "ImagePush"
  7611. consumes:
  7612. - "application/octet-stream"
  7613. responses:
  7614. 200:
  7615. description: "No error"
  7616. 404:
  7617. description: "No such image"
  7618. schema:
  7619. $ref: "#/definitions/ErrorResponse"
  7620. 500:
  7621. description: "Server error"
  7622. schema:
  7623. $ref: "#/definitions/ErrorResponse"
  7624. parameters:
  7625. - name: "name"
  7626. in: "path"
  7627. description: "Image name or ID."
  7628. type: "string"
  7629. required: true
  7630. - name: "tag"
  7631. in: "query"
  7632. description: "The tag to associate with the image on the registry."
  7633. type: "string"
  7634. - name: "X-Registry-Auth"
  7635. in: "header"
  7636. description: |
  7637. A base64url-encoded auth configuration.
  7638. Refer to the [authentication section](#section/Authentication) for
  7639. details.
  7640. type: "string"
  7641. required: true
  7642. tags: ["Image"]
  7643. /images/{name}/tag:
  7644. post:
  7645. summary: "Tag an image"
  7646. description: "Tag an image so that it becomes part of a repository."
  7647. operationId: "ImageTag"
  7648. responses:
  7649. 201:
  7650. description: "No error"
  7651. 400:
  7652. description: "Bad parameter"
  7653. schema:
  7654. $ref: "#/definitions/ErrorResponse"
  7655. 404:
  7656. description: "No such image"
  7657. schema:
  7658. $ref: "#/definitions/ErrorResponse"
  7659. 409:
  7660. description: "Conflict"
  7661. schema:
  7662. $ref: "#/definitions/ErrorResponse"
  7663. 500:
  7664. description: "Server error"
  7665. schema:
  7666. $ref: "#/definitions/ErrorResponse"
  7667. parameters:
  7668. - name: "name"
  7669. in: "path"
  7670. description: "Image name or ID to tag."
  7671. type: "string"
  7672. required: true
  7673. - name: "repo"
  7674. in: "query"
  7675. description: "The repository to tag in. For example, `someuser/someimage`."
  7676. type: "string"
  7677. - name: "tag"
  7678. in: "query"
  7679. description: "The name of the new tag."
  7680. type: "string"
  7681. tags: ["Image"]
  7682. /images/{name}:
  7683. delete:
  7684. summary: "Remove an image"
  7685. description: |
  7686. Remove an image, along with any untagged parent images that were
  7687. referenced by that image.
  7688. Images can't be removed if they have descendant images, are being
  7689. used by a running container or are being used by a build.
  7690. operationId: "ImageDelete"
  7691. produces: ["application/json"]
  7692. responses:
  7693. 200:
  7694. description: "The image was deleted successfully"
  7695. schema:
  7696. type: "array"
  7697. items:
  7698. $ref: "#/definitions/ImageDeleteResponseItem"
  7699. examples:
  7700. application/json:
  7701. - Untagged: "3e2f21a89f"
  7702. - Deleted: "3e2f21a89f"
  7703. - Deleted: "53b4f83ac9"
  7704. 404:
  7705. description: "No such image"
  7706. schema:
  7707. $ref: "#/definitions/ErrorResponse"
  7708. 409:
  7709. description: "Conflict"
  7710. schema:
  7711. $ref: "#/definitions/ErrorResponse"
  7712. 500:
  7713. description: "Server error"
  7714. schema:
  7715. $ref: "#/definitions/ErrorResponse"
  7716. parameters:
  7717. - name: "name"
  7718. in: "path"
  7719. description: "Image name or ID"
  7720. type: "string"
  7721. required: true
  7722. - name: "force"
  7723. in: "query"
  7724. description: "Remove the image even if it is being used by stopped containers or has other tags"
  7725. type: "boolean"
  7726. default: false
  7727. - name: "noprune"
  7728. in: "query"
  7729. description: "Do not delete untagged parent images"
  7730. type: "boolean"
  7731. default: false
  7732. tags: ["Image"]
  7733. /images/search:
  7734. get:
  7735. summary: "Search images"
  7736. description: "Search for an image on Docker Hub."
  7737. operationId: "ImageSearch"
  7738. produces:
  7739. - "application/json"
  7740. responses:
  7741. 200:
  7742. description: "No error"
  7743. schema:
  7744. type: "array"
  7745. items:
  7746. type: "object"
  7747. title: "ImageSearchResponseItem"
  7748. properties:
  7749. description:
  7750. type: "string"
  7751. is_official:
  7752. type: "boolean"
  7753. is_automated:
  7754. type: "boolean"
  7755. name:
  7756. type: "string"
  7757. star_count:
  7758. type: "integer"
  7759. examples:
  7760. application/json:
  7761. - description: ""
  7762. is_official: false
  7763. is_automated: false
  7764. name: "wma55/u1210sshd"
  7765. star_count: 0
  7766. - description: ""
  7767. is_official: false
  7768. is_automated: false
  7769. name: "jdswinbank/sshd"
  7770. star_count: 0
  7771. - description: ""
  7772. is_official: false
  7773. is_automated: false
  7774. name: "vgauthier/sshd"
  7775. star_count: 0
  7776. 500:
  7777. description: "Server error"
  7778. schema:
  7779. $ref: "#/definitions/ErrorResponse"
  7780. parameters:
  7781. - name: "term"
  7782. in: "query"
  7783. description: "Term to search"
  7784. type: "string"
  7785. required: true
  7786. - name: "limit"
  7787. in: "query"
  7788. description: "Maximum number of results to return"
  7789. type: "integer"
  7790. - name: "filters"
  7791. in: "query"
  7792. description: |
  7793. A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters:
  7794. - `is-automated=(true|false)`
  7795. - `is-official=(true|false)`
  7796. - `stars=<number>` Matches images that has at least 'number' stars.
  7797. type: "string"
  7798. tags: ["Image"]
  7799. /images/prune:
  7800. post:
  7801. summary: "Delete unused images"
  7802. produces:
  7803. - "application/json"
  7804. operationId: "ImagePrune"
  7805. parameters:
  7806. - name: "filters"
  7807. in: "query"
  7808. description: |
  7809. Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters:
  7810. - `dangling=<boolean>` When set to `true` (or `1`), prune only
  7811. unused *and* untagged images. When set to `false`
  7812. (or `0`), all unused images are pruned.
  7813. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
  7814. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels.
  7815. type: "string"
  7816. responses:
  7817. 200:
  7818. description: "No error"
  7819. schema:
  7820. type: "object"
  7821. title: "ImagePruneResponse"
  7822. properties:
  7823. ImagesDeleted:
  7824. description: "Images that were deleted"
  7825. type: "array"
  7826. items:
  7827. $ref: "#/definitions/ImageDeleteResponseItem"
  7828. SpaceReclaimed:
  7829. description: "Disk space reclaimed in bytes"
  7830. type: "integer"
  7831. format: "int64"
  7832. 500:
  7833. description: "Server error"
  7834. schema:
  7835. $ref: "#/definitions/ErrorResponse"
  7836. tags: ["Image"]
  7837. /auth:
  7838. post:
  7839. summary: "Check auth configuration"
  7840. description: |
  7841. Validate credentials for a registry and, if available, get an identity
  7842. token for accessing the registry without password.
  7843. operationId: "SystemAuth"
  7844. consumes: ["application/json"]
  7845. produces: ["application/json"]
  7846. responses:
  7847. 200:
  7848. description: "An identity token was generated successfully."
  7849. schema:
  7850. type: "object"
  7851. title: "SystemAuthResponse"
  7852. required: [Status]
  7853. properties:
  7854. Status:
  7855. description: "The status of the authentication"
  7856. type: "string"
  7857. x-nullable: false
  7858. IdentityToken:
  7859. description: "An opaque token used to authenticate a user after a successful login"
  7860. type: "string"
  7861. x-nullable: false
  7862. examples:
  7863. application/json:
  7864. Status: "Login Succeeded"
  7865. IdentityToken: "9cbaf023786cd7..."
  7866. 204:
  7867. description: "No error"
  7868. 401:
  7869. description: "Auth error"
  7870. schema:
  7871. $ref: "#/definitions/ErrorResponse"
  7872. 500:
  7873. description: "Server error"
  7874. schema:
  7875. $ref: "#/definitions/ErrorResponse"
  7876. parameters:
  7877. - name: "authConfig"
  7878. in: "body"
  7879. description: "Authentication to check"
  7880. schema:
  7881. $ref: "#/definitions/AuthConfig"
  7882. tags: ["System"]
  7883. /info:
  7884. get:
  7885. summary: "Get system information"
  7886. operationId: "SystemInfo"
  7887. produces:
  7888. - "application/json"
  7889. responses:
  7890. 200:
  7891. description: "No error"
  7892. schema:
  7893. $ref: "#/definitions/SystemInfo"
  7894. 500:
  7895. description: "Server error"
  7896. schema:
  7897. $ref: "#/definitions/ErrorResponse"
  7898. tags: ["System"]
  7899. /version:
  7900. get:
  7901. summary: "Get version"
  7902. description: "Returns the version of Docker that is running and various information about the system that Docker is running on."
  7903. operationId: "SystemVersion"
  7904. produces: ["application/json"]
  7905. responses:
  7906. 200:
  7907. description: "no error"
  7908. schema:
  7909. $ref: "#/definitions/SystemVersion"
  7910. 500:
  7911. description: "server error"
  7912. schema:
  7913. $ref: "#/definitions/ErrorResponse"
  7914. tags: ["System"]
  7915. /_ping:
  7916. get:
  7917. summary: "Ping"
  7918. description: "This is a dummy endpoint you can use to test if the server is accessible."
  7919. operationId: "SystemPing"
  7920. produces: ["text/plain"]
  7921. responses:
  7922. 200:
  7923. description: "no error"
  7924. schema:
  7925. type: "string"
  7926. example: "OK"
  7927. headers:
  7928. API-Version:
  7929. type: "string"
  7930. description: "Max API Version the server supports"
  7931. Builder-Version:
  7932. type: "string"
  7933. description: "Default version of docker image builder"
  7934. Docker-Experimental:
  7935. type: "boolean"
  7936. description: "If the server is running with experimental mode enabled"
  7937. Cache-Control:
  7938. type: "string"
  7939. default: "no-cache, no-store, must-revalidate"
  7940. Pragma:
  7941. type: "string"
  7942. default: "no-cache"
  7943. 500:
  7944. description: "server error"
  7945. schema:
  7946. $ref: "#/definitions/ErrorResponse"
  7947. headers:
  7948. Cache-Control:
  7949. type: "string"
  7950. default: "no-cache, no-store, must-revalidate"
  7951. Pragma:
  7952. type: "string"
  7953. default: "no-cache"
  7954. tags: ["System"]
  7955. head:
  7956. summary: "Ping"
  7957. description: "This is a dummy endpoint you can use to test if the server is accessible."
  7958. operationId: "SystemPingHead"
  7959. produces: ["text/plain"]
  7960. responses:
  7961. 200:
  7962. description: "no error"
  7963. schema:
  7964. type: "string"
  7965. example: "(empty)"
  7966. headers:
  7967. API-Version:
  7968. type: "string"
  7969. description: "Max API Version the server supports"
  7970. Builder-Version:
  7971. type: "string"
  7972. description: "Default version of docker image builder"
  7973. Docker-Experimental:
  7974. type: "boolean"
  7975. description: "If the server is running with experimental mode enabled"
  7976. Cache-Control:
  7977. type: "string"
  7978. default: "no-cache, no-store, must-revalidate"
  7979. Pragma:
  7980. type: "string"
  7981. default: "no-cache"
  7982. 500:
  7983. description: "server error"
  7984. schema:
  7985. $ref: "#/definitions/ErrorResponse"
  7986. tags: ["System"]
  7987. /commit:
  7988. post:
  7989. summary: "Create a new image from a container"
  7990. operationId: "ImageCommit"
  7991. consumes:
  7992. - "application/json"
  7993. produces:
  7994. - "application/json"
  7995. responses:
  7996. 201:
  7997. description: "no error"
  7998. schema:
  7999. $ref: "#/definitions/IdResponse"
  8000. 404:
  8001. description: "no such container"
  8002. schema:
  8003. $ref: "#/definitions/ErrorResponse"
  8004. examples:
  8005. application/json:
  8006. message: "No such container: c2ada9df5af8"
  8007. 500:
  8008. description: "server error"
  8009. schema:
  8010. $ref: "#/definitions/ErrorResponse"
  8011. parameters:
  8012. - name: "containerConfig"
  8013. in: "body"
  8014. description: "The container configuration"
  8015. schema:
  8016. $ref: "#/definitions/ContainerConfig"
  8017. - name: "container"
  8018. in: "query"
  8019. description: "The ID or name of the container to commit"
  8020. type: "string"
  8021. - name: "repo"
  8022. in: "query"
  8023. description: "Repository name for the created image"
  8024. type: "string"
  8025. - name: "tag"
  8026. in: "query"
  8027. description: "Tag name for the create image"
  8028. type: "string"
  8029. - name: "comment"
  8030. in: "query"
  8031. description: "Commit message"
  8032. type: "string"
  8033. - name: "author"
  8034. in: "query"
  8035. description: "Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.com>`)"
  8036. type: "string"
  8037. - name: "pause"
  8038. in: "query"
  8039. description: "Whether to pause the container before committing"
  8040. type: "boolean"
  8041. default: true
  8042. - name: "changes"
  8043. in: "query"
  8044. description: "`Dockerfile` instructions to apply while committing"
  8045. type: "string"
  8046. tags: ["Image"]
  8047. /events:
  8048. get:
  8049. summary: "Monitor events"
  8050. description: |
  8051. Stream real-time events from the server.
  8052. Various objects within Docker report events when something happens to them.
  8053. Containers report these events: `attach`, `commit`, `copy`, `create`, `destroy`, `detach`, `die`, `exec_create`, `exec_detach`, `exec_start`, `exec_die`, `export`, `health_status`, `kill`, `oom`, `pause`, `rename`, `resize`, `restart`, `start`, `stop`, `top`, `unpause`, and `update`
  8054. Images report these events: `delete`, `import`, `load`, `pull`, `push`, `save`, `tag`, and `untag`
  8055. Volumes report these events: `create`, `mount`, `unmount`, and `destroy`
  8056. Networks report these events: `create`, `connect`, `disconnect`, `destroy`, `update`, and `remove`
  8057. The Docker daemon reports these events: `reload`
  8058. Services report these events: `create`, `update`, and `remove`
  8059. Nodes report these events: `create`, `update`, and `remove`
  8060. Secrets report these events: `create`, `update`, and `remove`
  8061. Configs report these events: `create`, `update`, and `remove`
  8062. operationId: "SystemEvents"
  8063. produces:
  8064. - "application/json"
  8065. responses:
  8066. 200:
  8067. description: "no error"
  8068. schema:
  8069. $ref: "#/definitions/EventMessage"
  8070. 400:
  8071. description: "bad parameter"
  8072. schema:
  8073. $ref: "#/definitions/ErrorResponse"
  8074. 500:
  8075. description: "server error"
  8076. schema:
  8077. $ref: "#/definitions/ErrorResponse"
  8078. parameters:
  8079. - name: "since"
  8080. in: "query"
  8081. description: "Show events created since this timestamp then stream new events."
  8082. type: "string"
  8083. - name: "until"
  8084. in: "query"
  8085. description: "Show events created until this timestamp then stop streaming."
  8086. type: "string"
  8087. - name: "filters"
  8088. in: "query"
  8089. description: |
  8090. A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters:
  8091. - `config=<string>` config name or ID
  8092. - `container=<string>` container name or ID
  8093. - `daemon=<string>` daemon name or ID
  8094. - `event=<string>` event type
  8095. - `image=<string>` image name or ID
  8096. - `label=<string>` image or container label
  8097. - `network=<string>` network name or ID
  8098. - `node=<string>` node ID
  8099. - `plugin`=<string> plugin name or ID
  8100. - `scope`=<string> local or swarm
  8101. - `secret=<string>` secret name or ID
  8102. - `service=<string>` service name or ID
  8103. - `type=<string>` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service`, `secret` or `config`
  8104. - `volume=<string>` volume name
  8105. type: "string"
  8106. tags: ["System"]
  8107. /system/df:
  8108. get:
  8109. summary: "Get data usage information"
  8110. operationId: "SystemDataUsage"
  8111. responses:
  8112. 200:
  8113. description: "no error"
  8114. schema:
  8115. type: "object"
  8116. title: "SystemDataUsageResponse"
  8117. properties:
  8118. LayersSize:
  8119. type: "integer"
  8120. format: "int64"
  8121. Images:
  8122. type: "array"
  8123. items:
  8124. $ref: "#/definitions/ImageSummary"
  8125. Containers:
  8126. type: "array"
  8127. items:
  8128. $ref: "#/definitions/ContainerSummary"
  8129. Volumes:
  8130. type: "array"
  8131. items:
  8132. $ref: "#/definitions/Volume"
  8133. BuildCache:
  8134. type: "array"
  8135. items:
  8136. $ref: "#/definitions/BuildCache"
  8137. example:
  8138. LayersSize: 1092588
  8139. Images:
  8140. -
  8141. Id: "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749"
  8142. ParentId: ""
  8143. RepoTags:
  8144. - "busybox:latest"
  8145. RepoDigests:
  8146. - "busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
  8147. Created: 1466724217
  8148. Size: 1092588
  8149. SharedSize: 0
  8150. VirtualSize: 1092588
  8151. Labels: {}
  8152. Containers: 1
  8153. Containers:
  8154. -
  8155. Id: "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148"
  8156. Names:
  8157. - "/top"
  8158. Image: "busybox"
  8159. ImageID: "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749"
  8160. Command: "top"
  8161. Created: 1472592424
  8162. Ports: []
  8163. SizeRootFs: 1092588
  8164. Labels: {}
  8165. State: "exited"
  8166. Status: "Exited (0) 56 minutes ago"
  8167. HostConfig:
  8168. NetworkMode: "default"
  8169. NetworkSettings:
  8170. Networks:
  8171. bridge:
  8172. IPAMConfig: null
  8173. Links: null
  8174. Aliases: null
  8175. NetworkID: "d687bc59335f0e5c9ee8193e5612e8aee000c8c62ea170cfb99c098f95899d92"
  8176. EndpointID: "8ed5115aeaad9abb174f68dcf135b49f11daf597678315231a32ca28441dec6a"
  8177. Gateway: "172.18.0.1"
  8178. IPAddress: "172.18.0.2"
  8179. IPPrefixLen: 16
  8180. IPv6Gateway: ""
  8181. GlobalIPv6Address: ""
  8182. GlobalIPv6PrefixLen: 0
  8183. MacAddress: "02:42:ac:12:00:02"
  8184. Mounts: []
  8185. Volumes:
  8186. -
  8187. Name: "my-volume"
  8188. Driver: "local"
  8189. Mountpoint: "/var/lib/docker/volumes/my-volume/_data"
  8190. Labels: null
  8191. Scope: "local"
  8192. Options: null
  8193. UsageData:
  8194. Size: 10920104
  8195. RefCount: 2
  8196. BuildCache:
  8197. -
  8198. ID: "hw53o5aio51xtltp5xjp8v7fx"
  8199. Parent: ""
  8200. Type: "regular"
  8201. Description: "pulled from docker.io/library/debian@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d2a0"
  8202. InUse: false
  8203. Shared: true
  8204. Size: 0
  8205. CreatedAt: "2021-06-28T13:31:01.474619385Z"
  8206. LastUsedAt: "2021-07-07T22:02:32.738075951Z"
  8207. UsageCount: 26
  8208. -
  8209. ID: "ndlpt0hhvkqcdfkputsk4cq9c"
  8210. Parent: "ndlpt0hhvkqcdfkputsk4cq9c"
  8211. Type: "regular"
  8212. Description: "mount / from exec /bin/sh -c echo 'Binary::apt::APT::Keep-Downloaded-Packages \"true\";' > /etc/apt/apt.conf.d/keep-cache"
  8213. InUse: false
  8214. Shared: true
  8215. Size: 51
  8216. CreatedAt: "2021-06-28T13:31:03.002625487Z"
  8217. LastUsedAt: "2021-07-07T22:02:32.773909517Z"
  8218. UsageCount: 26
  8219. 500:
  8220. description: "server error"
  8221. schema:
  8222. $ref: "#/definitions/ErrorResponse"
  8223. tags: ["System"]
  8224. /images/{name}/get:
  8225. get:
  8226. summary: "Export an image"
  8227. description: |
  8228. Get a tarball containing all images and metadata for a repository.
  8229. If `name` is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned. If `name` is an image ID, similarly only that image (and its parents) are returned, but with the exclusion of the `repositories` file in the tarball, as there were no image names referenced.
  8230. ### Image tarball format
  8231. An image tarball contains one directory per image layer (named using its long ID), each containing these files:
  8232. - `VERSION`: currently `1.0` - the file format version
  8233. - `json`: detailed layer information, similar to `docker inspect layer_id`
  8234. - `layer.tar`: A tarfile containing the filesystem changes in this layer
  8235. The `layer.tar` file contains `aufs` style `.wh..wh.aufs` files and directories for storing attribute changes and deletions.
  8236. If the tarball defines a repository, the tarball should also include a `repositories` file at the root that contains a list of repository and tag names mapped to layer IDs.
  8237. ```json
  8238. {
  8239. "hello-world": {
  8240. "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"
  8241. }
  8242. }
  8243. ```
  8244. operationId: "ImageGet"
  8245. produces:
  8246. - "application/x-tar"
  8247. responses:
  8248. 200:
  8249. description: "no error"
  8250. schema:
  8251. type: "string"
  8252. format: "binary"
  8253. 500:
  8254. description: "server error"
  8255. schema:
  8256. $ref: "#/definitions/ErrorResponse"
  8257. parameters:
  8258. - name: "name"
  8259. in: "path"
  8260. description: "Image name or ID"
  8261. type: "string"
  8262. required: true
  8263. tags: ["Image"]
  8264. /images/get:
  8265. get:
  8266. summary: "Export several images"
  8267. description: |
  8268. Get a tarball containing all images and metadata for several image
  8269. repositories.
  8270. For each value of the `names` parameter: if it is a specific name and
  8271. tag (e.g. `ubuntu:latest`), then only that image (and its parents) are
  8272. returned; if it is an image ID, similarly only that image (and its parents)
  8273. are returned and there would be no names referenced in the 'repositories'
  8274. file for this image ID.
  8275. For details on the format, see the [export image endpoint](#operation/ImageGet).
  8276. operationId: "ImageGetAll"
  8277. produces:
  8278. - "application/x-tar"
  8279. responses:
  8280. 200:
  8281. description: "no error"
  8282. schema:
  8283. type: "string"
  8284. format: "binary"
  8285. 500:
  8286. description: "server error"
  8287. schema:
  8288. $ref: "#/definitions/ErrorResponse"
  8289. parameters:
  8290. - name: "names"
  8291. in: "query"
  8292. description: "Image names to filter by"
  8293. type: "array"
  8294. items:
  8295. type: "string"
  8296. tags: ["Image"]
  8297. /images/load:
  8298. post:
  8299. summary: "Import images"
  8300. description: |
  8301. Load a set of images and tags into a repository.
  8302. For details on the format, see the [export image endpoint](#operation/ImageGet).
  8303. operationId: "ImageLoad"
  8304. consumes:
  8305. - "application/x-tar"
  8306. produces:
  8307. - "application/json"
  8308. responses:
  8309. 200:
  8310. description: "no error"
  8311. 500:
  8312. description: "server error"
  8313. schema:
  8314. $ref: "#/definitions/ErrorResponse"
  8315. parameters:
  8316. - name: "imagesTarball"
  8317. in: "body"
  8318. description: "Tar archive containing images"
  8319. schema:
  8320. type: "string"
  8321. format: "binary"
  8322. - name: "quiet"
  8323. in: "query"
  8324. description: "Suppress progress details during load."
  8325. type: "boolean"
  8326. default: false
  8327. tags: ["Image"]
  8328. /containers/{id}/exec:
  8329. post:
  8330. summary: "Create an exec instance"
  8331. description: "Run a command inside a running container."
  8332. operationId: "ContainerExec"
  8333. consumes:
  8334. - "application/json"
  8335. produces:
  8336. - "application/json"
  8337. responses:
  8338. 201:
  8339. description: "no error"
  8340. schema:
  8341. $ref: "#/definitions/IdResponse"
  8342. 404:
  8343. description: "no such container"
  8344. schema:
  8345. $ref: "#/definitions/ErrorResponse"
  8346. examples:
  8347. application/json:
  8348. message: "No such container: c2ada9df5af8"
  8349. 409:
  8350. description: "container is paused"
  8351. schema:
  8352. $ref: "#/definitions/ErrorResponse"
  8353. 500:
  8354. description: "Server error"
  8355. schema:
  8356. $ref: "#/definitions/ErrorResponse"
  8357. parameters:
  8358. - name: "execConfig"
  8359. in: "body"
  8360. description: "Exec configuration"
  8361. schema:
  8362. type: "object"
  8363. title: "ExecConfig"
  8364. properties:
  8365. AttachStdin:
  8366. type: "boolean"
  8367. description: "Attach to `stdin` of the exec command."
  8368. AttachStdout:
  8369. type: "boolean"
  8370. description: "Attach to `stdout` of the exec command."
  8371. AttachStderr:
  8372. type: "boolean"
  8373. description: "Attach to `stderr` of the exec command."
  8374. DetachKeys:
  8375. type: "string"
  8376. description: |
  8377. Override the key sequence for detaching a container. Format is
  8378. a single character `[a-Z]` or `ctrl-<value>` where `<value>`
  8379. is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
  8380. Tty:
  8381. type: "boolean"
  8382. description: "Allocate a pseudo-TTY."
  8383. Env:
  8384. description: |
  8385. A list of environment variables in the form `["VAR=value", ...]`.
  8386. type: "array"
  8387. items:
  8388. type: "string"
  8389. Cmd:
  8390. type: "array"
  8391. description: "Command to run, as a string or array of strings."
  8392. items:
  8393. type: "string"
  8394. Privileged:
  8395. type: "boolean"
  8396. description: "Runs the exec process with extended privileges."
  8397. default: false
  8398. User:
  8399. type: "string"
  8400. description: |
  8401. The user, and optionally, group to run the exec process inside
  8402. the container. Format is one of: `user`, `user:group`, `uid`,
  8403. or `uid:gid`.
  8404. WorkingDir:
  8405. type: "string"
  8406. description: |
  8407. The working directory for the exec process inside the container.
  8408. example:
  8409. AttachStdin: false
  8410. AttachStdout: true
  8411. AttachStderr: true
  8412. DetachKeys: "ctrl-p,ctrl-q"
  8413. Tty: false
  8414. Cmd:
  8415. - "date"
  8416. Env:
  8417. - "FOO=bar"
  8418. - "BAZ=quux"
  8419. required: true
  8420. - name: "id"
  8421. in: "path"
  8422. description: "ID or name of container"
  8423. type: "string"
  8424. required: true
  8425. tags: ["Exec"]
  8426. /exec/{id}/start:
  8427. post:
  8428. summary: "Start an exec instance"
  8429. description: |
  8430. Starts a previously set up exec instance. If detach is true, this endpoint
  8431. returns immediately after starting the command. Otherwise, it sets up an
  8432. interactive session with the command.
  8433. operationId: "ExecStart"
  8434. consumes:
  8435. - "application/json"
  8436. produces:
  8437. - "application/vnd.docker.raw-stream"
  8438. responses:
  8439. 200:
  8440. description: "No error"
  8441. 404:
  8442. description: "No such exec instance"
  8443. schema:
  8444. $ref: "#/definitions/ErrorResponse"
  8445. 409:
  8446. description: "Container is stopped or paused"
  8447. schema:
  8448. $ref: "#/definitions/ErrorResponse"
  8449. parameters:
  8450. - name: "execStartConfig"
  8451. in: "body"
  8452. schema:
  8453. type: "object"
  8454. title: "ExecStartConfig"
  8455. properties:
  8456. Detach:
  8457. type: "boolean"
  8458. description: "Detach from the command."
  8459. Tty:
  8460. type: "boolean"
  8461. description: "Allocate a pseudo-TTY."
  8462. example:
  8463. Detach: false
  8464. Tty: false
  8465. - name: "id"
  8466. in: "path"
  8467. description: "Exec instance ID"
  8468. required: true
  8469. type: "string"
  8470. tags: ["Exec"]
  8471. /exec/{id}/resize:
  8472. post:
  8473. summary: "Resize an exec instance"
  8474. description: |
  8475. Resize the TTY session used by an exec instance. This endpoint only works
  8476. if `tty` was specified as part of creating and starting the exec instance.
  8477. operationId: "ExecResize"
  8478. responses:
  8479. 200:
  8480. description: "No error"
  8481. 400:
  8482. description: "bad parameter"
  8483. schema:
  8484. $ref: "#/definitions/ErrorResponse"
  8485. 404:
  8486. description: "No such exec instance"
  8487. schema:
  8488. $ref: "#/definitions/ErrorResponse"
  8489. 500:
  8490. description: "Server error"
  8491. schema:
  8492. $ref: "#/definitions/ErrorResponse"
  8493. parameters:
  8494. - name: "id"
  8495. in: "path"
  8496. description: "Exec instance ID"
  8497. required: true
  8498. type: "string"
  8499. - name: "h"
  8500. in: "query"
  8501. description: "Height of the TTY session in characters"
  8502. type: "integer"
  8503. - name: "w"
  8504. in: "query"
  8505. description: "Width of the TTY session in characters"
  8506. type: "integer"
  8507. tags: ["Exec"]
  8508. /exec/{id}/json:
  8509. get:
  8510. summary: "Inspect an exec instance"
  8511. description: "Return low-level information about an exec instance."
  8512. operationId: "ExecInspect"
  8513. produces:
  8514. - "application/json"
  8515. responses:
  8516. 200:
  8517. description: "No error"
  8518. schema:
  8519. type: "object"
  8520. title: "ExecInspectResponse"
  8521. properties:
  8522. CanRemove:
  8523. type: "boolean"
  8524. DetachKeys:
  8525. type: "string"
  8526. ID:
  8527. type: "string"
  8528. Running:
  8529. type: "boolean"
  8530. ExitCode:
  8531. type: "integer"
  8532. ProcessConfig:
  8533. $ref: "#/definitions/ProcessConfig"
  8534. OpenStdin:
  8535. type: "boolean"
  8536. OpenStderr:
  8537. type: "boolean"
  8538. OpenStdout:
  8539. type: "boolean"
  8540. ContainerID:
  8541. type: "string"
  8542. Pid:
  8543. type: "integer"
  8544. description: "The system process ID for the exec process."
  8545. examples:
  8546. application/json:
  8547. CanRemove: false
  8548. ContainerID: "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126"
  8549. DetachKeys: ""
  8550. ExitCode: 2
  8551. ID: "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b"
  8552. OpenStderr: true
  8553. OpenStdin: true
  8554. OpenStdout: true
  8555. ProcessConfig:
  8556. arguments:
  8557. - "-c"
  8558. - "exit 2"
  8559. entrypoint: "sh"
  8560. privileged: false
  8561. tty: true
  8562. user: "1000"
  8563. Running: false
  8564. Pid: 42000
  8565. 404:
  8566. description: "No such exec instance"
  8567. schema:
  8568. $ref: "#/definitions/ErrorResponse"
  8569. 500:
  8570. description: "Server error"
  8571. schema:
  8572. $ref: "#/definitions/ErrorResponse"
  8573. parameters:
  8574. - name: "id"
  8575. in: "path"
  8576. description: "Exec instance ID"
  8577. required: true
  8578. type: "string"
  8579. tags: ["Exec"]
  8580. /volumes:
  8581. get:
  8582. summary: "List volumes"
  8583. operationId: "VolumeList"
  8584. produces: ["application/json"]
  8585. responses:
  8586. 200:
  8587. description: "Summary volume data that matches the query"
  8588. schema:
  8589. $ref: "#/definitions/VolumeListResponse"
  8590. 500:
  8591. description: "Server error"
  8592. schema:
  8593. $ref: "#/definitions/ErrorResponse"
  8594. parameters:
  8595. - name: "filters"
  8596. in: "query"
  8597. description: |
  8598. JSON encoded value of the filters (a `map[string][]string`) to
  8599. process on the volumes list. Available filters:
  8600. - `dangling=<boolean>` When set to `true` (or `1`), returns all
  8601. volumes that are not in use by a container. When set to `false`
  8602. (or `0`), only volumes that are in use by one or more
  8603. containers are returned.
  8604. - `driver=<volume-driver-name>` Matches volumes based on their driver.
  8605. - `label=<key>` or `label=<key>:<value>` Matches volumes based on
  8606. the presence of a `label` alone or a `label` and a value.
  8607. - `name=<volume-name>` Matches all or part of a volume name.
  8608. type: "string"
  8609. format: "json"
  8610. tags: ["Volume"]
  8611. /volumes/create:
  8612. post:
  8613. summary: "Create a volume"
  8614. operationId: "VolumeCreate"
  8615. consumes: ["application/json"]
  8616. produces: ["application/json"]
  8617. responses:
  8618. 201:
  8619. description: "The volume was created successfully"
  8620. schema:
  8621. $ref: "#/definitions/Volume"
  8622. 500:
  8623. description: "Server error"
  8624. schema:
  8625. $ref: "#/definitions/ErrorResponse"
  8626. parameters:
  8627. - name: "volumeConfig"
  8628. in: "body"
  8629. required: true
  8630. description: "Volume configuration"
  8631. schema:
  8632. $ref: "#/definitions/VolumeCreateOptions"
  8633. tags: ["Volume"]
  8634. /volumes/{name}:
  8635. get:
  8636. summary: "Inspect a volume"
  8637. operationId: "VolumeInspect"
  8638. produces: ["application/json"]
  8639. responses:
  8640. 200:
  8641. description: "No error"
  8642. schema:
  8643. $ref: "#/definitions/Volume"
  8644. 404:
  8645. description: "No such volume"
  8646. schema:
  8647. $ref: "#/definitions/ErrorResponse"
  8648. 500:
  8649. description: "Server error"
  8650. schema:
  8651. $ref: "#/definitions/ErrorResponse"
  8652. parameters:
  8653. - name: "name"
  8654. in: "path"
  8655. required: true
  8656. description: "Volume name or ID"
  8657. type: "string"
  8658. tags: ["Volume"]
  8659. delete:
  8660. summary: "Remove a volume"
  8661. description: "Instruct the driver to remove the volume."
  8662. operationId: "VolumeDelete"
  8663. responses:
  8664. 204:
  8665. description: "The volume was removed"
  8666. 404:
  8667. description: "No such volume or volume driver"
  8668. schema:
  8669. $ref: "#/definitions/ErrorResponse"
  8670. 409:
  8671. description: "Volume is in use and cannot be removed"
  8672. schema:
  8673. $ref: "#/definitions/ErrorResponse"
  8674. 500:
  8675. description: "Server error"
  8676. schema:
  8677. $ref: "#/definitions/ErrorResponse"
  8678. parameters:
  8679. - name: "name"
  8680. in: "path"
  8681. required: true
  8682. description: "Volume name or ID"
  8683. type: "string"
  8684. - name: "force"
  8685. in: "query"
  8686. description: "Force the removal of the volume"
  8687. type: "boolean"
  8688. default: false
  8689. tags: ["Volume"]
  8690. /volumes/prune:
  8691. post:
  8692. summary: "Delete unused volumes"
  8693. produces:
  8694. - "application/json"
  8695. operationId: "VolumePrune"
  8696. parameters:
  8697. - name: "filters"
  8698. in: "query"
  8699. description: |
  8700. Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
  8701. Available filters:
  8702. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune volumes with (or without, in case `label!=...` is used) the specified labels.
  8703. type: "string"
  8704. responses:
  8705. 200:
  8706. description: "No error"
  8707. schema:
  8708. type: "object"
  8709. title: "VolumePruneResponse"
  8710. properties:
  8711. VolumesDeleted:
  8712. description: "Volumes that were deleted"
  8713. type: "array"
  8714. items:
  8715. type: "string"
  8716. SpaceReclaimed:
  8717. description: "Disk space reclaimed in bytes"
  8718. type: "integer"
  8719. format: "int64"
  8720. 500:
  8721. description: "Server error"
  8722. schema:
  8723. $ref: "#/definitions/ErrorResponse"
  8724. tags: ["Volume"]
  8725. /networks:
  8726. get:
  8727. summary: "List networks"
  8728. description: |
  8729. Returns a list of networks. For details on the format, see the
  8730. [network inspect endpoint](#operation/NetworkInspect).
  8731. Note that it uses a different, smaller representation of a network than
  8732. inspecting a single network. For example, the list of containers attached
  8733. to the network is not propagated in API versions 1.28 and up.
  8734. operationId: "NetworkList"
  8735. produces:
  8736. - "application/json"
  8737. responses:
  8738. 200:
  8739. description: "No error"
  8740. schema:
  8741. type: "array"
  8742. items:
  8743. $ref: "#/definitions/Network"
  8744. examples:
  8745. application/json:
  8746. - Name: "bridge"
  8747. Id: "f2de39df4171b0dc801e8002d1d999b77256983dfc63041c0f34030aa3977566"
  8748. Created: "2016-10-19T06:21:00.416543526Z"
  8749. Scope: "local"
  8750. Driver: "bridge"
  8751. EnableIPv6: false
  8752. Internal: false
  8753. Attachable: false
  8754. Ingress: false
  8755. IPAM:
  8756. Driver: "default"
  8757. Config:
  8758. -
  8759. Subnet: "172.17.0.0/16"
  8760. Options:
  8761. com.docker.network.bridge.default_bridge: "true"
  8762. com.docker.network.bridge.enable_icc: "true"
  8763. com.docker.network.bridge.enable_ip_masquerade: "true"
  8764. com.docker.network.bridge.host_binding_ipv4: "0.0.0.0"
  8765. com.docker.network.bridge.name: "docker0"
  8766. com.docker.network.driver.mtu: "1500"
  8767. - Name: "none"
  8768. Id: "e086a3893b05ab69242d3c44e49483a3bbbd3a26b46baa8f61ab797c1088d794"
  8769. Created: "0001-01-01T00:00:00Z"
  8770. Scope: "local"
  8771. Driver: "null"
  8772. EnableIPv6: false
  8773. Internal: false
  8774. Attachable: false
  8775. Ingress: false
  8776. IPAM:
  8777. Driver: "default"
  8778. Config: []
  8779. Containers: {}
  8780. Options: {}
  8781. - Name: "host"
  8782. Id: "13e871235c677f196c4e1ecebb9dc733b9b2d2ab589e30c539efeda84a24215e"
  8783. Created: "0001-01-01T00:00:00Z"
  8784. Scope: "local"
  8785. Driver: "host"
  8786. EnableIPv6: false
  8787. Internal: false
  8788. Attachable: false
  8789. Ingress: false
  8790. IPAM:
  8791. Driver: "default"
  8792. Config: []
  8793. Containers: {}
  8794. Options: {}
  8795. 500:
  8796. description: "Server error"
  8797. schema:
  8798. $ref: "#/definitions/ErrorResponse"
  8799. parameters:
  8800. - name: "filters"
  8801. in: "query"
  8802. description: |
  8803. JSON encoded value of the filters (a `map[string][]string`) to process
  8804. on the networks list.
  8805. Available filters:
  8806. - `dangling=<boolean>` When set to `true` (or `1`), returns all
  8807. networks that are not in use by a container. When set to `false`
  8808. (or `0`), only networks that are in use by one or more
  8809. containers are returned.
  8810. - `driver=<driver-name>` Matches a network's driver.
  8811. - `id=<network-id>` Matches all or part of a network ID.
  8812. - `label=<key>` or `label=<key>=<value>` of a network label.
  8813. - `name=<network-name>` Matches all or part of a network name.
  8814. - `scope=["swarm"|"global"|"local"]` Filters networks by scope (`swarm`, `global`, or `local`).
  8815. - `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
  8816. type: "string"
  8817. tags: ["Network"]
  8818. /networks/{id}:
  8819. get:
  8820. summary: "Inspect a network"
  8821. operationId: "NetworkInspect"
  8822. produces:
  8823. - "application/json"
  8824. responses:
  8825. 200:
  8826. description: "No error"
  8827. schema:
  8828. $ref: "#/definitions/Network"
  8829. 404:
  8830. description: "Network not found"
  8831. schema:
  8832. $ref: "#/definitions/ErrorResponse"
  8833. 500:
  8834. description: "Server error"
  8835. schema:
  8836. $ref: "#/definitions/ErrorResponse"
  8837. parameters:
  8838. - name: "id"
  8839. in: "path"
  8840. description: "Network ID or name"
  8841. required: true
  8842. type: "string"
  8843. - name: "verbose"
  8844. in: "query"
  8845. description: "Detailed inspect output for troubleshooting"
  8846. type: "boolean"
  8847. default: false
  8848. - name: "scope"
  8849. in: "query"
  8850. description: "Filter the network by scope (swarm, global, or local)"
  8851. type: "string"
  8852. tags: ["Network"]
  8853. delete:
  8854. summary: "Remove a network"
  8855. operationId: "NetworkDelete"
  8856. responses:
  8857. 204:
  8858. description: "No error"
  8859. 403:
  8860. description: "operation not supported for pre-defined networks"
  8861. schema:
  8862. $ref: "#/definitions/ErrorResponse"
  8863. 404:
  8864. description: "no such network"
  8865. schema:
  8866. $ref: "#/definitions/ErrorResponse"
  8867. 500:
  8868. description: "Server error"
  8869. schema:
  8870. $ref: "#/definitions/ErrorResponse"
  8871. parameters:
  8872. - name: "id"
  8873. in: "path"
  8874. description: "Network ID or name"
  8875. required: true
  8876. type: "string"
  8877. tags: ["Network"]
  8878. /networks/create:
  8879. post:
  8880. summary: "Create a network"
  8881. operationId: "NetworkCreate"
  8882. consumes:
  8883. - "application/json"
  8884. produces:
  8885. - "application/json"
  8886. responses:
  8887. 201:
  8888. description: "No error"
  8889. schema:
  8890. type: "object"
  8891. title: "NetworkCreateResponse"
  8892. properties:
  8893. Id:
  8894. description: "The ID of the created network."
  8895. type: "string"
  8896. Warning:
  8897. type: "string"
  8898. example:
  8899. Id: "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30"
  8900. Warning: ""
  8901. 400:
  8902. description: "bad parameter"
  8903. schema:
  8904. $ref: "#/definitions/ErrorResponse"
  8905. 403:
  8906. description: "operation not supported for pre-defined networks"
  8907. schema:
  8908. $ref: "#/definitions/ErrorResponse"
  8909. 404:
  8910. description: "plugin not found"
  8911. schema:
  8912. $ref: "#/definitions/ErrorResponse"
  8913. 500:
  8914. description: "Server error"
  8915. schema:
  8916. $ref: "#/definitions/ErrorResponse"
  8917. parameters:
  8918. - name: "networkConfig"
  8919. in: "body"
  8920. description: "Network configuration"
  8921. required: true
  8922. schema:
  8923. type: "object"
  8924. title: "NetworkCreateRequest"
  8925. required: ["Name"]
  8926. properties:
  8927. Name:
  8928. description: "The network's name."
  8929. type: "string"
  8930. CheckDuplicate:
  8931. description: |
  8932. Check for networks with duplicate names. Since Network is
  8933. primarily keyed based on a random ID and not on the name, and
  8934. network name is strictly a user-friendly alias to the network
  8935. which is uniquely identified using ID, there is no guaranteed
  8936. way to check for duplicates. CheckDuplicate is there to provide
  8937. a best effort checking of any networks which has the same name
  8938. but it is not guaranteed to catch all name collisions.
  8939. type: "boolean"
  8940. Driver:
  8941. description: "Name of the network driver plugin to use."
  8942. type: "string"
  8943. default: "bridge"
  8944. Internal:
  8945. description: "Restrict external access to the network."
  8946. type: "boolean"
  8947. Attachable:
  8948. description: |
  8949. Globally scoped network is manually attachable by regular
  8950. containers from workers in swarm mode.
  8951. type: "boolean"
  8952. Ingress:
  8953. description: |
  8954. Ingress network is the network which provides the routing-mesh
  8955. in swarm mode.
  8956. type: "boolean"
  8957. IPAM:
  8958. description: "Optional custom IP scheme for the network."
  8959. $ref: "#/definitions/IPAM"
  8960. EnableIPv6:
  8961. description: "Enable IPv6 on the network."
  8962. type: "boolean"
  8963. Options:
  8964. description: "Network specific options to be used by the drivers."
  8965. type: "object"
  8966. additionalProperties:
  8967. type: "string"
  8968. Labels:
  8969. description: "User-defined key/value metadata."
  8970. type: "object"
  8971. additionalProperties:
  8972. type: "string"
  8973. example:
  8974. Name: "isolated_nw"
  8975. CheckDuplicate: false
  8976. Driver: "bridge"
  8977. EnableIPv6: true
  8978. IPAM:
  8979. Driver: "default"
  8980. Config:
  8981. - Subnet: "172.20.0.0/16"
  8982. IPRange: "172.20.10.0/24"
  8983. Gateway: "172.20.10.11"
  8984. - Subnet: "2001:db8:abcd::/64"
  8985. Gateway: "2001:db8:abcd::1011"
  8986. Options:
  8987. foo: "bar"
  8988. Internal: true
  8989. Attachable: false
  8990. Ingress: false
  8991. Options:
  8992. com.docker.network.bridge.default_bridge: "true"
  8993. com.docker.network.bridge.enable_icc: "true"
  8994. com.docker.network.bridge.enable_ip_masquerade: "true"
  8995. com.docker.network.bridge.host_binding_ipv4: "0.0.0.0"
  8996. com.docker.network.bridge.name: "docker0"
  8997. com.docker.network.driver.mtu: "1500"
  8998. Labels:
  8999. com.example.some-label: "some-value"
  9000. com.example.some-other-label: "some-other-value"
  9001. tags: ["Network"]
  9002. /networks/{id}/connect:
  9003. post:
  9004. summary: "Connect a container to a network"
  9005. operationId: "NetworkConnect"
  9006. consumes:
  9007. - "application/json"
  9008. responses:
  9009. 200:
  9010. description: "No error"
  9011. 403:
  9012. description: "Operation not supported for swarm scoped networks"
  9013. schema:
  9014. $ref: "#/definitions/ErrorResponse"
  9015. 404:
  9016. description: "Network or container not found"
  9017. schema:
  9018. $ref: "#/definitions/ErrorResponse"
  9019. 500:
  9020. description: "Server error"
  9021. schema:
  9022. $ref: "#/definitions/ErrorResponse"
  9023. parameters:
  9024. - name: "id"
  9025. in: "path"
  9026. description: "Network ID or name"
  9027. required: true
  9028. type: "string"
  9029. - name: "container"
  9030. in: "body"
  9031. required: true
  9032. schema:
  9033. type: "object"
  9034. title: "NetworkDisconnectRequest"
  9035. properties:
  9036. Container:
  9037. type: "string"
  9038. description: "The ID or name of the container to connect to the network."
  9039. EndpointConfig:
  9040. $ref: "#/definitions/EndpointSettings"
  9041. example:
  9042. Container: "3613f73ba0e4"
  9043. EndpointConfig:
  9044. IPAMConfig:
  9045. IPv4Address: "172.24.56.89"
  9046. IPv6Address: "2001:db8::5689"
  9047. tags: ["Network"]
  9048. /networks/{id}/disconnect:
  9049. post:
  9050. summary: "Disconnect a container from a network"
  9051. operationId: "NetworkDisconnect"
  9052. consumes:
  9053. - "application/json"
  9054. responses:
  9055. 200:
  9056. description: "No error"
  9057. 403:
  9058. description: "Operation not supported for swarm scoped networks"
  9059. schema:
  9060. $ref: "#/definitions/ErrorResponse"
  9061. 404:
  9062. description: "Network or container not found"
  9063. schema:
  9064. $ref: "#/definitions/ErrorResponse"
  9065. 500:
  9066. description: "Server error"
  9067. schema:
  9068. $ref: "#/definitions/ErrorResponse"
  9069. parameters:
  9070. - name: "id"
  9071. in: "path"
  9072. description: "Network ID or name"
  9073. required: true
  9074. type: "string"
  9075. - name: "container"
  9076. in: "body"
  9077. required: true
  9078. schema:
  9079. type: "object"
  9080. title: "NetworkConnectRequest"
  9081. properties:
  9082. Container:
  9083. type: "string"
  9084. description: |
  9085. The ID or name of the container to disconnect from the network.
  9086. Force:
  9087. type: "boolean"
  9088. description: |
  9089. Force the container to disconnect from the network.
  9090. tags: ["Network"]
  9091. /networks/prune:
  9092. post:
  9093. summary: "Delete unused networks"
  9094. produces:
  9095. - "application/json"
  9096. operationId: "NetworkPrune"
  9097. parameters:
  9098. - name: "filters"
  9099. in: "query"
  9100. description: |
  9101. Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
  9102. Available filters:
  9103. - `until=<timestamp>` Prune networks created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
  9104. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels.
  9105. type: "string"
  9106. responses:
  9107. 200:
  9108. description: "No error"
  9109. schema:
  9110. type: "object"
  9111. title: "NetworkPruneResponse"
  9112. properties:
  9113. NetworksDeleted:
  9114. description: "Networks that were deleted"
  9115. type: "array"
  9116. items:
  9117. type: "string"
  9118. 500:
  9119. description: "Server error"
  9120. schema:
  9121. $ref: "#/definitions/ErrorResponse"
  9122. tags: ["Network"]
  9123. /plugins:
  9124. get:
  9125. summary: "List plugins"
  9126. operationId: "PluginList"
  9127. description: "Returns information about installed plugins."
  9128. produces: ["application/json"]
  9129. responses:
  9130. 200:
  9131. description: "No error"
  9132. schema:
  9133. type: "array"
  9134. items:
  9135. $ref: "#/definitions/Plugin"
  9136. 500:
  9137. description: "Server error"
  9138. schema:
  9139. $ref: "#/definitions/ErrorResponse"
  9140. parameters:
  9141. - name: "filters"
  9142. in: "query"
  9143. type: "string"
  9144. description: |
  9145. A JSON encoded value of the filters (a `map[string][]string`) to
  9146. process on the plugin list.
  9147. Available filters:
  9148. - `capability=<capability name>`
  9149. - `enable=<true>|<false>`
  9150. tags: ["Plugin"]
  9151. /plugins/privileges:
  9152. get:
  9153. summary: "Get plugin privileges"
  9154. operationId: "GetPluginPrivileges"
  9155. responses:
  9156. 200:
  9157. description: "no error"
  9158. schema:
  9159. type: "array"
  9160. items:
  9161. $ref: "#/definitions/PluginPrivilege"
  9162. example:
  9163. - Name: "network"
  9164. Description: ""
  9165. Value:
  9166. - "host"
  9167. - Name: "mount"
  9168. Description: ""
  9169. Value:
  9170. - "/data"
  9171. - Name: "device"
  9172. Description: ""
  9173. Value:
  9174. - "/dev/cpu_dma_latency"
  9175. 500:
  9176. description: "server error"
  9177. schema:
  9178. $ref: "#/definitions/ErrorResponse"
  9179. parameters:
  9180. - name: "remote"
  9181. in: "query"
  9182. description: |
  9183. The name of the plugin. The `:latest` tag is optional, and is the
  9184. default if omitted.
  9185. required: true
  9186. type: "string"
  9187. tags:
  9188. - "Plugin"
  9189. /plugins/pull:
  9190. post:
  9191. summary: "Install a plugin"
  9192. operationId: "PluginPull"
  9193. description: |
  9194. Pulls and installs a plugin. After the plugin is installed, it can be
  9195. enabled using the [`POST /plugins/{name}/enable` endpoint](#operation/PostPluginsEnable).
  9196. produces:
  9197. - "application/json"
  9198. responses:
  9199. 204:
  9200. description: "no error"
  9201. 500:
  9202. description: "server error"
  9203. schema:
  9204. $ref: "#/definitions/ErrorResponse"
  9205. parameters:
  9206. - name: "remote"
  9207. in: "query"
  9208. description: |
  9209. Remote reference for plugin to install.
  9210. The `:latest` tag is optional, and is used as the default if omitted.
  9211. required: true
  9212. type: "string"
  9213. - name: "name"
  9214. in: "query"
  9215. description: |
  9216. Local name for the pulled plugin.
  9217. The `:latest` tag is optional, and is used as the default if omitted.
  9218. required: false
  9219. type: "string"
  9220. - name: "X-Registry-Auth"
  9221. in: "header"
  9222. description: |
  9223. A base64url-encoded auth configuration to use when pulling a plugin
  9224. from a registry.
  9225. Refer to the [authentication section](#section/Authentication) for
  9226. details.
  9227. type: "string"
  9228. - name: "body"
  9229. in: "body"
  9230. schema:
  9231. type: "array"
  9232. items:
  9233. $ref: "#/definitions/PluginPrivilege"
  9234. example:
  9235. - Name: "network"
  9236. Description: ""
  9237. Value:
  9238. - "host"
  9239. - Name: "mount"
  9240. Description: ""
  9241. Value:
  9242. - "/data"
  9243. - Name: "device"
  9244. Description: ""
  9245. Value:
  9246. - "/dev/cpu_dma_latency"
  9247. tags: ["Plugin"]
  9248. /plugins/{name}/json:
  9249. get:
  9250. summary: "Inspect a plugin"
  9251. operationId: "PluginInspect"
  9252. responses:
  9253. 200:
  9254. description: "no error"
  9255. schema:
  9256. $ref: "#/definitions/Plugin"
  9257. 404:
  9258. description: "plugin is not installed"
  9259. schema:
  9260. $ref: "#/definitions/ErrorResponse"
  9261. 500:
  9262. description: "server error"
  9263. schema:
  9264. $ref: "#/definitions/ErrorResponse"
  9265. parameters:
  9266. - name: "name"
  9267. in: "path"
  9268. description: |
  9269. The name of the plugin. The `:latest` tag is optional, and is the
  9270. default if omitted.
  9271. required: true
  9272. type: "string"
  9273. tags: ["Plugin"]
  9274. /plugins/{name}:
  9275. delete:
  9276. summary: "Remove a plugin"
  9277. operationId: "PluginDelete"
  9278. responses:
  9279. 200:
  9280. description: "no error"
  9281. schema:
  9282. $ref: "#/definitions/Plugin"
  9283. 404:
  9284. description: "plugin is not installed"
  9285. schema:
  9286. $ref: "#/definitions/ErrorResponse"
  9287. 500:
  9288. description: "server error"
  9289. schema:
  9290. $ref: "#/definitions/ErrorResponse"
  9291. parameters:
  9292. - name: "name"
  9293. in: "path"
  9294. description: |
  9295. The name of the plugin. The `:latest` tag is optional, and is the
  9296. default if omitted.
  9297. required: true
  9298. type: "string"
  9299. - name: "force"
  9300. in: "query"
  9301. description: |
  9302. Disable the plugin before removing. This may result in issues if the
  9303. plugin is in use by a container.
  9304. type: "boolean"
  9305. default: false
  9306. tags: ["Plugin"]
  9307. /plugins/{name}/enable:
  9308. post:
  9309. summary: "Enable a plugin"
  9310. operationId: "PluginEnable"
  9311. responses:
  9312. 200:
  9313. description: "no error"
  9314. 404:
  9315. description: "plugin is not installed"
  9316. schema:
  9317. $ref: "#/definitions/ErrorResponse"
  9318. 500:
  9319. description: "server error"
  9320. schema:
  9321. $ref: "#/definitions/ErrorResponse"
  9322. parameters:
  9323. - name: "name"
  9324. in: "path"
  9325. description: |
  9326. The name of the plugin. The `:latest` tag is optional, and is the
  9327. default if omitted.
  9328. required: true
  9329. type: "string"
  9330. - name: "timeout"
  9331. in: "query"
  9332. description: "Set the HTTP client timeout (in seconds)"
  9333. type: "integer"
  9334. default: 0
  9335. tags: ["Plugin"]
  9336. /plugins/{name}/disable:
  9337. post:
  9338. summary: "Disable a plugin"
  9339. operationId: "PluginDisable"
  9340. responses:
  9341. 200:
  9342. description: "no error"
  9343. 404:
  9344. description: "plugin is not installed"
  9345. schema:
  9346. $ref: "#/definitions/ErrorResponse"
  9347. 500:
  9348. description: "server error"
  9349. schema:
  9350. $ref: "#/definitions/ErrorResponse"
  9351. parameters:
  9352. - name: "name"
  9353. in: "path"
  9354. description: |
  9355. The name of the plugin. The `:latest` tag is optional, and is the
  9356. default if omitted.
  9357. required: true
  9358. type: "string"
  9359. - name: "force"
  9360. in: "query"
  9361. description: |
  9362. Force disable a plugin even if still in use.
  9363. required: false
  9364. type: "boolean"
  9365. tags: ["Plugin"]
  9366. /plugins/{name}/upgrade:
  9367. post:
  9368. summary: "Upgrade a plugin"
  9369. operationId: "PluginUpgrade"
  9370. responses:
  9371. 204:
  9372. description: "no error"
  9373. 404:
  9374. description: "plugin not installed"
  9375. schema:
  9376. $ref: "#/definitions/ErrorResponse"
  9377. 500:
  9378. description: "server error"
  9379. schema:
  9380. $ref: "#/definitions/ErrorResponse"
  9381. parameters:
  9382. - name: "name"
  9383. in: "path"
  9384. description: |
  9385. The name of the plugin. The `:latest` tag is optional, and is the
  9386. default if omitted.
  9387. required: true
  9388. type: "string"
  9389. - name: "remote"
  9390. in: "query"
  9391. description: |
  9392. Remote reference to upgrade to.
  9393. The `:latest` tag is optional, and is used as the default if omitted.
  9394. required: true
  9395. type: "string"
  9396. - name: "X-Registry-Auth"
  9397. in: "header"
  9398. description: |
  9399. A base64url-encoded auth configuration to use when pulling a plugin
  9400. from a registry.
  9401. Refer to the [authentication section](#section/Authentication) for
  9402. details.
  9403. type: "string"
  9404. - name: "body"
  9405. in: "body"
  9406. schema:
  9407. type: "array"
  9408. items:
  9409. $ref: "#/definitions/PluginPrivilege"
  9410. example:
  9411. - Name: "network"
  9412. Description: ""
  9413. Value:
  9414. - "host"
  9415. - Name: "mount"
  9416. Description: ""
  9417. Value:
  9418. - "/data"
  9419. - Name: "device"
  9420. Description: ""
  9421. Value:
  9422. - "/dev/cpu_dma_latency"
  9423. tags: ["Plugin"]
  9424. /plugins/create:
  9425. post:
  9426. summary: "Create a plugin"
  9427. operationId: "PluginCreate"
  9428. consumes:
  9429. - "application/x-tar"
  9430. responses:
  9431. 204:
  9432. description: "no error"
  9433. 500:
  9434. description: "server error"
  9435. schema:
  9436. $ref: "#/definitions/ErrorResponse"
  9437. parameters:
  9438. - name: "name"
  9439. in: "query"
  9440. description: |
  9441. The name of the plugin. The `:latest` tag is optional, and is the
  9442. default if omitted.
  9443. required: true
  9444. type: "string"
  9445. - name: "tarContext"
  9446. in: "body"
  9447. description: "Path to tar containing plugin rootfs and manifest"
  9448. schema:
  9449. type: "string"
  9450. format: "binary"
  9451. tags: ["Plugin"]
  9452. /plugins/{name}/push:
  9453. post:
  9454. summary: "Push a plugin"
  9455. operationId: "PluginPush"
  9456. description: |
  9457. Push a plugin to the registry.
  9458. parameters:
  9459. - name: "name"
  9460. in: "path"
  9461. description: |
  9462. The name of the plugin. The `:latest` tag is optional, and is the
  9463. default if omitted.
  9464. required: true
  9465. type: "string"
  9466. responses:
  9467. 200:
  9468. description: "no error"
  9469. 404:
  9470. description: "plugin not installed"
  9471. schema:
  9472. $ref: "#/definitions/ErrorResponse"
  9473. 500:
  9474. description: "server error"
  9475. schema:
  9476. $ref: "#/definitions/ErrorResponse"
  9477. tags: ["Plugin"]
  9478. /plugins/{name}/set:
  9479. post:
  9480. summary: "Configure a plugin"
  9481. operationId: "PluginSet"
  9482. consumes:
  9483. - "application/json"
  9484. parameters:
  9485. - name: "name"
  9486. in: "path"
  9487. description: |
  9488. The name of the plugin. The `:latest` tag is optional, and is the
  9489. default if omitted.
  9490. required: true
  9491. type: "string"
  9492. - name: "body"
  9493. in: "body"
  9494. schema:
  9495. type: "array"
  9496. items:
  9497. type: "string"
  9498. example: ["DEBUG=1"]
  9499. responses:
  9500. 204:
  9501. description: "No error"
  9502. 404:
  9503. description: "Plugin not installed"
  9504. schema:
  9505. $ref: "#/definitions/ErrorResponse"
  9506. 500:
  9507. description: "Server error"
  9508. schema:
  9509. $ref: "#/definitions/ErrorResponse"
  9510. tags: ["Plugin"]
  9511. /nodes:
  9512. get:
  9513. summary: "List nodes"
  9514. operationId: "NodeList"
  9515. responses:
  9516. 200:
  9517. description: "no error"
  9518. schema:
  9519. type: "array"
  9520. items:
  9521. $ref: "#/definitions/Node"
  9522. 500:
  9523. description: "server error"
  9524. schema:
  9525. $ref: "#/definitions/ErrorResponse"
  9526. 503:
  9527. description: "node is not part of a swarm"
  9528. schema:
  9529. $ref: "#/definitions/ErrorResponse"
  9530. parameters:
  9531. - name: "filters"
  9532. in: "query"
  9533. description: |
  9534. Filters to process on the nodes list, encoded as JSON (a `map[string][]string`).
  9535. Available filters:
  9536. - `id=<node id>`
  9537. - `label=<engine label>`
  9538. - `membership=`(`accepted`|`pending`)`
  9539. - `name=<node name>`
  9540. - `node.label=<node label>`
  9541. - `role=`(`manager`|`worker`)`
  9542. type: "string"
  9543. tags: ["Node"]
  9544. /nodes/{id}:
  9545. get:
  9546. summary: "Inspect a node"
  9547. operationId: "NodeInspect"
  9548. responses:
  9549. 200:
  9550. description: "no error"
  9551. schema:
  9552. $ref: "#/definitions/Node"
  9553. 404:
  9554. description: "no such node"
  9555. schema:
  9556. $ref: "#/definitions/ErrorResponse"
  9557. 500:
  9558. description: "server error"
  9559. schema:
  9560. $ref: "#/definitions/ErrorResponse"
  9561. 503:
  9562. description: "node is not part of a swarm"
  9563. schema:
  9564. $ref: "#/definitions/ErrorResponse"
  9565. parameters:
  9566. - name: "id"
  9567. in: "path"
  9568. description: "The ID or name of the node"
  9569. type: "string"
  9570. required: true
  9571. tags: ["Node"]
  9572. delete:
  9573. summary: "Delete a node"
  9574. operationId: "NodeDelete"
  9575. responses:
  9576. 200:
  9577. description: "no error"
  9578. 404:
  9579. description: "no such node"
  9580. schema:
  9581. $ref: "#/definitions/ErrorResponse"
  9582. 500:
  9583. description: "server error"
  9584. schema:
  9585. $ref: "#/definitions/ErrorResponse"
  9586. 503:
  9587. description: "node is not part of a swarm"
  9588. schema:
  9589. $ref: "#/definitions/ErrorResponse"
  9590. parameters:
  9591. - name: "id"
  9592. in: "path"
  9593. description: "The ID or name of the node"
  9594. type: "string"
  9595. required: true
  9596. - name: "force"
  9597. in: "query"
  9598. description: "Force remove a node from the swarm"
  9599. default: false
  9600. type: "boolean"
  9601. tags: ["Node"]
  9602. /nodes/{id}/update:
  9603. post:
  9604. summary: "Update a node"
  9605. operationId: "NodeUpdate"
  9606. responses:
  9607. 200:
  9608. description: "no error"
  9609. 400:
  9610. description: "bad parameter"
  9611. schema:
  9612. $ref: "#/definitions/ErrorResponse"
  9613. 404:
  9614. description: "no such node"
  9615. schema:
  9616. $ref: "#/definitions/ErrorResponse"
  9617. 500:
  9618. description: "server error"
  9619. schema:
  9620. $ref: "#/definitions/ErrorResponse"
  9621. 503:
  9622. description: "node is not part of a swarm"
  9623. schema:
  9624. $ref: "#/definitions/ErrorResponse"
  9625. parameters:
  9626. - name: "id"
  9627. in: "path"
  9628. description: "The ID of the node"
  9629. type: "string"
  9630. required: true
  9631. - name: "body"
  9632. in: "body"
  9633. schema:
  9634. $ref: "#/definitions/NodeSpec"
  9635. - name: "version"
  9636. in: "query"
  9637. description: |
  9638. The version number of the node object being updated. This is required
  9639. to avoid conflicting writes.
  9640. type: "integer"
  9641. format: "int64"
  9642. required: true
  9643. tags: ["Node"]
  9644. /swarm:
  9645. get:
  9646. summary: "Inspect swarm"
  9647. operationId: "SwarmInspect"
  9648. responses:
  9649. 200:
  9650. description: "no error"
  9651. schema:
  9652. $ref: "#/definitions/Swarm"
  9653. 404:
  9654. description: "no such swarm"
  9655. schema:
  9656. $ref: "#/definitions/ErrorResponse"
  9657. 500:
  9658. description: "server error"
  9659. schema:
  9660. $ref: "#/definitions/ErrorResponse"
  9661. 503:
  9662. description: "node is not part of a swarm"
  9663. schema:
  9664. $ref: "#/definitions/ErrorResponse"
  9665. tags: ["Swarm"]
  9666. /swarm/init:
  9667. post:
  9668. summary: "Initialize a new swarm"
  9669. operationId: "SwarmInit"
  9670. produces:
  9671. - "application/json"
  9672. - "text/plain"
  9673. responses:
  9674. 200:
  9675. description: "no error"
  9676. schema:
  9677. description: "The node ID"
  9678. type: "string"
  9679. example: "7v2t30z9blmxuhnyo6s4cpenp"
  9680. 400:
  9681. description: "bad parameter"
  9682. schema:
  9683. $ref: "#/definitions/ErrorResponse"
  9684. 500:
  9685. description: "server error"
  9686. schema:
  9687. $ref: "#/definitions/ErrorResponse"
  9688. 503:
  9689. description: "node is already part of a swarm"
  9690. schema:
  9691. $ref: "#/definitions/ErrorResponse"
  9692. parameters:
  9693. - name: "body"
  9694. in: "body"
  9695. required: true
  9696. schema:
  9697. type: "object"
  9698. title: "SwarmInitRequest"
  9699. properties:
  9700. ListenAddr:
  9701. description: |
  9702. Listen address used for inter-manager communication, as well
  9703. as determining the networking interface used for the VXLAN
  9704. Tunnel Endpoint (VTEP). This can either be an address/port
  9705. combination in the form `192.168.1.1:4567`, or an interface
  9706. followed by a port number, like `eth0:4567`. If the port number
  9707. is omitted, the default swarm listening port is used.
  9708. type: "string"
  9709. AdvertiseAddr:
  9710. description: |
  9711. Externally reachable address advertised to other nodes. This
  9712. can either be an address/port combination in the form
  9713. `192.168.1.1:4567`, or an interface followed by a port number,
  9714. like `eth0:4567`. If the port number is omitted, the port
  9715. number from the listen address is used. If `AdvertiseAddr` is
  9716. not specified, it will be automatically detected when possible.
  9717. type: "string"
  9718. DataPathAddr:
  9719. description: |
  9720. Address or interface to use for data path traffic (format:
  9721. `<ip|interface>`), for example, `192.168.1.1`, or an interface,
  9722. like `eth0`. If `DataPathAddr` is unspecified, the same address
  9723. as `AdvertiseAddr` is used.
  9724. The `DataPathAddr` specifies the address that global scope
  9725. network drivers will publish towards other nodes in order to
  9726. reach the containers running on this node. Using this parameter
  9727. it is possible to separate the container data traffic from the
  9728. management traffic of the cluster.
  9729. type: "string"
  9730. DataPathPort:
  9731. description: |
  9732. DataPathPort specifies the data path port number for data traffic.
  9733. Acceptable port range is 1024 to 49151.
  9734. if no port is set or is set to 0, default port 4789 will be used.
  9735. type: "integer"
  9736. format: "uint32"
  9737. DefaultAddrPool:
  9738. description: |
  9739. Default Address Pool specifies default subnet pools for global
  9740. scope networks.
  9741. type: "array"
  9742. items:
  9743. type: "string"
  9744. example: ["10.10.0.0/16", "20.20.0.0/16"]
  9745. ForceNewCluster:
  9746. description: "Force creation of a new swarm."
  9747. type: "boolean"
  9748. SubnetSize:
  9749. description: |
  9750. SubnetSize specifies the subnet size of the networks created
  9751. from the default subnet pool.
  9752. type: "integer"
  9753. format: "uint32"
  9754. Spec:
  9755. $ref: "#/definitions/SwarmSpec"
  9756. example:
  9757. ListenAddr: "0.0.0.0:2377"
  9758. AdvertiseAddr: "192.168.1.1:2377"
  9759. DataPathPort: 4789
  9760. DefaultAddrPool: ["10.10.0.0/8", "20.20.0.0/8"]
  9761. SubnetSize: 24
  9762. ForceNewCluster: false
  9763. Spec:
  9764. Orchestration: {}
  9765. Raft: {}
  9766. Dispatcher: {}
  9767. CAConfig: {}
  9768. EncryptionConfig:
  9769. AutoLockManagers: false
  9770. tags: ["Swarm"]
  9771. /swarm/join:
  9772. post:
  9773. summary: "Join an existing swarm"
  9774. operationId: "SwarmJoin"
  9775. responses:
  9776. 200:
  9777. description: "no error"
  9778. 400:
  9779. description: "bad parameter"
  9780. schema:
  9781. $ref: "#/definitions/ErrorResponse"
  9782. 500:
  9783. description: "server error"
  9784. schema:
  9785. $ref: "#/definitions/ErrorResponse"
  9786. 503:
  9787. description: "node is already part of a swarm"
  9788. schema:
  9789. $ref: "#/definitions/ErrorResponse"
  9790. parameters:
  9791. - name: "body"
  9792. in: "body"
  9793. required: true
  9794. schema:
  9795. type: "object"
  9796. title: "SwarmJoinRequest"
  9797. properties:
  9798. ListenAddr:
  9799. description: |
  9800. Listen address used for inter-manager communication if the node
  9801. gets promoted to manager, as well as determining the networking
  9802. interface used for the VXLAN Tunnel Endpoint (VTEP).
  9803. type: "string"
  9804. AdvertiseAddr:
  9805. description: |
  9806. Externally reachable address advertised to other nodes. This
  9807. can either be an address/port combination in the form
  9808. `192.168.1.1:4567`, or an interface followed by a port number,
  9809. like `eth0:4567`. If the port number is omitted, the port
  9810. number from the listen address is used. If `AdvertiseAddr` is
  9811. not specified, it will be automatically detected when possible.
  9812. type: "string"
  9813. DataPathAddr:
  9814. description: |
  9815. Address or interface to use for data path traffic (format:
  9816. `<ip|interface>`), for example, `192.168.1.1`, or an interface,
  9817. like `eth0`. If `DataPathAddr` is unspecified, the same address
  9818. as `AdvertiseAddr` is used.
  9819. The `DataPathAddr` specifies the address that global scope
  9820. network drivers will publish towards other nodes in order to
  9821. reach the containers running on this node. Using this parameter
  9822. it is possible to separate the container data traffic from the
  9823. management traffic of the cluster.
  9824. type: "string"
  9825. RemoteAddrs:
  9826. description: |
  9827. Addresses of manager nodes already participating in the swarm.
  9828. type: "array"
  9829. items:
  9830. type: "string"
  9831. JoinToken:
  9832. description: "Secret token for joining this swarm."
  9833. type: "string"
  9834. example:
  9835. ListenAddr: "0.0.0.0:2377"
  9836. AdvertiseAddr: "192.168.1.1:2377"
  9837. RemoteAddrs:
  9838. - "node1:2377"
  9839. JoinToken: "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
  9840. tags: ["Swarm"]
  9841. /swarm/leave:
  9842. post:
  9843. summary: "Leave a swarm"
  9844. operationId: "SwarmLeave"
  9845. responses:
  9846. 200:
  9847. description: "no error"
  9848. 500:
  9849. description: "server error"
  9850. schema:
  9851. $ref: "#/definitions/ErrorResponse"
  9852. 503:
  9853. description: "node is not part of a swarm"
  9854. schema:
  9855. $ref: "#/definitions/ErrorResponse"
  9856. parameters:
  9857. - name: "force"
  9858. description: |
  9859. Force leave swarm, even if this is the last manager or that it will
  9860. break the cluster.
  9861. in: "query"
  9862. type: "boolean"
  9863. default: false
  9864. tags: ["Swarm"]
  9865. /swarm/update:
  9866. post:
  9867. summary: "Update a swarm"
  9868. operationId: "SwarmUpdate"
  9869. responses:
  9870. 200:
  9871. description: "no error"
  9872. 400:
  9873. description: "bad parameter"
  9874. schema:
  9875. $ref: "#/definitions/ErrorResponse"
  9876. 500:
  9877. description: "server error"
  9878. schema:
  9879. $ref: "#/definitions/ErrorResponse"
  9880. 503:
  9881. description: "node is not part of a swarm"
  9882. schema:
  9883. $ref: "#/definitions/ErrorResponse"
  9884. parameters:
  9885. - name: "body"
  9886. in: "body"
  9887. required: true
  9888. schema:
  9889. $ref: "#/definitions/SwarmSpec"
  9890. - name: "version"
  9891. in: "query"
  9892. description: |
  9893. The version number of the swarm object being updated. This is
  9894. required to avoid conflicting writes.
  9895. type: "integer"
  9896. format: "int64"
  9897. required: true
  9898. - name: "rotateWorkerToken"
  9899. in: "query"
  9900. description: "Rotate the worker join token."
  9901. type: "boolean"
  9902. default: false
  9903. - name: "rotateManagerToken"
  9904. in: "query"
  9905. description: "Rotate the manager join token."
  9906. type: "boolean"
  9907. default: false
  9908. - name: "rotateManagerUnlockKey"
  9909. in: "query"
  9910. description: "Rotate the manager unlock key."
  9911. type: "boolean"
  9912. default: false
  9913. tags: ["Swarm"]
  9914. /swarm/unlockkey:
  9915. get:
  9916. summary: "Get the unlock key"
  9917. operationId: "SwarmUnlockkey"
  9918. consumes:
  9919. - "application/json"
  9920. responses:
  9921. 200:
  9922. description: "no error"
  9923. schema:
  9924. type: "object"
  9925. title: "UnlockKeyResponse"
  9926. properties:
  9927. UnlockKey:
  9928. description: "The swarm's unlock key."
  9929. type: "string"
  9930. example:
  9931. UnlockKey: "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"
  9932. 500:
  9933. description: "server error"
  9934. schema:
  9935. $ref: "#/definitions/ErrorResponse"
  9936. 503:
  9937. description: "node is not part of a swarm"
  9938. schema:
  9939. $ref: "#/definitions/ErrorResponse"
  9940. tags: ["Swarm"]
  9941. /swarm/unlock:
  9942. post:
  9943. summary: "Unlock a locked manager"
  9944. operationId: "SwarmUnlock"
  9945. consumes:
  9946. - "application/json"
  9947. produces:
  9948. - "application/json"
  9949. parameters:
  9950. - name: "body"
  9951. in: "body"
  9952. required: true
  9953. schema:
  9954. type: "object"
  9955. title: "SwarmUnlockRequest"
  9956. properties:
  9957. UnlockKey:
  9958. description: "The swarm's unlock key."
  9959. type: "string"
  9960. example:
  9961. UnlockKey: "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"
  9962. responses:
  9963. 200:
  9964. description: "no error"
  9965. 500:
  9966. description: "server error"
  9967. schema:
  9968. $ref: "#/definitions/ErrorResponse"
  9969. 503:
  9970. description: "node is not part of a swarm"
  9971. schema:
  9972. $ref: "#/definitions/ErrorResponse"
  9973. tags: ["Swarm"]
  9974. /services:
  9975. get:
  9976. summary: "List services"
  9977. operationId: "ServiceList"
  9978. responses:
  9979. 200:
  9980. description: "no error"
  9981. schema:
  9982. type: "array"
  9983. items:
  9984. $ref: "#/definitions/Service"
  9985. 500:
  9986. description: "server error"
  9987. schema:
  9988. $ref: "#/definitions/ErrorResponse"
  9989. 503:
  9990. description: "node is not part of a swarm"
  9991. schema:
  9992. $ref: "#/definitions/ErrorResponse"
  9993. parameters:
  9994. - name: "filters"
  9995. in: "query"
  9996. type: "string"
  9997. description: |
  9998. A JSON encoded value of the filters (a `map[string][]string`) to
  9999. process on the services list.
  10000. Available filters:
  10001. - `id=<service id>`
  10002. - `label=<service label>`
  10003. - `mode=["replicated"|"global"]`
  10004. - `name=<service name>`
  10005. tags: ["Service"]
  10006. /services/create:
  10007. post:
  10008. summary: "Create a service"
  10009. operationId: "ServiceCreate"
  10010. consumes:
  10011. - "application/json"
  10012. produces:
  10013. - "application/json"
  10014. responses:
  10015. 201:
  10016. description: "no error"
  10017. schema:
  10018. type: "object"
  10019. title: "ServiceCreateResponse"
  10020. properties:
  10021. ID:
  10022. description: "The ID of the created service."
  10023. type: "string"
  10024. Warning:
  10025. description: "Optional warning message"
  10026. type: "string"
  10027. example:
  10028. ID: "ak7w3gjqoa3kuz8xcpnyy0pvl"
  10029. Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
  10030. 400:
  10031. description: "bad parameter"
  10032. schema:
  10033. $ref: "#/definitions/ErrorResponse"
  10034. 403:
  10035. description: "network is not eligible for services"
  10036. schema:
  10037. $ref: "#/definitions/ErrorResponse"
  10038. 409:
  10039. description: "name conflicts with an existing service"
  10040. schema:
  10041. $ref: "#/definitions/ErrorResponse"
  10042. 500:
  10043. description: "server error"
  10044. schema:
  10045. $ref: "#/definitions/ErrorResponse"
  10046. 503:
  10047. description: "node is not part of a swarm"
  10048. schema:
  10049. $ref: "#/definitions/ErrorResponse"
  10050. parameters:
  10051. - name: "body"
  10052. in: "body"
  10053. required: true
  10054. schema:
  10055. allOf:
  10056. - $ref: "#/definitions/ServiceSpec"
  10057. - type: "object"
  10058. example:
  10059. Name: "web"
  10060. TaskTemplate:
  10061. ContainerSpec:
  10062. Image: "nginx:alpine"
  10063. Mounts:
  10064. -
  10065. ReadOnly: true
  10066. Source: "web-data"
  10067. Target: "/usr/share/nginx/html"
  10068. Type: "volume"
  10069. VolumeOptions:
  10070. DriverConfig: {}
  10071. Labels:
  10072. com.example.something: "something-value"
  10073. Hosts: ["10.10.10.10 host1", "ABCD:EF01:2345:6789:ABCD:EF01:2345:6789 host2"]
  10074. User: "33"
  10075. DNSConfig:
  10076. Nameservers: ["8.8.8.8"]
  10077. Search: ["example.org"]
  10078. Options: ["timeout:3"]
  10079. Secrets:
  10080. -
  10081. File:
  10082. Name: "www.example.org.key"
  10083. UID: "33"
  10084. GID: "33"
  10085. Mode: 384
  10086. SecretID: "fpjqlhnwb19zds35k8wn80lq9"
  10087. SecretName: "example_org_domain_key"
  10088. LogDriver:
  10089. Name: "json-file"
  10090. Options:
  10091. max-file: "3"
  10092. max-size: "10M"
  10093. Placement: {}
  10094. Resources:
  10095. Limits:
  10096. MemoryBytes: 104857600
  10097. Reservations: {}
  10098. RestartPolicy:
  10099. Condition: "on-failure"
  10100. Delay: 10000000000
  10101. MaxAttempts: 10
  10102. Mode:
  10103. Replicated:
  10104. Replicas: 4
  10105. UpdateConfig:
  10106. Parallelism: 2
  10107. Delay: 1000000000
  10108. FailureAction: "pause"
  10109. Monitor: 15000000000
  10110. MaxFailureRatio: 0.15
  10111. RollbackConfig:
  10112. Parallelism: 1
  10113. Delay: 1000000000
  10114. FailureAction: "pause"
  10115. Monitor: 15000000000
  10116. MaxFailureRatio: 0.15
  10117. EndpointSpec:
  10118. Ports:
  10119. -
  10120. Protocol: "tcp"
  10121. PublishedPort: 8080
  10122. TargetPort: 80
  10123. Labels:
  10124. foo: "bar"
  10125. - name: "X-Registry-Auth"
  10126. in: "header"
  10127. description: |
  10128. A base64url-encoded auth configuration for pulling from private
  10129. registries.
  10130. Refer to the [authentication section](#section/Authentication) for
  10131. details.
  10132. type: "string"
  10133. tags: ["Service"]
  10134. /services/{id}:
  10135. get:
  10136. summary: "Inspect a service"
  10137. operationId: "ServiceInspect"
  10138. responses:
  10139. 200:
  10140. description: "no error"
  10141. schema:
  10142. $ref: "#/definitions/Service"
  10143. 404:
  10144. description: "no such service"
  10145. schema:
  10146. $ref: "#/definitions/ErrorResponse"
  10147. 500:
  10148. description: "server error"
  10149. schema:
  10150. $ref: "#/definitions/ErrorResponse"
  10151. 503:
  10152. description: "node is not part of a swarm"
  10153. schema:
  10154. $ref: "#/definitions/ErrorResponse"
  10155. parameters:
  10156. - name: "id"
  10157. in: "path"
  10158. description: "ID or name of service."
  10159. required: true
  10160. type: "string"
  10161. - name: "insertDefaults"
  10162. in: "query"
  10163. description: "Fill empty fields with default values."
  10164. type: "boolean"
  10165. default: false
  10166. tags: ["Service"]
  10167. delete:
  10168. summary: "Delete a service"
  10169. operationId: "ServiceDelete"
  10170. responses:
  10171. 200:
  10172. description: "no error"
  10173. 404:
  10174. description: "no such service"
  10175. schema:
  10176. $ref: "#/definitions/ErrorResponse"
  10177. 500:
  10178. description: "server error"
  10179. schema:
  10180. $ref: "#/definitions/ErrorResponse"
  10181. 503:
  10182. description: "node is not part of a swarm"
  10183. schema:
  10184. $ref: "#/definitions/ErrorResponse"
  10185. parameters:
  10186. - name: "id"
  10187. in: "path"
  10188. description: "ID or name of service."
  10189. required: true
  10190. type: "string"
  10191. tags: ["Service"]
  10192. /services/{id}/update:
  10193. post:
  10194. summary: "Update a service"
  10195. operationId: "ServiceUpdate"
  10196. consumes: ["application/json"]
  10197. produces: ["application/json"]
  10198. responses:
  10199. 200:
  10200. description: "no error"
  10201. schema:
  10202. $ref: "#/definitions/ServiceUpdateResponse"
  10203. 400:
  10204. description: "bad parameter"
  10205. schema:
  10206. $ref: "#/definitions/ErrorResponse"
  10207. 404:
  10208. description: "no such service"
  10209. schema:
  10210. $ref: "#/definitions/ErrorResponse"
  10211. 500:
  10212. description: "server error"
  10213. schema:
  10214. $ref: "#/definitions/ErrorResponse"
  10215. 503:
  10216. description: "node is not part of a swarm"
  10217. schema:
  10218. $ref: "#/definitions/ErrorResponse"
  10219. parameters:
  10220. - name: "id"
  10221. in: "path"
  10222. description: "ID or name of service."
  10223. required: true
  10224. type: "string"
  10225. - name: "body"
  10226. in: "body"
  10227. required: true
  10228. schema:
  10229. allOf:
  10230. - $ref: "#/definitions/ServiceSpec"
  10231. - type: "object"
  10232. example:
  10233. Name: "top"
  10234. TaskTemplate:
  10235. ContainerSpec:
  10236. Image: "busybox"
  10237. Args:
  10238. - "top"
  10239. Resources:
  10240. Limits: {}
  10241. Reservations: {}
  10242. RestartPolicy:
  10243. Condition: "any"
  10244. MaxAttempts: 0
  10245. Placement: {}
  10246. ForceUpdate: 0
  10247. Mode:
  10248. Replicated:
  10249. Replicas: 1
  10250. UpdateConfig:
  10251. Parallelism: 2
  10252. Delay: 1000000000
  10253. FailureAction: "pause"
  10254. Monitor: 15000000000
  10255. MaxFailureRatio: 0.15
  10256. RollbackConfig:
  10257. Parallelism: 1
  10258. Delay: 1000000000
  10259. FailureAction: "pause"
  10260. Monitor: 15000000000
  10261. MaxFailureRatio: 0.15
  10262. EndpointSpec:
  10263. Mode: "vip"
  10264. - name: "version"
  10265. in: "query"
  10266. description: |
  10267. The version number of the service object being updated. This is
  10268. required to avoid conflicting writes.
  10269. This version number should be the value as currently set on the
  10270. service *before* the update. You can find the current version by
  10271. calling `GET /services/{id}`
  10272. required: true
  10273. type: "integer"
  10274. - name: "registryAuthFrom"
  10275. in: "query"
  10276. description: |
  10277. If the `X-Registry-Auth` header is not specified, this parameter
  10278. indicates where to find registry authorization credentials.
  10279. type: "string"
  10280. enum: ["spec", "previous-spec"]
  10281. default: "spec"
  10282. - name: "rollback"
  10283. in: "query"
  10284. description: |
  10285. Set to this parameter to `previous` to cause a server-side rollback
  10286. to the previous service spec. The supplied spec will be ignored in
  10287. this case.
  10288. type: "string"
  10289. - name: "X-Registry-Auth"
  10290. in: "header"
  10291. description: |
  10292. A base64url-encoded auth configuration for pulling from private
  10293. registries.
  10294. Refer to the [authentication section](#section/Authentication) for
  10295. details.
  10296. type: "string"
  10297. tags: ["Service"]
  10298. /services/{id}/logs:
  10299. get:
  10300. summary: "Get service logs"
  10301. description: |
  10302. Get `stdout` and `stderr` logs from a service. See also
  10303. [`/containers/{id}/logs`](#operation/ContainerLogs).
  10304. **Note**: This endpoint works only for services with the `local`,
  10305. `json-file` or `journald` logging drivers.
  10306. operationId: "ServiceLogs"
  10307. responses:
  10308. 200:
  10309. description: "logs returned as a stream in response body"
  10310. schema:
  10311. type: "string"
  10312. format: "binary"
  10313. 404:
  10314. description: "no such service"
  10315. schema:
  10316. $ref: "#/definitions/ErrorResponse"
  10317. examples:
  10318. application/json:
  10319. message: "No such service: c2ada9df5af8"
  10320. 500:
  10321. description: "server error"
  10322. schema:
  10323. $ref: "#/definitions/ErrorResponse"
  10324. 503:
  10325. description: "node is not part of a swarm"
  10326. schema:
  10327. $ref: "#/definitions/ErrorResponse"
  10328. parameters:
  10329. - name: "id"
  10330. in: "path"
  10331. required: true
  10332. description: "ID or name of the service"
  10333. type: "string"
  10334. - name: "details"
  10335. in: "query"
  10336. description: "Show service context and extra details provided to logs."
  10337. type: "boolean"
  10338. default: false
  10339. - name: "follow"
  10340. in: "query"
  10341. description: "Keep connection after returning logs."
  10342. type: "boolean"
  10343. default: false
  10344. - name: "stdout"
  10345. in: "query"
  10346. description: "Return logs from `stdout`"
  10347. type: "boolean"
  10348. default: false
  10349. - name: "stderr"
  10350. in: "query"
  10351. description: "Return logs from `stderr`"
  10352. type: "boolean"
  10353. default: false
  10354. - name: "since"
  10355. in: "query"
  10356. description: "Only return logs since this time, as a UNIX timestamp"
  10357. type: "integer"
  10358. default: 0
  10359. - name: "timestamps"
  10360. in: "query"
  10361. description: "Add timestamps to every log line"
  10362. type: "boolean"
  10363. default: false
  10364. - name: "tail"
  10365. in: "query"
  10366. description: |
  10367. Only return this number of log lines from the end of the logs.
  10368. Specify as an integer or `all` to output all log lines.
  10369. type: "string"
  10370. default: "all"
  10371. tags: ["Service"]
  10372. /tasks:
  10373. get:
  10374. summary: "List tasks"
  10375. operationId: "TaskList"
  10376. produces:
  10377. - "application/json"
  10378. responses:
  10379. 200:
  10380. description: "no error"
  10381. schema:
  10382. type: "array"
  10383. items:
  10384. $ref: "#/definitions/Task"
  10385. example:
  10386. - ID: "0kzzo1i0y4jz6027t0k7aezc7"
  10387. Version:
  10388. Index: 71
  10389. CreatedAt: "2016-06-07T21:07:31.171892745Z"
  10390. UpdatedAt: "2016-06-07T21:07:31.376370513Z"
  10391. Spec:
  10392. ContainerSpec:
  10393. Image: "redis"
  10394. Resources:
  10395. Limits: {}
  10396. Reservations: {}
  10397. RestartPolicy:
  10398. Condition: "any"
  10399. MaxAttempts: 0
  10400. Placement: {}
  10401. ServiceID: "9mnpnzenvg8p8tdbtq4wvbkcz"
  10402. Slot: 1
  10403. NodeID: "60gvrl6tm78dmak4yl7srz94v"
  10404. Status:
  10405. Timestamp: "2016-06-07T21:07:31.290032978Z"
  10406. State: "running"
  10407. Message: "started"
  10408. ContainerStatus:
  10409. ContainerID: "e5d62702a1b48d01c3e02ca1e0212a250801fa8d67caca0b6f35919ebc12f035"
  10410. PID: 677
  10411. DesiredState: "running"
  10412. NetworksAttachments:
  10413. - Network:
  10414. ID: "4qvuz4ko70xaltuqbt8956gd1"
  10415. Version:
  10416. Index: 18
  10417. CreatedAt: "2016-06-07T20:31:11.912919752Z"
  10418. UpdatedAt: "2016-06-07T21:07:29.955277358Z"
  10419. Spec:
  10420. Name: "ingress"
  10421. Labels:
  10422. com.docker.swarm.internal: "true"
  10423. DriverConfiguration: {}
  10424. IPAMOptions:
  10425. Driver: {}
  10426. Configs:
  10427. - Subnet: "10.255.0.0/16"
  10428. Gateway: "10.255.0.1"
  10429. DriverState:
  10430. Name: "overlay"
  10431. Options:
  10432. com.docker.network.driver.overlay.vxlanid_list: "256"
  10433. IPAMOptions:
  10434. Driver:
  10435. Name: "default"
  10436. Configs:
  10437. - Subnet: "10.255.0.0/16"
  10438. Gateway: "10.255.0.1"
  10439. Addresses:
  10440. - "10.255.0.10/16"
  10441. - ID: "1yljwbmlr8er2waf8orvqpwms"
  10442. Version:
  10443. Index: 30
  10444. CreatedAt: "2016-06-07T21:07:30.019104782Z"
  10445. UpdatedAt: "2016-06-07T21:07:30.231958098Z"
  10446. Name: "hopeful_cori"
  10447. Spec:
  10448. ContainerSpec:
  10449. Image: "redis"
  10450. Resources:
  10451. Limits: {}
  10452. Reservations: {}
  10453. RestartPolicy:
  10454. Condition: "any"
  10455. MaxAttempts: 0
  10456. Placement: {}
  10457. ServiceID: "9mnpnzenvg8p8tdbtq4wvbkcz"
  10458. Slot: 1
  10459. NodeID: "60gvrl6tm78dmak4yl7srz94v"
  10460. Status:
  10461. Timestamp: "2016-06-07T21:07:30.202183143Z"
  10462. State: "shutdown"
  10463. Message: "shutdown"
  10464. ContainerStatus:
  10465. ContainerID: "1cf8d63d18e79668b0004a4be4c6ee58cddfad2dae29506d8781581d0688a213"
  10466. DesiredState: "shutdown"
  10467. NetworksAttachments:
  10468. - Network:
  10469. ID: "4qvuz4ko70xaltuqbt8956gd1"
  10470. Version:
  10471. Index: 18
  10472. CreatedAt: "2016-06-07T20:31:11.912919752Z"
  10473. UpdatedAt: "2016-06-07T21:07:29.955277358Z"
  10474. Spec:
  10475. Name: "ingress"
  10476. Labels:
  10477. com.docker.swarm.internal: "true"
  10478. DriverConfiguration: {}
  10479. IPAMOptions:
  10480. Driver: {}
  10481. Configs:
  10482. - Subnet: "10.255.0.0/16"
  10483. Gateway: "10.255.0.1"
  10484. DriverState:
  10485. Name: "overlay"
  10486. Options:
  10487. com.docker.network.driver.overlay.vxlanid_list: "256"
  10488. IPAMOptions:
  10489. Driver:
  10490. Name: "default"
  10491. Configs:
  10492. - Subnet: "10.255.0.0/16"
  10493. Gateway: "10.255.0.1"
  10494. Addresses:
  10495. - "10.255.0.5/16"
  10496. 500:
  10497. description: "server error"
  10498. schema:
  10499. $ref: "#/definitions/ErrorResponse"
  10500. 503:
  10501. description: "node is not part of a swarm"
  10502. schema:
  10503. $ref: "#/definitions/ErrorResponse"
  10504. parameters:
  10505. - name: "filters"
  10506. in: "query"
  10507. type: "string"
  10508. description: |
  10509. A JSON encoded value of the filters (a `map[string][]string`) to
  10510. process on the tasks list.
  10511. Available filters:
  10512. - `desired-state=(running | shutdown | accepted)`
  10513. - `id=<task id>`
  10514. - `label=key` or `label="key=value"`
  10515. - `name=<task name>`
  10516. - `node=<node id or name>`
  10517. - `service=<service name>`
  10518. tags: ["Task"]
  10519. /tasks/{id}:
  10520. get:
  10521. summary: "Inspect a task"
  10522. operationId: "TaskInspect"
  10523. produces:
  10524. - "application/json"
  10525. responses:
  10526. 200:
  10527. description: "no error"
  10528. schema:
  10529. $ref: "#/definitions/Task"
  10530. 404:
  10531. description: "no such task"
  10532. schema:
  10533. $ref: "#/definitions/ErrorResponse"
  10534. 500:
  10535. description: "server error"
  10536. schema:
  10537. $ref: "#/definitions/ErrorResponse"
  10538. 503:
  10539. description: "node is not part of a swarm"
  10540. schema:
  10541. $ref: "#/definitions/ErrorResponse"
  10542. parameters:
  10543. - name: "id"
  10544. in: "path"
  10545. description: "ID of the task"
  10546. required: true
  10547. type: "string"
  10548. tags: ["Task"]
  10549. /tasks/{id}/logs:
  10550. get:
  10551. summary: "Get task logs"
  10552. description: |
  10553. Get `stdout` and `stderr` logs from a task.
  10554. See also [`/containers/{id}/logs`](#operation/ContainerLogs).
  10555. **Note**: This endpoint works only for services with the `local`,
  10556. `json-file` or `journald` logging drivers.
  10557. operationId: "TaskLogs"
  10558. responses:
  10559. 200:
  10560. description: "logs returned as a stream in response body"
  10561. schema:
  10562. type: "string"
  10563. format: "binary"
  10564. 404:
  10565. description: "no such task"
  10566. schema:
  10567. $ref: "#/definitions/ErrorResponse"
  10568. examples:
  10569. application/json:
  10570. message: "No such task: c2ada9df5af8"
  10571. 500:
  10572. description: "server error"
  10573. schema:
  10574. $ref: "#/definitions/ErrorResponse"
  10575. 503:
  10576. description: "node is not part of a swarm"
  10577. schema:
  10578. $ref: "#/definitions/ErrorResponse"
  10579. parameters:
  10580. - name: "id"
  10581. in: "path"
  10582. required: true
  10583. description: "ID of the task"
  10584. type: "string"
  10585. - name: "details"
  10586. in: "query"
  10587. description: "Show task context and extra details provided to logs."
  10588. type: "boolean"
  10589. default: false
  10590. - name: "follow"
  10591. in: "query"
  10592. description: "Keep connection after returning logs."
  10593. type: "boolean"
  10594. default: false
  10595. - name: "stdout"
  10596. in: "query"
  10597. description: "Return logs from `stdout`"
  10598. type: "boolean"
  10599. default: false
  10600. - name: "stderr"
  10601. in: "query"
  10602. description: "Return logs from `stderr`"
  10603. type: "boolean"
  10604. default: false
  10605. - name: "since"
  10606. in: "query"
  10607. description: "Only return logs since this time, as a UNIX timestamp"
  10608. type: "integer"
  10609. default: 0
  10610. - name: "timestamps"
  10611. in: "query"
  10612. description: "Add timestamps to every log line"
  10613. type: "boolean"
  10614. default: false
  10615. - name: "tail"
  10616. in: "query"
  10617. description: |
  10618. Only return this number of log lines from the end of the logs.
  10619. Specify as an integer or `all` to output all log lines.
  10620. type: "string"
  10621. default: "all"
  10622. tags: ["Task"]
  10623. /secrets:
  10624. get:
  10625. summary: "List secrets"
  10626. operationId: "SecretList"
  10627. produces:
  10628. - "application/json"
  10629. responses:
  10630. 200:
  10631. description: "no error"
  10632. schema:
  10633. type: "array"
  10634. items:
  10635. $ref: "#/definitions/Secret"
  10636. example:
  10637. - ID: "blt1owaxmitz71s9v5zh81zun"
  10638. Version:
  10639. Index: 85
  10640. CreatedAt: "2017-07-20T13:55:28.678958722Z"
  10641. UpdatedAt: "2017-07-20T13:55:28.678958722Z"
  10642. Spec:
  10643. Name: "mysql-passwd"
  10644. Labels:
  10645. some.label: "some.value"
  10646. Driver:
  10647. Name: "secret-bucket"
  10648. Options:
  10649. OptionA: "value for driver option A"
  10650. OptionB: "value for driver option B"
  10651. - ID: "ktnbjxoalbkvbvedmg1urrz8h"
  10652. Version:
  10653. Index: 11
  10654. CreatedAt: "2016-11-05T01:20:17.327670065Z"
  10655. UpdatedAt: "2016-11-05T01:20:17.327670065Z"
  10656. Spec:
  10657. Name: "app-dev.crt"
  10658. Labels:
  10659. foo: "bar"
  10660. 500:
  10661. description: "server error"
  10662. schema:
  10663. $ref: "#/definitions/ErrorResponse"
  10664. 503:
  10665. description: "node is not part of a swarm"
  10666. schema:
  10667. $ref: "#/definitions/ErrorResponse"
  10668. parameters:
  10669. - name: "filters"
  10670. in: "query"
  10671. type: "string"
  10672. description: |
  10673. A JSON encoded value of the filters (a `map[string][]string`) to
  10674. process on the secrets list.
  10675. Available filters:
  10676. - `id=<secret id>`
  10677. - `label=<key> or label=<key>=value`
  10678. - `name=<secret name>`
  10679. - `names=<secret name>`
  10680. tags: ["Secret"]
  10681. /secrets/create:
  10682. post:
  10683. summary: "Create a secret"
  10684. operationId: "SecretCreate"
  10685. consumes:
  10686. - "application/json"
  10687. produces:
  10688. - "application/json"
  10689. responses:
  10690. 201:
  10691. description: "no error"
  10692. schema:
  10693. $ref: "#/definitions/IdResponse"
  10694. 409:
  10695. description: "name conflicts with an existing object"
  10696. schema:
  10697. $ref: "#/definitions/ErrorResponse"
  10698. 500:
  10699. description: "server error"
  10700. schema:
  10701. $ref: "#/definitions/ErrorResponse"
  10702. 503:
  10703. description: "node is not part of a swarm"
  10704. schema:
  10705. $ref: "#/definitions/ErrorResponse"
  10706. parameters:
  10707. - name: "body"
  10708. in: "body"
  10709. schema:
  10710. allOf:
  10711. - $ref: "#/definitions/SecretSpec"
  10712. - type: "object"
  10713. example:
  10714. Name: "app-key.crt"
  10715. Labels:
  10716. foo: "bar"
  10717. Data: "VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg=="
  10718. Driver:
  10719. Name: "secret-bucket"
  10720. Options:
  10721. OptionA: "value for driver option A"
  10722. OptionB: "value for driver option B"
  10723. tags: ["Secret"]
  10724. /secrets/{id}:
  10725. get:
  10726. summary: "Inspect a secret"
  10727. operationId: "SecretInspect"
  10728. produces:
  10729. - "application/json"
  10730. responses:
  10731. 200:
  10732. description: "no error"
  10733. schema:
  10734. $ref: "#/definitions/Secret"
  10735. examples:
  10736. application/json:
  10737. ID: "ktnbjxoalbkvbvedmg1urrz8h"
  10738. Version:
  10739. Index: 11
  10740. CreatedAt: "2016-11-05T01:20:17.327670065Z"
  10741. UpdatedAt: "2016-11-05T01:20:17.327670065Z"
  10742. Spec:
  10743. Name: "app-dev.crt"
  10744. Labels:
  10745. foo: "bar"
  10746. Driver:
  10747. Name: "secret-bucket"
  10748. Options:
  10749. OptionA: "value for driver option A"
  10750. OptionB: "value for driver option B"
  10751. 404:
  10752. description: "secret not found"
  10753. schema:
  10754. $ref: "#/definitions/ErrorResponse"
  10755. 500:
  10756. description: "server error"
  10757. schema:
  10758. $ref: "#/definitions/ErrorResponse"
  10759. 503:
  10760. description: "node is not part of a swarm"
  10761. schema:
  10762. $ref: "#/definitions/ErrorResponse"
  10763. parameters:
  10764. - name: "id"
  10765. in: "path"
  10766. required: true
  10767. type: "string"
  10768. description: "ID of the secret"
  10769. tags: ["Secret"]
  10770. delete:
  10771. summary: "Delete a secret"
  10772. operationId: "SecretDelete"
  10773. produces:
  10774. - "application/json"
  10775. responses:
  10776. 204:
  10777. description: "no error"
  10778. 404:
  10779. description: "secret not found"
  10780. schema:
  10781. $ref: "#/definitions/ErrorResponse"
  10782. 500:
  10783. description: "server error"
  10784. schema:
  10785. $ref: "#/definitions/ErrorResponse"
  10786. 503:
  10787. description: "node is not part of a swarm"
  10788. schema:
  10789. $ref: "#/definitions/ErrorResponse"
  10790. parameters:
  10791. - name: "id"
  10792. in: "path"
  10793. required: true
  10794. type: "string"
  10795. description: "ID of the secret"
  10796. tags: ["Secret"]
  10797. /secrets/{id}/update:
  10798. post:
  10799. summary: "Update a Secret"
  10800. operationId: "SecretUpdate"
  10801. responses:
  10802. 200:
  10803. description: "no error"
  10804. 400:
  10805. description: "bad parameter"
  10806. schema:
  10807. $ref: "#/definitions/ErrorResponse"
  10808. 404:
  10809. description: "no such secret"
  10810. schema:
  10811. $ref: "#/definitions/ErrorResponse"
  10812. 500:
  10813. description: "server error"
  10814. schema:
  10815. $ref: "#/definitions/ErrorResponse"
  10816. 503:
  10817. description: "node is not part of a swarm"
  10818. schema:
  10819. $ref: "#/definitions/ErrorResponse"
  10820. parameters:
  10821. - name: "id"
  10822. in: "path"
  10823. description: "The ID or name of the secret"
  10824. type: "string"
  10825. required: true
  10826. - name: "body"
  10827. in: "body"
  10828. schema:
  10829. $ref: "#/definitions/SecretSpec"
  10830. description: |
  10831. The spec of the secret to update. Currently, only the Labels field
  10832. can be updated. All other fields must remain unchanged from the
  10833. [SecretInspect endpoint](#operation/SecretInspect) response values.
  10834. - name: "version"
  10835. in: "query"
  10836. description: |
  10837. The version number of the secret object being updated. This is
  10838. required to avoid conflicting writes.
  10839. type: "integer"
  10840. format: "int64"
  10841. required: true
  10842. tags: ["Secret"]
  10843. /configs:
  10844. get:
  10845. summary: "List configs"
  10846. operationId: "ConfigList"
  10847. produces:
  10848. - "application/json"
  10849. responses:
  10850. 200:
  10851. description: "no error"
  10852. schema:
  10853. type: "array"
  10854. items:
  10855. $ref: "#/definitions/Config"
  10856. example:
  10857. - ID: "ktnbjxoalbkvbvedmg1urrz8h"
  10858. Version:
  10859. Index: 11
  10860. CreatedAt: "2016-11-05T01:20:17.327670065Z"
  10861. UpdatedAt: "2016-11-05T01:20:17.327670065Z"
  10862. Spec:
  10863. Name: "server.conf"
  10864. 500:
  10865. description: "server error"
  10866. schema:
  10867. $ref: "#/definitions/ErrorResponse"
  10868. 503:
  10869. description: "node is not part of a swarm"
  10870. schema:
  10871. $ref: "#/definitions/ErrorResponse"
  10872. parameters:
  10873. - name: "filters"
  10874. in: "query"
  10875. type: "string"
  10876. description: |
  10877. A JSON encoded value of the filters (a `map[string][]string`) to
  10878. process on the configs list.
  10879. Available filters:
  10880. - `id=<config id>`
  10881. - `label=<key> or label=<key>=value`
  10882. - `name=<config name>`
  10883. - `names=<config name>`
  10884. tags: ["Config"]
  10885. /configs/create:
  10886. post:
  10887. summary: "Create a config"
  10888. operationId: "ConfigCreate"
  10889. consumes:
  10890. - "application/json"
  10891. produces:
  10892. - "application/json"
  10893. responses:
  10894. 201:
  10895. description: "no error"
  10896. schema:
  10897. $ref: "#/definitions/IdResponse"
  10898. 409:
  10899. description: "name conflicts with an existing object"
  10900. schema:
  10901. $ref: "#/definitions/ErrorResponse"
  10902. 500:
  10903. description: "server error"
  10904. schema:
  10905. $ref: "#/definitions/ErrorResponse"
  10906. 503:
  10907. description: "node is not part of a swarm"
  10908. schema:
  10909. $ref: "#/definitions/ErrorResponse"
  10910. parameters:
  10911. - name: "body"
  10912. in: "body"
  10913. schema:
  10914. allOf:
  10915. - $ref: "#/definitions/ConfigSpec"
  10916. - type: "object"
  10917. example:
  10918. Name: "server.conf"
  10919. Labels:
  10920. foo: "bar"
  10921. Data: "VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg=="
  10922. tags: ["Config"]
  10923. /configs/{id}:
  10924. get:
  10925. summary: "Inspect a config"
  10926. operationId: "ConfigInspect"
  10927. produces:
  10928. - "application/json"
  10929. responses:
  10930. 200:
  10931. description: "no error"
  10932. schema:
  10933. $ref: "#/definitions/Config"
  10934. examples:
  10935. application/json:
  10936. ID: "ktnbjxoalbkvbvedmg1urrz8h"
  10937. Version:
  10938. Index: 11
  10939. CreatedAt: "2016-11-05T01:20:17.327670065Z"
  10940. UpdatedAt: "2016-11-05T01:20:17.327670065Z"
  10941. Spec:
  10942. Name: "app-dev.crt"
  10943. 404:
  10944. description: "config not found"
  10945. schema:
  10946. $ref: "#/definitions/ErrorResponse"
  10947. 500:
  10948. description: "server error"
  10949. schema:
  10950. $ref: "#/definitions/ErrorResponse"
  10951. 503:
  10952. description: "node is not part of a swarm"
  10953. schema:
  10954. $ref: "#/definitions/ErrorResponse"
  10955. parameters:
  10956. - name: "id"
  10957. in: "path"
  10958. required: true
  10959. type: "string"
  10960. description: "ID of the config"
  10961. tags: ["Config"]
  10962. delete:
  10963. summary: "Delete a config"
  10964. operationId: "ConfigDelete"
  10965. produces:
  10966. - "application/json"
  10967. responses:
  10968. 204:
  10969. description: "no error"
  10970. 404:
  10971. description: "config not found"
  10972. schema:
  10973. $ref: "#/definitions/ErrorResponse"
  10974. 500:
  10975. description: "server error"
  10976. schema:
  10977. $ref: "#/definitions/ErrorResponse"
  10978. 503:
  10979. description: "node is not part of a swarm"
  10980. schema:
  10981. $ref: "#/definitions/ErrorResponse"
  10982. parameters:
  10983. - name: "id"
  10984. in: "path"
  10985. required: true
  10986. type: "string"
  10987. description: "ID of the config"
  10988. tags: ["Config"]
  10989. /configs/{id}/update:
  10990. post:
  10991. summary: "Update a Config"
  10992. operationId: "ConfigUpdate"
  10993. responses:
  10994. 200:
  10995. description: "no error"
  10996. 400:
  10997. description: "bad parameter"
  10998. schema:
  10999. $ref: "#/definitions/ErrorResponse"
  11000. 404:
  11001. description: "no such config"
  11002. schema:
  11003. $ref: "#/definitions/ErrorResponse"
  11004. 500:
  11005. description: "server error"
  11006. schema:
  11007. $ref: "#/definitions/ErrorResponse"
  11008. 503:
  11009. description: "node is not part of a swarm"
  11010. schema:
  11011. $ref: "#/definitions/ErrorResponse"
  11012. parameters:
  11013. - name: "id"
  11014. in: "path"
  11015. description: "The ID or name of the config"
  11016. type: "string"
  11017. required: true
  11018. - name: "body"
  11019. in: "body"
  11020. schema:
  11021. $ref: "#/definitions/ConfigSpec"
  11022. description: |
  11023. The spec of the config to update. Currently, only the Labels field
  11024. can be updated. All other fields must remain unchanged from the
  11025. [ConfigInspect endpoint](#operation/ConfigInspect) response values.
  11026. - name: "version"
  11027. in: "query"
  11028. description: |
  11029. The version number of the config object being updated. This is
  11030. required to avoid conflicting writes.
  11031. type: "integer"
  11032. format: "int64"
  11033. required: true
  11034. tags: ["Config"]
  11035. /distribution/{name}/json:
  11036. get:
  11037. summary: "Get image information from the registry"
  11038. description: |
  11039. Return image digest and platform information by contacting the registry.
  11040. operationId: "DistributionInspect"
  11041. produces:
  11042. - "application/json"
  11043. responses:
  11044. 200:
  11045. description: "descriptor and platform information"
  11046. schema:
  11047. $ref: "#/definitions/DistributionInspect"
  11048. 401:
  11049. description: "Failed authentication or no image found"
  11050. schema:
  11051. $ref: "#/definitions/ErrorResponse"
  11052. examples:
  11053. application/json:
  11054. message: "No such image: someimage (tag: latest)"
  11055. 500:
  11056. description: "Server error"
  11057. schema:
  11058. $ref: "#/definitions/ErrorResponse"
  11059. parameters:
  11060. - name: "name"
  11061. in: "path"
  11062. description: "Image name or id"
  11063. type: "string"
  11064. required: true
  11065. tags: ["Distribution"]
  11066. /session:
  11067. post:
  11068. summary: "Initialize interactive session"
  11069. description: |
  11070. Start a new interactive session with a server. Session allows server to
  11071. call back to the client for advanced capabilities.
  11072. ### Hijacking
  11073. This endpoint hijacks the HTTP connection to HTTP2 transport that allows
  11074. the client to expose gPRC services on that connection.
  11075. For example, the client sends this request to upgrade the connection:
  11076. ```
  11077. POST /session HTTP/1.1
  11078. Upgrade: h2c
  11079. Connection: Upgrade
  11080. ```
  11081. The Docker daemon responds with a `101 UPGRADED` response follow with
  11082. the raw stream:
  11083. ```
  11084. HTTP/1.1 101 UPGRADED
  11085. Connection: Upgrade
  11086. Upgrade: h2c
  11087. ```
  11088. operationId: "Session"
  11089. produces:
  11090. - "application/vnd.docker.raw-stream"
  11091. responses:
  11092. 101:
  11093. description: "no error, hijacking successful"
  11094. 400:
  11095. description: "bad parameter"
  11096. schema:
  11097. $ref: "#/definitions/ErrorResponse"
  11098. 500:
  11099. description: "server error"
  11100. schema:
  11101. $ref: "#/definitions/ErrorResponse"
  11102. tags: ["Session"]