v1.36.yaml 337 KB

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