v1.35.yaml 337 KB

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