v1.32.yaml 334 KB

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