v1.38.yaml 341 KB

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