v1.37.yaml 340 KB

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