1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602
|
---
swagger: "2.0"
schemes:
- "http"
- "https"
produces:
- "application/json"
- "text/plain"
consumes:
- "application/json"
- "text/plain"
basePath: "/v1.24"
info:
title: "Pouch Engine API"
version: "1.24"
description: |
API is an HTTP API served by Pouch Engine.
produces:
- "application/json"
paths:
/_ping:
get:
summary: ""
description: ""
responses:
200:
description: "no error"
schema:
type: "string"
example: "OK"
500:
$ref: "#/responses/500ErrorResponse"
/version:
get:
summary: "Get Pouchd version"
description: ""
responses:
200:
schema:
$ref: '#/definitions/SystemVersion'
description: "no error"
500:
$ref: "#/responses/500ErrorResponse"
/info:
get:
summary: "Get System information"
description: ""
responses:
200:
schema:
$ref: '#/definitions/SystemInfo'
description: "no error"
500:
$ref: "#/responses/500ErrorResponse"
/auth:
post:
summary: "Check auth configuration"
description: "Validate credentials for a registry and, if available, get an identity token for accessing the registry without password."
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "An identity token was generated successfully."
schema:
$ref: "#/definitions/AuthResponse"
401:
description: "Login unauthorized"
schema:
$ref: "#/responses/401ErrorResponse"
500:
description: "Server error"
schema:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "authConfig"
in: "body"
description: "Authentication to check"
schema:
$ref: "#/definitions/AuthConfig"
/daemon/update:
post:
summary: "Update daemon's labels and image proxy"
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "no error"
400:
description: "bad parameter"
schema:
$ref: '#/definitions/Error'
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "DaemonUpdateConfig"
in: body
description: "Config used to update daemon, only labels and image proxy are allowed."
schema:
$ref: "#/definitions/DaemonUpdateConfig"
/images/create:
post:
summary: "Create an image by pulling from a registry or importing from an existing source file"
consumes:
- "text/plain"
- "application/octet-stream"
produces:
- "application/json"
responses:
200:
description: "no error"
404:
schema:
$ref: '#/definitions/Error'
description: "image not found"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "fromImage"
in: "query"
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."
type: "string"
- name: "fromSrc"
in: "query"
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."
type: "string"
- name: "repo"
in: "query"
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."
type: "string"
- name: "tag"
in: "query"
description: "Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled."
type: "string"
- name: "inputImage"
in: "body"
description: "Image content if the value `-` has been specified in fromSrc query parameter"
schema:
type: "string"
required: false
- name: "X-Registry-Auth"
in: "header"
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
type: "string"
/images/load:
post:
summary: "Import images"
description: |
Load a set of images by oci.v1 format tar stream
consumes:
- application/x-tar
responses:
200:
description: "no error"
500:
description: "server error"
schema:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "imageTarStream"
in: "body"
description: "tar stream containing images"
schema:
type: "string"
format: "binary"
- name: "name"
in: "query"
description: "set the image name for the tar stream, default unknown/unknown"
type: "string"
/images/{imageid}/json:
get:
summary: "Inspect a image"
description: "Return the information about image"
operationId: "ImageInspect"
produces:
- "application/json"
responses:
200:
description: "no error"
schema:
$ref: "#/definitions/ImageInfo"
examples:
application/json:
CreatedAt: "2017-12-19 15:32:09"
Digest: "sha256:e216a057b1cb1efc11f8a268f37ef62083e70b1b38323ba252e25ac88904a7e8"
ID: "e216a057b1cb"
Name: "ubuntu:12.04"
Size: 103579269
Tag: "12.04"
404:
description: "no such image"
schema:
$ref: "#/definitions/Error"
examples:
application/json:
message: "No such image: e216a057b1cb"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/imageid"
/images/json:
get:
summary: "List Images"
description: "Return a list of stored images."
operationId: "ImageList"
produces:
- "application/json"
responses:
200:
description: "Summary image data for the images matching the query"
schema:
type: "array"
items:
$ref: "#/definitions/ImageInfo"
examples:
application/json:
- Id: "sha256:e216a057b1cb1efc11f8a268f37ef62083e70b1b38323ba252e25ac88904a7e8"
ParentId: ""
RepoTags:
- "ubuntu:12.04"
- "ubuntu:precise"
RepoDigests:
- "ubuntu@sha256:992069aee4016783df6345315302fa59681aae51a8eeb2f889dea59290f21787"
Created: 1474925151
Size: 103579269
VirtualSize: 103579269
SharedSize: 0
Labels: {}
Containers: 2
- Id: "sha256:3e314f95dcace0f5e4fd37b10862fe8398e3c60ed36600bc0ca5fda78b087175"
ParentId: ""
RepoTags:
- "ubuntu:12.10"
- "ubuntu:quantal"
RepoDigests:
- "ubuntu@sha256:002fba3e3255af10be97ea26e476692a7ebed0bb074a9ab960b2e7a1526b15d7"
- "ubuntu@sha256:68ea0200f0b90df725d99d823905b04cf844f6039ef60c60bf3e019915017bd3"
Created: 1403128455
Size: 172064416
VirtualSize: 172064416
SharedSize: 0
Labels: {}
Containers: 5
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "all"
in: "query"
description: "Show all images. Only images from a final layer (no children) are shown by default."
type: "boolean"
- name: "filters"
in: "query"
description: |
A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters:
- `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
- `dangling=true`
- `label=key` or `label="key=value"` of an image label
- `reference`=(`<image-name>[:<tag>]`)
- `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
type: "string"
- name: "digests"
in: "query"
description: "Show digest information as a `RepoDigests` field on each image."
type: "boolean"
/images/search:
get:
summary: "Search images"
produces:
- "application/json"
responses:
200:
description: "No error"
schema:
type: "array"
items:
$ref: "#/definitions/SearchResultItem"
500:
$ref: "#/responses/500ErrorResponse"
/images/{imageid}/tag:
post:
summary: "Tag an image"
description: "Add tag reference to the existing image"
parameters:
- $ref: "#/parameters/imageid"
- name: "repo"
in: "query"
description: "The repository to tag in. For example, `someuser/someimage`."
type: "string"
- name: "tag"
in: "query"
description: "The name of the new tag."
type: "string"
responses:
201:
description: "No error"
400:
description: "Bad parameter"
schema:
$ref: "#/definitions/Error"
404:
description: "no such image"
schema:
$ref: "#/definitions/Error"
500:
$ref: "#/responses/500ErrorResponse"
/images/{imageid}:
delete:
summary: "Remove an image"
description: "Remove an image by reference."
parameters:
- $ref: "#/parameters/imageid"
- name: "force"
in: "query"
description: "Remove the image even if it is being used"
type: "boolean"
default: false
responses:
204:
description: "No error"
404:
description: "no such image"
schema:
$ref: "#/definitions/Error"
examples:
application/json:
message: "No such image: c2ada9df5af8"
500:
$ref: "#/responses/500ErrorResponse"
/containers/create:
post:
summary: "Create a container"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- name: "name"
in: "query"
description: "Assign the specified name to the container. Must match `/?[a-zA-Z0-9_-]+`."
type: "string"
pattern: "/?[a-zA-Z0-9_-]+"
- name: "body"
in: "body"
description: "Container to create"
schema:
$ref: "#/definitions/ContainerCreateConfig"
required: true
responses:
201:
description: "Container created successfully"
schema:
$ref: "#/definitions/ContainerCreateResp"
examples:
application/json:
Id: "e90e34656806"
Warnings: []
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
description: "no such image"
schema:
$ref: "#/definitions/Error"
examples:
application/json:
message: "image: xxx:latest: not found"
409:
description: "conflict"
schema:
$ref: "#/definitions/Error"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/json:
get:
summary: "Inspect a container"
description: "Return low-level information about a container."
operationId: "ContainerInspect"
produces:
- "application/json"
responses:
200:
description: "no error"
schema:
$ref: "#/definitions/ContainerJSON"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
- name: "size"
in: "query"
type: "boolean"
description: "Return the size of container as fields `SizeRw` and `SizeRootFs`"
tags: ["Container"]
/containers/json:
get:
summary: "List containers"
operationId: "ContainerList"
produces: ["application/json"]
responses:
200:
description: "Summary containers that matches the query"
schema:
type: "array"
items:
$ref: "#/definitions/Container"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "all"
in: "query"
description: "Return all containers. By default, only running containers are shown"
type: "boolean"
default: false
/containers/{id}/rename:
post:
summary: "Rename a container"
operationId: "ContainerRename"
parameters:
- $ref: "#/parameters/id"
- name: "name"
in: "query"
required: true
description: "New name for the container"
type: "string"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
409:
description: "name already in use"
schema:
$ref: "#/definitions/Error"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/restart:
post:
summary: "Restart a container"
operationId: "ContainerRestart"
parameters:
- $ref: "#/parameters/id"
- name: "name"
in: "query"
required: true
description: "New name for the container"
type: "string"
- name: "t"
in: "query"
description: "Number of seconds to wait before killing the container"
type: "integer"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/start:
post:
summary: "Start a container"
operationId: "ContainerStart"
parameters:
- $ref: "#/parameters/id"
- name: "detachKeys"
in: "query"
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 `_`."
type: "string"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/stop:
post:
summary: "Stop a container"
operationId: "ContainerStop"
parameters:
- $ref: "#/parameters/id"
- name: "t"
in: "query"
description: "Number of seconds to wait before killing the container"
type: "integer"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/pause:
post:
summary: "Pause a container"
operationId: "ContainerPause"
parameters:
- $ref: "#/parameters/id"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/unpause:
post:
summary: "Unpause a container"
operationId: "ContainerUnpause"
parameters:
- $ref: "#/parameters/id"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/top:
post:
summary: "Display the running processes of a container"
operationId: "ContainerTop"
parameters:
- $ref: "#/parameters/id"
- name: "ps_args"
in: "query"
description: "top arguments"
type: "string"
responses:
200:
description: "no error"
schema:
$ref: "#/definitions/ContainerProcessList"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/wait:
post:
summary: "Block until a container stops, then returns the exit code."
operationId: "ContainerWait"
parameters:
- $ref: "#/parameters/id"
responses:
200:
description: "The container has exited."
schema:
type: "object"
required: [StatusCode]
properties:
StatusCode:
description: "Exit code of the container"
type: "integer"
x-nullable: false
Error:
description: "The error message of waiting container"
type: "string"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}:
delete:
summary: "Remove one container"
operationId: "ContainerRemove"
parameters:
- $ref: "#/parameters/id"
- name: "force"
in: "query"
description: "If the container is running, force query is used to kill it and remove it forcefully."
type: "boolean"
responses:
204:
description: "no error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/exec:
post:
summary: "Create an exec instance"
description: "Run a command inside a running container."
operationId: "ContainerExec"
consumes:
- "application/json"
produces:
- "application/json"
responses:
201:
description: "no error"
schema:
$ref: "#/definitions/ExecCreateResp"
404:
$ref: "#/responses/404ErrorResponse"
409:
description: "container is paused"
schema:
$ref: "#/definitions/Error"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
- name: "body"
in: "body"
schema:
$ref: "#/definitions/ExecCreateConfig"
required: true
tags: ["Exec"]
/containers/{id}/logs:
get:
summary: "Get container logs"
description: |
Get `stdout` and `stderr` logs from a container.
Note: This endpoint works only for containers with the `json-file` or `journald` logging driver.
operationId: "ContainerLogs"
responses:
101:
description: "logs returned as a stream"
schema:
type: "string"
format: "binary"
200:
description: "logs returned as a string in response body"
schema:
type: "string"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "id"
in: "path"
required: true
description: "ID or name of the container"
type: "string"
- name: "follow"
in: "query"
description: |
Return the logs as a stream.
type: "boolean"
default: false
- name: "stdout"
in: "query"
description: "Return logs from `stdout`"
type: "boolean"
default: false
- name: "stderr"
in: "query"
description: "Return logs from `stderr`"
type: "boolean"
default: false
- name: "since"
in: "query"
description: "Only return logs since this time, as a UNIX timestamp"
type: "integer"
default: 0
- name: "until"
in: "query"
description: "Only return logs before this time, as a UNIX timestamp"
type: "integer"
default: 0
- name: "timestamps"
in: "query"
description: "Add timestamps to every log line"
type: "boolean"
default: false
- name: "tail"
in: "query"
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."
type: "string"
default: "all"
tags: ["Container"]
/containers/{id}/resize:
post:
summary: "changes the size of the tty for a container"
operationId: "ContainerResize"
parameters:
- $ref: "#/parameters/id"
- name: "height"
in: "query"
description: "height of the tty"
type: "string"
- name: "width"
in: "query"
description: "width of the tty"
type: "string"
responses:
200:
description: "no error"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
tags: ["Container"]
/exec/{id}/start:
post:
summary: "Start an exec instance"
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."
operationId: "ExecStart"
consumes:
- "application/json"
produces:
- "application/vnd.raw-stream"
responses:
200:
description: "No error"
404:
description: "No such exec instance"
schema:
$ref: "#/definitions/Error"
409:
description: "Container is stopped or paused"
schema:
$ref: "#/definitions/Error"
parameters:
- name: "execStartConfig"
in: "body"
schema:
$ref: "#/definitions/ExecStartConfig"
- name: "id"
in: "path"
description: "Exec instance ID"
required: true
type: "string"
tags: ["Exec"]
/exec/{id}/json:
get:
summary: "Inspect an exec instance"
description: "Return low-level information about an exec instance."
operationId: "ExecInspect"
produces:
- "application/json"
responses:
200:
description: "No error"
schema:
$ref: "#/definitions/ContainerExecInspect"
404:
description: "No such exec instance"
schema:
$ref: "#/responses/404ErrorResponse"
500:
description: "Server error"
schema:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "id"
in: "path"
description: "Exec instance ID"
required: true
type: "string"
tags: ["Exec"]
/containers/{id}/attach:
post:
summary: "Attach to a container"
description: |
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.
Either the `stream` or `logs` parameter must be `true` for this endpoint to do anything.
### Hijacking
This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`, and `stderr` on the same socket.
This is the response from the daemon for an attach request:
```
HTTP/1.1 200 OK
Content-Type: application/vnd.raw-stream
[STREAM]
```
After the headers and two new lines, the TCP connection can now be used for raw, bidirectional communication between the client and server.
To hint potential proxies about connection hijacking, the Pouch client can also optionally send connection upgrade headers.
For example, the client sends this request to upgrade the connection:
```
POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1
Upgrade: tcp
Connection: Upgrade
```
The Pouch daemon will respond with a `101 UPGRADED` response, and will similarly follow with the raw stream:
```
HTTP/1.1 101 UPGRADED
Content-Type: application/vnd.raw-stream
Connection: Upgrade
Upgrade: tcp
[STREAM]
```
### Stream format
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.
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`).
It is encoded on the first eight bytes like this:
```go
header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
```
`STREAM_TYPE` can be:
- 0: `stdin` (is written on `stdout`)
- 1: `stdout`
- 2: `stderr`
`SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size encoded as big endian.
Following the header is the payload, which is the specified number of bytes of `STREAM_TYPE`.
The simplest way to implement this protocol is the following:
1. Read 8 bytes.
2. Choose `stdout` or `stderr` depending on the first byte.
3. Extract the frame size from the last four bytes.
4. Read the extracted size and output it on the correct output.
5. Goto 1.
### Stream format when using a TTY
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`.
operationId: "ContainerAttach"
produces:
- "application/vnd.raw-stream"
responses:
101:
description: "no error, hints proxy about hijacking"
200:
description: "no error, no upgrade header found"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
description: "no such container"
schema:
$ref: "#/definitions/Error"
examples:
application/json:
message: "No such container: c2ada9df5af8"
500:
description: "server error"
schema:
$ref: "#/definitions/Error"
parameters:
- name: "id"
in: "path"
required: true
description: "ID or name of the container"
type: "string"
- name: "detachKeys"
in: "query"
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 `_`."
type: "string"
- name: "logs"
in: "query"
description: |
Replay previous logs from the container.
This is useful for attaching to a container that has started and you want to output everything since the container started.
If `stream` is also enabled, once all the previous output has been returned, it will seamlessly transition into streaming current output.
type: "boolean"
default: false
- name: "stream"
in: "query"
description: "Stream attached streams from the time the request was made onwards"
type: "boolean"
default: false
- name: "stdin"
in: "query"
description: "Attach to `stdin`"
type: "boolean"
default: false
- name: "stdout"
in: "query"
description: "Attach to `stdout`"
type: "boolean"
default: false
- name: "stderr"
in: "query"
description: "Attach to `stderr`"
type: "boolean"
default: false
tags: ["Container"]
/containers/{id}/update:
post:
summary: "Update the configurations of a container"
operationId: "ContainerUpdate"
parameters:
- $ref: "#/parameters/id"
- name: "updateConfig"
in: "body"
schema:
$ref: "#/definitions/UpdateConfig"
responses:
200:
description: "no error"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/containers/{id}/upgrade:
post:
summary: "Upgrade a container with new image and args"
operationId: "ContainerUpgrade"
parameters:
- $ref: "#/parameters/id"
- name: "upgradeConfig"
in: "body"
schema:
$ref: "#/definitions/ContainerUpgradeConfig"
responses:
200:
description: "no error"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Container"]
/volumes:
get:
summary: "List volumes"
operationId: "VolumeList"
produces: ["application/json"]
responses:
200:
description: "Summary volume data that matches the query"
schema:
$ref: "#/definitions/VolumeListResp"
examples:
application/json:
Volumes:
- CreatedAt: "2017-07-19T12:00:26Z"
Name: "tardis"
Driver: "local"
Mountpoint: "/var/lib/pouch/volumes/tardis"
Labels:
com.example.some-label: "some-value"
com.example.some-other-label: "some-other-value"
Scope: "local"
Options:
device: "tmpfs"
o: "opt.size=100m,uid=1000"
type: "tmpfs"
Warnings: []
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "filters"
in: "query"
description: |
JSON encoded value of the filters (a `map[string][]string`) to
process on the volumes list. Available filters:
- `dangling=<boolean>` When set to `true` (or `1`), returns all
volumes that are not in use by a container. When set to `false`
(or `0`), only volumes that are in use by one or more
containers are returned.
- `driver=<volume-driver-name>` Matches volumes based on their driver.
- `label=<key>` or `label=<key>:<value>` Matches volumes based on
the presence of a `label` alone or a `label` and a value.
- `name=<volume-name>` Matches all or part of a volume name.
type: "string"
format: "json"
tags: ["Volume"]
/volumes/create:
post:
summary: "Create a volume"
operationId: "VolumeCreate"
consumes: ["application/json"]
produces: ["application/json"]
responses:
201:
description: "The volume was created successfully"
schema:
$ref: "#/definitions/VolumeInfo"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "body"
in: "body"
required: true
description: "Volume configuration"
schema:
$ref: "#/definitions/VolumeCreateConfig"
tags: ["Volume"]
/volumes/{id}:
get:
summary: "Inspect a volume"
operationId: "VolumeInspect"
produces: ["application/json"]
responses:
200:
description: "No error"
schema:
$ref: "#/definitions/VolumeInfo"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
tags: ["Volume"]
delete:
summary: "Delete a volume"
operationId: "VolumeDelete"
responses:
204:
description: "No error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
tags: ["Volume"]
/networks/create:
post:
summary: "Create a network"
operationId: "NetworkCreate"
consumes: ["application/json"]
produces: ["application/json"]
responses:
201:
description: "The network was created successfully"
schema:
$ref: "#/definitions/NetworkCreateResp"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
409:
description: "name already in use"
schema:
$ref: "#/definitions/Error"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "NetworkCreateConfig"
in: "body"
required: true
description: "Network configuration"
schema:
$ref: "#/definitions/NetworkCreateConfig"
tags: ["Network"]
/networks/{id}:
get:
summary: "Inspect a network"
operationId: "NetworkInspect"
produces:
- "application/json"
responses:
200:
description: "No error"
schema:
$ref: "#/definitions/NetworkInspectResp"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
tags: ["Network"]
delete:
summary: "Remove a network"
operationId: "NetworkDelete"
responses:
204:
description: "No error"
403:
description: "operation not supported for pre-defined networks"
schema:
$ref: "#/definitions/Error"
404:
$ref: "#/responses/404ErrorResponse"
500:
$ref: "#/responses/500ErrorResponse"
parameters:
- $ref: "#/parameters/id"
tags: ["Network"]
/networks:
get:
summary: "List networks"
operationId: "NetworkList"
produces: ["application/json"]
responses:
200:
description: "Summary networks that matches the query"
schema:
$ref: "#/definitions/NetworkResource"
500:
$ref: "#/responses/500ErrorResponse"
tags: ["Network"]
/networks/{id}/connect:
post:
summary: "Connect a container to a network"
operationId: "NetworkConnect"
consumes:
- "application/json"
responses:
200:
description: "No error"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
description: "Network or container not found"
schema:
$ref: "#/responses/404ErrorResponse"
500:
description: "Server error"
schema:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "id"
in: "path"
description: "Network ID or name"
required: true
type: "string"
- name: "container"
in: "body"
required: true
schema:
$ref: "#/definitions/NetworkConnect"
tags: ["Network"]
/networks/{id}/disconnect:
post:
summary: "Disconnect a container from a network"
operationId: "NetworkDisconnect"
consumes:
- "application/json"
responses:
200:
description: "No error"
400:
description: "bad parameter"
schema:
$ref: "#/definitions/Error"
404:
description: "Network or container not found"
schema:
$ref: "#/responses/404ErrorResponse"
500:
description: "Server error"
schema:
$ref: "#/responses/500ErrorResponse"
parameters:
- name: "id"
in: "path"
description: "Network ID or name"
required: true
type: "string"
- name: "NetworkDisconnect"
in: "body"
required: true
description: "Network disconnect parameters"
schema:
$ref: "#/definitions/NetworkDisconnect"
tags: ["Network"]
definitions:
Error:
type: "object"
properties:
message:
type: string
SystemVersion:
type: "object"
properties:
Version:
type: "string"
description: "version of Pouch Daemon"
example: "0.1.2"
ApiVersion:
type: "string"
description: "Api Version held by daemon"
example: ""
GitCommit:
type: "string"
description: "Commit ID held by the latest commit operation"
example: ""
GoVersion:
type: "string"
description: "version of Go runtime"
example: "1.8.3"
Os:
type: "string"
description: "Operating system type of underlying system"
example: "linux"
Arch:
type: "string"
description: "Arch type of underlying hardware"
example: "amd64"
KernelVersion:
type: "string"
description: "Operating system kernel version"
example: "3.13.0-106-generic"
BuildTime:
type: "string"
description: "The time when this binary of daemon is built"
example: "2017-08-29T17:41:57.729792388+00:00"
SystemInfo:
type: "object"
properties:
ID:
description: |
Unique identifier of the daemon.
<p><br /></p>
> **Note**: The format of the ID itself is not part of the API, and
> should not be considered stable.
type: "string"
example: "7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS"
Containers:
description: "Total number of containers on the host."
type: "integer"
example: 14
ContainersRunning:
description: |
Number of containers with status `"running"`.
type: "integer"
example: 3
ContainersPaused:
description: |
Number of containers with status `"paused"`.
type: "integer"
example: 1
ContainersStopped:
description: |
Number of containers with status `"stopped"`.
type: "integer"
example: 10
Images:
description: |
Total number of images on the host.
Both _tagged_ and _untagged_ (dangling) images are counted.
type: "integer"
example: 508
Driver:
description: "Name of the storage driver in use."
type: "string"
example: "overlay2"
DriverStatus:
description: |
Information specific to the storage driver, provided as
"label" / "value" pairs.
This information is provided by the storage driver, and formatted
in a way consistent with the output of `pouch info` on the command
line.
<p><br /></p>
> **Note**: The information returned in this field, including the
> formatting of values and labels, should not be considered stable,
> and may change without notice.
type: "array"
items:
type: "array"
items:
type: "string"
example:
- ["Backing Filesystem", "extfs"]
- ["Supports d_type", "true"]
- ["Native Overlay Diff", "true"]
PouchRootDir:
description: |
Root directory of persistent Pouch state.
Defaults to `/var/lib/pouch` on Linux.
type: "string"
example: "/var/lib/pouch"
Debug:
description: "Indicates if the daemon is running in debug-mode / with debug-level logging enabled."
type: "boolean"
example: true
LoggingDriver:
description: |
The logging driver to use as a default for new containers.
type: "string"
VolumeDrivers:
description: |
The list of volume drivers which the pouchd supports
type: "array"
items:
type: "string"
example: ["local", "tmpfs"]
CgroupDriver:
description: |
The driver to use for managing cgroups.
type: "string"
x-nullable: false
enum: ["cgroupfs", "systemd"]
default: "cgroupfs"
example: "cgroupfs"
KernelVersion:
description: |
Kernel version of the host.
On Linux, this information obtained from `uname`.
type: "string"
OperatingSystem:
description: |
Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS".
type: "string"
example: "Alpine Linux v3.5"
OSType:
description: |
Generic type of the operating system of the host, as returned by the
Go runtime (`GOOS`).
Currently returned value is "linux". A full list of
possible values can be found in the [Go documentation](https://golang.org/doc/install/source#environment).
type: "string"
example: "linux"
Architecture:
description: |
Hardware architecture of the host, as returned by the Go runtime
(`GOARCH`).
A full list of possible values can be found in the [Go documentation](https://golang.org/doc/install/source#environment).
type: "string"
example: "x86_64"
NCPU:
description: |
The number of logical CPUs usable by the daemon.
The number of available CPUs is checked by querying the operating
system when the daemon starts. Changes to operating system CPU
allocation after the daemon is started are not reflected.
type: "integer"
example: 4
MemTotal:
description: |
Total amount of physical memory available on the host, in kilobytes (kB).
type: "integer"
format: "int64"
example: 2095882240
IndexServerAddress:
description: |
Address / URL of the index server that is used for image search,
and as a default for user authentication.
type: "string"
DefaultRegistry:
description: |
default registry can be defined by user.
type: "string"
RegistryConfig:
$ref: "#/definitions/RegistryServiceConfig"
HttpProxy:
description: |
HTTP-proxy configured for the daemon. This value is obtained from the
[`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
Containers do not automatically inherit this configuration.
type: "string"
example: "http://user:pass@proxy.corp.example.com:8080"
HttpsProxy:
description: |
HTTPS-proxy configured for the daemon. This value is obtained from the
[`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
Containers do not automatically inherit this configuration.
type: "string"
example: "https://user:pass@proxy.corp.example.com:4443"
Name:
description: "Hostname of the host."
type: "string"
example: "node5.corp.example.com"
Labels:
description: |
User-defined labels (key/value metadata) as set on the daemon.
type: "array"
items:
type: "string"
example: ["storage=ssd", "production"]
ExperimentalBuild:
description: |
Indicates if experimental features are enabled on the daemon.
type: "boolean"
example: true
ServerVersion:
description: |
Version string of the daemon.
type: "string"
example: "17.06.0-ce"
Runtimes:
description: |
List of [OCI compliant](https://github.com/opencontainers/runtime-spec)
runtimes configured on the daemon. Keys hold the "name" used to
reference the runtime.
The Pouch daemon relies on an OCI compliant runtime (invoked via the
`containerd` daemon) as its interface to the Linux kernel namespaces,
cgroups, and SELinux.
The default runtime is `runc`, and automatically configured. Additional
runtimes can be configured by the user and will be listed here.
type: "object"
additionalProperties:
$ref: "#/definitions/Runtime"
default:
runc:
path: "pouch-runc"
example:
runc:
path: "pouch-runc"
runc-master:
path: "/go/bin/runc"
custom:
path: "/usr/local/bin/my-oci-runtime"
runtimeArgs: ["--debug", "--systemd-cgroup=false"]
DefaultRuntime:
description: |
Name of the default OCI runtime that is used when starting containers.
The default can be overridden per-container at create time.
type: "string"
x-nullable: false
default: "runc"
example: "runc"
LiveRestoreEnabled:
description: |
Indicates if live restore is enabled.
If enabled, containers are kept running when the daemon is shutdown
or upon daemon start if running containers are detected.
type: "boolean"
x-nullable: false
default: false
example: false
LxcfsEnabled:
description: |
Indicates if lxcfs is enabled.
type: "boolean"
x-nullable: false
default: false
example: false
ContainerdCommit:
$ref: "#/definitions/Commit"
RuncCommit:
$ref: "#/definitions/Commit"
SecurityOptions:
description: |
List of security features that are enabled on the daemon, such as
apparmor, seccomp, SELinux, and user-namespaces (userns).
Additional configuration options for each security feature may
be present, and are included as a comma-separated list of key/value
pairs.
type: "array"
items:
type: "string"
example:
- "name=apparmor"
- "name=seccomp,profile=default"
- "name=selinux"
- "name=userns"
ListenAddresses:
description: "List of addresses the pouchd listens on"
type: "array"
items:
type: "string"
example:
- ["unix:///var/run/pouchd.sock", "tcp://0.0.0.0:4243"]
DaemonUpdateConfig:
type: "object"
properties:
Labels:
description: "Labels indentified the attributes of daemon"
type: "array"
items:
type: "string"
example: ["storage=ssd", "zone=hangzhou"]
ImageProxy:
description: "Image proxy used to pull image."
type: "string"
RegistryServiceConfig:
description: |
RegistryServiceConfig stores daemon registry services configuration.
type: "object"
x-nullable: true
properties:
AllowNondistributableArtifactsCIDRs:
description: |
List of IP ranges to which nondistributable artifacts can be pushed,
using the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632).
Some images contain artifacts whose distribution is restricted by license.
When these images are pushed to a registry, restricted artifacts are not
included.
This configuration override this behavior, and enables the daemon to
push nondistributable artifacts to all registries whose resolved IP
address is within the subnet described by the CIDR syntax.
This option is useful when pushing images containing
nondistributable artifacts to a registry on an air-gapped network so
hosts on that network can pull the images without connecting to
another server.
> **Warning**: Nondistributable artifacts typically have restrictions
> on how and where they can be distributed and shared. Only use this
> feature to push artifacts to private registries and ensure that you
> are in compliance with any terms that cover redistributing
> nondistributable artifacts.
x-omitempty: true
type: "array"
items:
type: "string"
example: ["::1/128", "127.0.0.0/8"]
AllowNondistributableArtifactsHostnames:
description: |
List of registry hostnames to which nondistributable artifacts can be
pushed, using the format `<hostname>[:<port>]` or `<IP address>[:<port>]`.
Some images (for example, Windows base images) contain artifacts
whose distribution is restricted by license. When these images are
pushed to a registry, restricted artifacts are not included.
This configuration override this behavior for the specified
registries.
This option is useful when pushing images containing
nondistributable artifacts to a registry on an air-gapped network so
hosts on that network can pull the images without connecting to
another server.
> **Warning**: Nondistributable artifacts typically have restrictions
> on how and where they can be distributed and shared. Only use this
> feature to push artifacts to private registries and ensure that you
> are in compliance with any terms that cover redistributing
> nondistributable artifacts.
x-omitempty: true
type: "array"
items:
type: "string"
example: ["registry.internal.corp.example.com:3000", "[2001:db8:a0b:12f0::1]:443"]
InsecureRegistryCIDRs:
description: |
List of IP ranges of insecure registries, using the CIDR syntax
([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries
accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates
from unknown CAs) communication.
By default, local registries (`127.0.0.0/8`) are configured as
insecure. All other registries are secure. Communicating with an
insecure registry is not possible if the daemon assumes that registry
is secure.
This configuration override this behavior, insecure communication with
registries whose resolved IP address is within the subnet described by
the CIDR syntax.
Registries can also be marked insecure by hostname. Those registries
are listed under `IndexConfigs` and have their `Secure` field set to
`false`.
> **Warning**: Using this option can be useful when running a local
> registry, but introduces security vulnerabilities. This option
> should therefore ONLY be used for testing purposes. For increased
> security, users should add their CA to their system's list of trusted
> CAs instead of enabling this option.
x-omitempty: true
type: "array"
items:
type: "string"
example: ["::1/128", "127.0.0.0/8"]
IndexConfigs:
x-omitempty: true
type: "object"
additionalProperties:
$ref: "#/definitions/IndexInfo"
example:
"127.0.0.1:5000":
"Name": "127.0.0.1:5000"
"Mirrors": []
"Secure": false
"Official": false
"[2001:db8:a0b:12f0::1]:80":
"Name": "[2001:db8:a0b:12f0::1]:80"
"Mirrors": []
"Secure": false
"Official": false
"registry.internal.corp.example.com:3000":
Name: "registry.internal.corp.example.com:3000"
Mirrors: []
Secure: false
Official: false
Mirrors:
description: "List of registry URLs that act as a mirror for the official registry."
x-omitempty: true
type: "array"
items:
type: "string"
example:
- "https://hub-mirror.corp.example.com:5000/"
- "https://[2001:db8:a0b:12f0::1]/"
IndexInfo:
description:
IndexInfo contains information about a registry.
type: "object"
x-nullable: true
properties:
Name:
description: |
Name of the registry.
type: "string"
Mirrors:
description: |
List of mirrors, expressed as URIs.
type: "array"
items:
type: "string"
example:
- "https://hub-mirror.corp.example.com:5000/"
Secure:
description: |
Indicates if the the registry is part of the list of insecure
registries.
If `false`, the registry is insecure. Insecure registries accept
un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from
unknown CAs) communication.
> **Warning**: Insecure registries can be useful when running a local
> registry. However, because its use creates security vulnerabilities
> it should ONLY be enabled for testing purposes. For increased
> security, users should add their CA to their system's list of
> trusted CAs instead of enabling this option.
type: "boolean"
example: true
Official:
description: |
Indicates whether this is an official registry.
type: "boolean"
example: true
Runtime:
description: |
Runtime describes an [OCI compliant](https://github.com/opencontainers/runtime-spec)
runtime.
The runtime is invoked by the daemon via the `containerd` daemon. OCI
runtimes act as an interface to the Linux kernel namespaces, cgroups,
and SELinux.
type: "object"
properties:
path:
description: |
Name and, optional, path, of the OCI executable binary.
If the path is omitted, the daemon searches the host's `$PATH` for the
binary and uses the first result.
type: "string"
example: "/usr/local/bin/my-oci-runtime"
runtimeArgs:
description: |
List of command-line arguments to pass to the runtime when invoked.
type: "array"
x-nullable: true
items:
type: "string"
example: ["--debug", "--systemd-cgroup=false"]
Commit:
description: |
Commit holds the Git-commit (SHA1) that a binary was built from, as
reported in the version-string of external tools, such as `containerd`,
or `runC`.
type: "object"
properties:
ID:
description: "Actual commit ID of external tool."
type: "string"
example: "cfb82a876ecc11b5ca0977d1733adbe58599088a"
Expected:
description: |
Commit ID of external tool expected by pouchd as set at build time.
type: "string"
example: "2d41c047c83e09a6d61d464906feb2a2f3c52aa4"
AuthConfig:
type: "object"
properties:
Username:
type: "string"
Password:
type: "string"
Auth:
type: "string"
ServerAddress:
type: "string"
IdentityToken:
type: "string"
description: "IdentityToken is used to authenticate the user and get an access token for the registry"
RegistryToken:
type: "string"
description: "RegistryToken is a bearer token to be sent to a registry"
AuthResponse:
description: "The response returned by login to a registry"
type: "object"
required: [Status]
properties:
Status:
description: "The status of the authentication"
type: "string"
x-nullable: false
IdentityToken:
description: "An opaque token used to authenticate a user after a successful login"
type: "string"
x-nullable: false
ContainerCreateConfig:
description: |
ContainerCreateConfig is used for API "POST /containers/create".
It wraps all kinds of config used in container creation.
It can be used to encode client params in client and unmarshal request body in daemon side.
allOf:
- $ref: "#/definitions/ContainerConfig"
- type: "object"
properties:
HostConfig:
$ref: "#/definitions/HostConfig"
NetworkingConfig:
$ref: "#/definitions/NetworkingConfig"
ContainerConfig:
type: "object"
description: "Configuration for a container that is portable between hosts"
required:
- Image
properties:
Hostname:
description: "The hostname to use for the container, as a valid RFC 1123 hostname."
type: "string"
format: hostname
minLength: 1
Domainname:
description: "The domain name to use for the container."
type: "string"
User:
description: "The user that commands are run as inside the container."
type: "string"
AttachStdin:
description: "Whether to attach to `stdin`."
type: "boolean"
x-nullable: false
AttachStdout:
description: "Whether to attach to `stdout`."
type: "boolean"
x-nullable: false
default: true
AttachStderr:
description: "Whether to attach to `stderr`."
type: "boolean"
x-nullable: false
default: true
DisableNetworkFiles:
description: "Whether to generate the network files(/etc/hostname, /etc/hosts and /etc/resolv.conf) for container."
type: "boolean"
x-nullable: false
default: false
ExposedPorts:
description: "An object mapping ports to an empty object in the form:`{<port>/<tcp|udp>: {}}`"
type: "object"
additionalProperties:
type: "object"
enum:
- {}
default: {}
Tty:
description: "Attach standard streams to a TTY, including `stdin` if it is not closed."
type: "boolean"
x-nullable: false
OpenStdin:
description: "Open `stdin`"
type: "boolean"
x-nullable: false
StdinOnce:
description: "Close `stdin` after one attached client disconnects"
type: "boolean"
x-nullable: false
Env:
description: |
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.
type: "array"
items:
type: "string"
Cmd:
description: "Command to run specified an array of strings."
type: "array"
items:
type: "string"
ArgsEscaped:
description: "Command is already escaped (Windows only)"
type: "boolean"
x-nullable: false
Image:
description: "The name of the image to use when creating the container"
type: "string"
x-nullable: false
Volumes:
description: "An object mapping mount point paths inside the container to empty objects."
type: "object"
additionalProperties:
type: "object"
enum:
- {}
default: {}
WorkingDir:
description: "The working directory for commands to run in."
type: "string"
Entrypoint:
description: |
The entry point for the container as a string or an array of strings.
If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default.
type: "array"
items:
type: "string"
NetworkDisabled:
description: "Disable networking for the container."
type: "boolean"
MacAddress:
description: "MAC address of the container."
type: "string"
OnBuild:
description: "`ONBUILD` metadata that were defined."
type: "array"
items:
type: "string"
Labels:
description: "User-defined key/value metadata."
type: "object"
additionalProperties:
type: "string"
StopSignal:
description: "Signal to stop a container as a string or unsigned integer."
type: "string"
default: "SIGTERM"
x-nullable: false
StopTimeout:
description: "Timeout to stop a container in seconds."
type: "integer"
default: 10
Shell:
description: "Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell."
type: "array"
items:
type: "string"
Rich:
type: "boolean"
description: "Whether to start container in rich container mode. (default false)"
x-nullable: false
RichMode:
type: "string"
description: "Choose one rich container mode.(default dumb-init)"
enum:
- "dumb-init"
- "sbin-init"
- "systemd"
InitScript:
type: "string"
description: "Initial script executed in container. The script will be executed before entrypoint or command"
DiskQuota:
type: "object"
description: "Set disk quota for container"
x-nullable: true
additionalProperties:
type: "string"
SpecAnnotation:
description: "annotations send to runtime spec."
type: "object"
additionalProperties:
type: "string"
QuotaID:
type: "string"
description: "set disk quota by specified quota id, if id < 0, it means pouchd alloc a unique quota id"
ContainerCreateResp:
description: "response returned by daemon when container create successfully"
type: "object"
required: [Id, Warnings]
properties:
Id:
description: "The ID of the created container"
type: "string"
x-nullable: false
Name:
description: "The name of the created container"
type: "string"
Warnings:
description: "Warnings encountered when creating the container"
type: "array"
x-nullable: false
items:
type: "string"
HostConfig:
description: "Container configuration that depends on the host we are running on"
type: "object"
allOf:
- properties:
# Applicable to all platforms
Binds:
type: "array"
description: |
A list of volume bindings for this container. Each volume binding is a string in one of these forms:
- `host-src:container-dest` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path.
- `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.
- `volume-name:container-dest` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path.
- `volume-name:container-dest:ro` to mount the volume read-only inside the container. `container-dest` must be an _absolute_ path.
items:
type: "string"
ContainerIDFile:
type: "string"
description: "Path to a file where the container ID is written"
LogConfig:
description: "The logging configuration for this container"
type: "object"
$ref: "#/definitions/LogConfig"
RestartPolicy:
type: "object"
description: "Restart policy to be used to manage the container"
$ref: "#/definitions/RestartPolicy"
NetworkMode:
type: "string"
description: "Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value is taken as a custom network's name to which this container should connect to."
PortBindings:
type: "object"
description: "A map of exposed container ports and the host port they should map to."
$ref: "#/definitions/PortMap"
AutoRemove:
type: "boolean"
description: "Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set."
VolumeDriver:
type: "string"
description: "Driver that this container uses to mount volumes."
VolumesFrom:
type: "array"
description: "A list of volumes to inherit from another container, specified in the form `<container name>[:<ro|rw>]`."
items:
type: "string"
CapAdd:
type: "array"
description: "A list of kernel capabilities to add to the container."
items:
type: "string"
CapDrop:
type: "array"
description: "A list of kernel capabilities to drop from the container."
items:
type: "string"
Dns:
type: "array"
description: "A list of DNS servers for the container to use."
items:
type: "string"
DnsOptions:
type: "array"
description: "A list of DNS options."
items:
type: "string"
DnsSearch:
type: "array"
description: "A list of DNS search domains."
items:
type: "string"
ExtraHosts:
type: "array"
description: |
A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `["hostname:IP"]`.
items:
type: "string"
GroupAdd:
type: "array"
description: "A list of additional groups that the container process will run as."
items:
type: "string"
IpcMode:
type: "string"
description: |
IPC sharing mode for the container. Possible values are:
- `"none"`: own private IPC namespace, with /dev/shm not mounted
- `"private"`: own private IPC namespace
- `"shareable"`: own private IPC namespace, with a possibility to share it with other containers
- `"container:<name|id>"`: join another (shareable) container's IPC namespace
- `"host"`: use the host system's IPC namespace
If not specified, daemon default is used, which can either be `"private"`
or `"shareable"`, depending on daemon version and configuration.
Cgroup:
type: "string"
description: "Cgroup to use for the container."
Links:
type: "array"
description: "A list of links for the container in the form `container_name:alias`."
items:
type: "string"
OomScoreAdj:
type: "integer"
description: |
An integer value containing the score given to the container in order to tune OOM killer preferences.
The range is in [-1000, 1000].
type: "integer"
format: "int"
x-nullable: false
minimum: -1000
maximum: 1000
PidMode:
type: "string"
description: |
Set the PID (Process) Namespace mode for the container. It can be either:
- `"container:<name|id>"`: joins another container's PID namespace
- `"host"`: use the host's PID namespace inside the container
Privileged:
type: "boolean"
description: "Gives the container full access to the host."
PublishAllPorts:
type: "boolean"
description: "Allocates a random host port for all of a container's exposed ports."
ReadonlyRootfs:
type: "boolean"
description: "Mount the container's root filesystem as read only."
SecurityOpt:
type: "array"
description: "A list of string values to customize labels for MLS systems, such as SELinux."
items:
type: "string"
StorageOpt:
type: "object"
description: |
Storage driver options for this container, in the form `{"size": "120G"}`.
additionalProperties:
type: "string"
Tmpfs:
type: "object"
description: |
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" }`.
additionalProperties:
type: "string"
UTSMode:
type: "string"
description: "UTS namespace to use for the container."
UsernsMode:
type: "string"
description: "Sets the usernamespace mode for the container when usernamespace remapping option is enabled."
ShmSize:
type: "integer"
description: "Size of `/dev/shm` in bytes. If omitted, the system uses 64MB."
minimum: 0
Sysctls:
type: "object"
description: |
A list of kernel parameters (sysctls) to set in the container. For example: `{"net.ipv4.ip_forward": "1"}`
additionalProperties:
type: "string"
Runtime:
type: "string"
description: "Runtime to use with this container."
# Applicable to Windows
ConsoleSize:
type: "array"
description: "Initial console size, as an `[height, width]` array. (Windows only)"
minItems: 2
maxItems: 2
items:
type: "integer"
minimum: 0
Isolation:
type: "string"
description: "Isolation technology of the container. (Windows only)"
enum:
- "default"
- "process"
- "hyperv"
EnableLxcfs:
description: "Whether to enable lxcfs."
type: "boolean"
x-nullable: false
Rich:
type: "boolean"
description: "Whether to start container in rich container mode. (default false)"
x-nullable: false
RichMode:
type: "string"
description: "Choose one rich container mode.(default dumb-init)"
enum:
- "dumb-init"
- "sbin-init"
- "systemd"
InitScript:
type: "string"
description: "Initial script executed in container. The script will be executed before entrypoint or command"
- $ref: "#/definitions/Resources"
UpdateConfig:
description: "UpdateConfig holds the mutable attributes of a Container. Those attributes can be updated at runtime."
allOf:
- $ref: "#/definitions/Resources"
- properties:
RestartPolicy:
$ref: "#/definitions/RestartPolicy"
Env:
description: |
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.
type: "array"
items:
type: "string"
Label:
description: "List of labels set to container."
type: "array"
items:
type: "string"
DiskQuota:
type: "object"
description: "update disk quota for container"
x-nullable: true
additionalProperties:
type: "string"
ContainerUpgradeConfig:
description: |
ContainerUpgradeConfig is used for API "POST /containers/upgrade".
It wraps all kinds of config used in container upgrade.
It can be used to encode client params in client and unmarshal request body in daemon side.
allOf:
- $ref: "#/definitions/ContainerConfig"
- type: "object"
properties:
HostConfig:
$ref: "#/definitions/HostConfig"
LogConfig:
description: "The logging configuration for this container"
type: "object"
properties:
Type:
type: "string"
x-go-name: "LogDriver"
enum:
- "json-file"
- "syslog"
- "journald"
- "gelf"
- "fluentd"
- "awslogs"
- "splunk"
- "etwlogs"
- "none"
Config:
type: "object"
x-go-name: "LogOpts"
additionalProperties:
type: "string"
Resources:
description: "A container's resources (cgroups config, ulimits, etc)"
type: "object"
required: [CPUShares, Memory, CgroupParent, BlkioWeight, CPUPeriod, CPUQuota, CpuRealtimePeriod,
CpuRealtimeRuntime, CpusetCpus, CpusetMems, DeviceCgroupRules, KernelMemory, MemoryReservation,
MemorySwap, MemorySwappiness, NanoCPUs, OomKillDisable, PidsLimit, CpuCount, CpuPercent,
IOMaximumIOps, IOMaximumBandwidth, IntelRdtL3Cbm, ScheLatSwitch, MemoryWmarkRatio, MemoryExtra,
MemoryForceEmptyCtl]
properties:
# Applicable to UNIX platforms
CgroupParent:
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."
type: "string"
x-nullable: false
BlkioWeight:
description: "Block IO weight (relative weight), need CFQ IO Scheduler enable."
type: "integer"
format: "uint16"
x-nullable: false
minimum: 0
maximum: 1000
BlkioWeightDevice:
description: |
Block IO weight (relative device weight) in the form `[{"Path": "device_path", "Weight": weight}]`.
type: "array"
items:
$ref: "#/definitions/WeightDevice"
BlkioDeviceReadBps:
description: |
Limit read rate (bytes per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
type: "array"
items:
$ref: "#/definitions/ThrottleDevice"
BlkioDeviceWriteBps:
description: |
Limit write rate (bytes per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
type: "array"
items:
$ref: "#/definitions/ThrottleDevice"
BlkioDeviceReadIOps:
description: |
Limit read rate (IO per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
type: "array"
items:
$ref: "#/definitions/ThrottleDevice"
BlkioDeviceWriteIOps:
description: |
Limit write rate (IO per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
type: "array"
items:
$ref: "#/definitions/ThrottleDevice"
CPUShares:
description: "An integer value representing this container's relative CPU weight versus other containers."
type: "integer"
x-nullable: false
CPUPeriod:
description: |
CPU CFS (Completely Fair Scheduler) period.
The length of a CPU period in microseconds.
type: "integer"
format: "int64"
minimum: 1000
maximum: 1000000
x-nullable: false
CPUQuota:
description: |
CPU CFS (Completely Fair Scheduler) quota.
Microseconds of CPU time that the container can get in a CPU period."
type: "integer"
format: "int64"
minimum: 1000
x-nullable: false
CpuRealtimePeriod:
description: "The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks."
type: "integer"
format: "int64"
x-nullable: false
CpuRealtimeRuntime:
description: "The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks."
type: "integer"
format: "int64"
x-nullable: false
CpusetCpus:
description: "CPUs in which to allow execution (e.g., `0-3`, `0,1`)"
type: "string"
example: "0-3"
x-nullable: false
CpusetMems:
description: "Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems."
type: "string"
x-nullable: false
Devices:
description: "A list of devices to add to the container."
type: "array"
items:
$ref: "#/definitions/DeviceMapping"
DeviceCgroupRules:
description: "a list of cgroup rules to apply to the container"
type: "array"
items:
type: "string"
example: "c 13:* rwm"
KernelMemory:
description: "Kernel memory limit in bytes."
type: "integer"
format: "int64"
x-nullable: false
Memory:
description: "Memory limit in bytes."
type: "integer"
default: 0
x-nullable: false
MemoryReservation:
description: "Memory soft limit in bytes."
type: "integer"
format: "int64"
x-nullable: false
MemorySwap:
description: "Total memory limit (memory + swap). Set as `-1` to enable unlimited swap."
type: "integer"
format: "int64"
x-nullable: false
MemorySwappiness:
description: "Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100."
type: "integer"
format: "int64"
minimum: 0
maximum: 100
NanoCPUs:
description: "CPU quota in units of 10<sup>-9</sup> CPUs."
type: "integer"
format: "int64"
x-nullable: false
OomKillDisable:
description: "Disable OOM Killer for the container."
type: "boolean"
x-nullable: true
PidsLimit:
description: |
Tune a container's pids limit. Set -1 for unlimited. Only on Linux 4.4 does this parameter support.
type: "integer"
format: "int64"
x-nullable: false
Ulimits:
description: |
A list of resource limits to set in the container. For example: `{"Name": "nofile", "Soft": 1024, "Hard": 2048}`"
type: "array"
items:
$ref: "#/definitions/Ulimit"
# Applicable to Windows
CpuCount:
description: |
The number of usable CPUs (Windows only).
On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.
type: "integer"
format: "int64"
x-nullable: false
CpuPercent:
description: |
The usable percentage of the available CPUs (Windows only).
On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.
type: "integer"
format: "int64"
x-nullable: false
IOMaximumIOps:
description: "Maximum IOps for the container system drive (Windows only)"
type: "integer"
format: "uint64"
x-nullable: false
IOMaximumBandwidth:
description: "Maximum IO in bytes per second for the container system drive (Windows only)"
type: "integer"
format: "uint64"
x-nullable: false
IntelRdtL3Cbm:
description: "IntelRdtL3Cbm specifies settings for Intel RDT/CAT group that the container is placed into to limit the resources (e.g., L3 cache) the container has available."
type: "string"
x-nullable: false
# applicable to AliKenerl 4.9
ScheLatSwitch:
description: "ScheLatSwitch enables scheduler latency count in cpuacct"
type: "integer"
format: "int64"
x-nullable: false
minimum: 0
maximum: 1
x-nullable: false
MemoryWmarkRatio:
description: |
MemoryWmarkRatio is an integer value representing this container's memory low water mark percentage.
The value of memory low water mark is memory.limit_in_bytes * MemoryWmarkRatio. The range is in [0, 100].
type: "integer"
format: "int64"
x-nullable: true
minimum: 0
maximum: 100
MemoryExtra:
description: |
MemoryExtra is an integer value representing this container's memory high water mark percentage.
The range is in [0, 100].
type: "integer"
format: "int64"
x-nullable: true
minimum: 0
maximum: 100
MemoryForceEmptyCtl:
description: "MemoryForceEmptyCtl represents whether to reclaim the page cache when deleting cgroup."
type: "integer"
format: "int64"
x-nullable: false
minimum: 0
maximum: 1
ThrottleDevice:
type: "object"
properties:
Path:
description: "Device path"
type: "string"
Rate:
description: "Rate"
type: "integer"
format: "uint64"
x-nullable: false
minimum: 0
WeightDevice:
type: "object"
description: "Weight for BlockIO Device"
properties:
Path:
description: "Weight Device"
type: "string"
Weight:
type: "integer"
format: "uint16"
x-nullable: false
minimum: 0
DeviceMapping:
type: "object"
description: "A device mapping between the host and container"
properties:
PathOnHost:
description: "path on host of the device mapping"
type: "string"
PathInContainer:
description: "path in container of the device mapping"
type: "string"
CgroupPermissions:
description: "cgroup permissions of the device"
type: "string"
example:
PathOnHost: "/dev/deviceName"
PathInContainer: "/dev/deviceName"
CgroupPermissions: "mrw"
Ulimit:
type: "object"
description: "A list of resource limits"
properties:
Name:
description: "Name of ulimit"
type: "string"
Soft:
description: "Soft limit"
type: "integer"
Hard:
description: "Hard limit"
type: "integer"
Container:
description: |
an array of Container contains response of Engine API:
GET "/containers/json"
type: "object"
properties:
Id:
description: "Container ID"
type: "string"
Names:
type: "array"
items:
type: "string"
example:
- "container_1"
- "container_2"
Image:
type: "string"
ImageID:
type: "string"
Command:
type: "string"
Created:
description: "Created time of container in daemon."
type: "integer"
format: "int64"
SizeRw:
type: "integer"
format: "int64"
SizeRootFs:
type: "integer"
format: "int64"
Labels:
type: "object"
additionalProperties:
type: "string"
State:
type: "string"
Status:
type: "string"
HostConfig:
description: |
In Moby's API, HostConfig field in Container struct has following type
struct { NetworkMode string `json:",omitempty"` }
In Pouch, we need to pick runtime field in HostConfig from daemon side to judge runtime type,
So Pouch changes this type to be the complete HostConfig.
Incompatibility exists, ATTENTION.
$ref: "#/definitions/HostConfig"
x-nullable: false
Mounts:
type: "array"
description: "Set of mount point in a container."
items:
$ref: "#/definitions/MountPoint"
NetworkSettings:
type: "object"
properties:
Networks:
additionalProperties:
$ref: "#/definitions/EndpointSettings"
x-nullable: true
NetworkingConfig:
description: "Configuration for a network used to create a container."
type: "object"
properties:
EndpointsConfig:
additionalProperties:
$ref: "#/definitions/EndpointSettings"
x-nullable: true
EndpointSettings:
description: "Configuration for a network endpoint."
type: "object"
properties:
# Configurations
IPAMConfig:
$ref: "#/definitions/EndpointIPAMConfig"
x-nullable: true
Links:
type: "array"
items:
type: "string"
example:
- "container_1"
- "container_2"
Aliases:
type: "array"
items:
type: "string"
example:
- "server_x"
- "server_y"
# Operational data
NetworkID:
description: |
Unique ID of the network.
type: "string"
example: "08754567f1f40222263eab4102e1c733ae697e8e354aa9cd6e18d7402835292a"
EndpointID:
description: |
Unique ID for the service endpoint in a Sandbox.
type: "string"
example: "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b"
Gateway:
description: |
Gateway address for this network.
type: "string"
example: "172.17.0.1"
IPAddress:
description: |
IPv4 address.
type: "string"
example: "172.17.0.4"
IPPrefixLen:
description: |
Mask length of the IPv4 address.
type: "integer"
example: 16
IPv6Gateway:
description: |
IPv6 gateway address.
type: "string"
example: "2001:db8:2::100"
GlobalIPv6Address:
description: |
Global IPv6 address.
type: "string"
example: "2001:db8::5689"
GlobalIPv6PrefixLen:
description: |
Mask length of the global IPv6 address.
type: "integer"
format: "int64"
example: 64
MacAddress:
description: |
MAC address for the endpoint on this network.
type: "string"
example: "02:42:ac:11:00:04"
DriverOpts:
description: |
DriverOpts is a mapping of driver options and values. These options
are passed directly to the driver and are driver specific.
type: "object"
x-nullable: true
additionalProperties:
type: "string"
example:
com.example.some-label: "some-value"
com.example.some-other-label: "some-other-value"
EndpointIPAMConfig:
description: "IPAM configurations for the endpoint"
type: "object"
properties:
IPv4Address:
description: "ipv4 address"
type: "string"
IPv6Address:
description: "ipv6 address"
type: "string"
LinkLocalIPs:
description: "link to the list of local ip"
type: "array"
x-nullable: false
items:
type: "string"
NetworkDisconnect:
description: "Parameters of network disconnect"
type: "object"
properties:
Container:
type: "string"
description: "The ID or name of the container to disconnect from the network."
Force:
type: "boolean"
description: "Force the container to disconnect from the network."
ImageInfo:
description: "An object containing all details of an image at API side"
type: "object"
properties:
Id:
description: "ID of an image."
type: "string"
x-nullable: false
RepoTags:
description: "repository with tag."
type: "array"
items:
type: "string"
RepoDigests:
description: "repository with digest."
type: "array"
items:
type: "string"
CreatedAt:
description: "time of image creation."
type: "string"
x-nullable: false
Size:
description: "size of image's taking disk space."
type: "integer"
x-nullable: false
Config:
$ref: "#/definitions/ContainerConfig"
Architecture:
description: "the CPU architecture."
type: "string"
x-nullable: false
Os:
description: "the name of the operating system."
type: "string"
x-nullable: false
RootFS:
description: "the rootfs key references the layer content addresses used by the image."
type: "object"
required: [Type]
properties:
Type:
description: "type of the rootfs"
type: "string"
x-nullable: false
Layers:
description: "an array of layer content hashes"
type: "array"
items:
type: "string"
BaseLayer:
description: "the base layer content hash."
type: "string"
SearchResultItem:
type: "object"
description: "search result item in search results."
properties:
description:
type: "string"
description: "description just shows the description of this image"
is_official:
type: "boolean"
description: "is_official shows if this image is marked official."
is_automated:
type: "boolean"
description: "is_automated means whether this image is automated."
name:
type: "string"
description: "name represents the name of this image"
star_count:
type: "integer"
description: "star_count refers to the star count of this image."
VolumeInfo:
type: "object"
description: "Volume represents the configuration of a volume for the container."
properties:
Name:
description: "Name is the name of the volume."
type: "string"
Driver:
description: "Driver is the Driver name used to create the volume."
type: "string"
Mountpoint:
description: "Mountpoint is the location on disk of the volume."
type: "string"
CreatedAt:
type: "string"
format: "dateTime"
description: "Date/Time the volume was created."
Status:
description: "Status provides low-level status information about the volume."
type: "object"
additionalProperties:
type: "object"
enum:
- {}
default: {}
Labels:
description: "Labels is metadata specific to the volume."
type: "object"
additionalProperties:
type: "string"
Scope:
description: |
Scope describes the level at which the volume exists
(e.g. `global` for cluster-wide or `local` for machine level)
type: "string"
VolumeCreateConfig:
description: "config used to create a volume"
type: "object"
properties:
Name:
description: "The new volume's name. If not specified, Pouch generates a name."
type: "string"
x-nullable: false
Driver:
description: "Name of the volume driver to use."
type: "string"
default: "local"
x-nullable: false
DriverOpts:
description: "A mapping of driver options and values. These options are passed directly to the driver and are driver specific."
type: "object"
additionalProperties:
type: "string"
Labels:
description: "User-defined key/value metadata."
type: "object"
additionalProperties:
type: "string"
example:
Name: "tardis"
Labels:
com.example.some-label: "some-value"
com.example.some-other-label: "some-other-value"
Driver: "custom"
VolumeListResp:
type: "object"
required: [Volumes, Warnings]
properties:
Volumes:
type: "array"
x-nullable: false
description: "List of volumes"
items:
$ref: "#/definitions/VolumeInfo"
Warnings:
type: "array"
x-nullable: false
description: "Warnings that occurred when fetching the list of volumes"
items:
type: "string"
ExecCreateConfig:
type: "object"
description: is a small subset of the Config struct that holds the configuration.
properties:
User:
type: "string"
description: "User that will run the command"
x-nullable: false
Privileged:
type: "boolean"
description: "Is the container in privileged mode"
Tty:
type: "boolean"
description: "Attach standard streams to a tty"
AttachStdin:
type: "boolean"
description: "Attach the standard input, makes possible user interaction"
AttachStderr:
type: "boolean"
description: "Attach the standard error"
AttachStdout:
type: "boolean"
description: "Attach the standard output"
Detach:
type: "boolean"
description: "Execute in detach mode"
DetachKeys:
type: "string"
description: "Escape keys for detach"
Cmd:
type: "array"
description: "Execution commands and args"
minItems: 1
items:
type: "string"
ContainerProcessList:
description: OK Response to ContainerTop operation
type: "object"
properties:
Titles:
description: "The ps column titles"
type: "array"
items:
type: "string"
Processes:
description: "Each process running in the container, where each is process is an array of values corresponding to the titles"
type: "array"
items:
type: "array"
items:
type: "string"
ExecCreateResp:
type: "object"
description: contains response of Remote API POST "/containers/{name:.*}/exec".
properties:
Id:
type: "string"
description: ID is the exec ID
ExecStartConfig:
type: "object"
description: ExecStartConfig is a temp struct used by execStart.
properties:
Detach:
description: ExecStart will first check if it's detached
type: "boolean"
Tty:
description: Check if there's a tty
type: "boolean"
example:
Detach: false
Tty: false
ContainerExecInspect:
type: "object"
description: holds information about a running process started.
required: [ID, Running, ExitCode, ProcessConfig, OpenStdin, OpenStderr, OpenStdout, CanRemove, ContainerID, DetachKeys]
properties:
ID:
x-nullable: false
type: "string"
description: "The ID of this exec"
Running:
x-nullable: false
type: "boolean"
ExitCode:
x-nullable: false
type: "integer"
description: "The last exit code of this container"
ProcessConfig:
x-nullable: false
$ref: "#/definitions/ProcessConfig"
OpenStdin:
x-nullable: false
type: "boolean"
OpenStderr:
x-nullable: false
type: "boolean"
OpenStdout:
x-nullable: false
type: "boolean"
CanRemove:
x-nullable: false
type: "boolean"
ContainerID:
x-nullable: false
type: "string"
description: "The ID of this container"
DetachKeys:
x-nullable: false
type: "string"
ProcessConfig:
type: "object"
description: ExecProcessConfig holds information about the exec process.
required: [privileged, user, tty, entrypoint, arguments]
properties:
privileged:
x-nullable: false
type: "boolean"
user:
x-nullable: false
type: "string"
tty:
x-nullable: false
type: "boolean"
entrypoint:
x-nullable: false
type: "string"
arguments:
x-nullable: false
type: "array"
items:
type: "string"
ContainerJSON:
description: |
ContainerJSON contains response of Engine API:
GET "/containers/{id}/json"
type: "object"
properties:
Id:
description: "The ID of the container"
type: "string"
Created:
description: "The time the container was created"
type: "string"
Path:
description: "The path to the command being run"
type: "string"
Args:
description: "The arguments to the command being run"
type: "array"
items:
type: "string"
State:
description: "The state of the container."
$ref: "#/definitions/ContainerState"
Image:
description: "The container's image"
type: "string"
ResolvConfPath:
type: "string"
HostnamePath:
type: "string"
HostsPath:
type: "string"
LogPath:
type: "string"
Name:
type: "string"
RestartCount:
type: "integer"
Driver:
type: "string"
MountLabel:
type: "string"
ProcessLabel:
type: "string"
AppArmorProfile:
type: "string"
ExecIDs:
description: "exec ids of container"
type: "array"
items:
type: "string"
HostConfig:
$ref: "#/definitions/HostConfig"
SizeRw:
description: "The size of files that have been created or changed by this container."
type: "integer"
format: "int64"
x-nullable: true
SizeRootFs:
description: "The total size of all the files in this container."
type: "integer"
format: "int64"
x-nullable: true
Config:
$ref: "#/definitions/ContainerConfig"
Snapshotter:
$ref: "#/definitions/SnapshotterData"
GraphDriver:
$ref: "#/definitions/GraphDriverData"
Mounts:
type: "array"
description: "Set of mount point in a container."
items:
$ref: "#/definitions/MountPoint"
NetworkSettings:
description: "NetworkSettings exposes the network settings in the API."
$ref: "#/definitions/NetworkSettings"
ContainerState:
type: "object"
required: [StartedAt, FinishedAt]
properties:
Status:
$ref: "#/definitions/Status"
Running:
description: |
Whether this container is running.
Note that a running container can be _paused_. The `Running` and `Paused`
booleans are not mutually exclusive:
When pausing a container (on Linux), the cgroups freezer is used to suspend
all processes in the container. Freezing the process requires the process to
be running. As a result, paused containers are both `Running` _and_ `Paused`.
Use the `Status` field instead to determine if a container's state is "running".
type: "boolean"
Paused:
description: "Whether this container is paused."
type: "boolean"
Restarting:
description: "Whether this container is restarting."
type: "boolean"
OOMKilled:
description: "Whether this container has been killed because it ran out of memory."
type: "boolean"
Dead:
description: "Whether this container is dead."
type: "boolean"
Pid:
description: "The process ID of this container"
type: "integer"
ExitCode:
description: "The last exit code of this container"
type: "integer"
Error:
description: "The error message of this container"
type: "string"
StartedAt:
description: "The time when this container was last started."
type: "string"
x-nullable: false
FinishedAt:
description: "The time when this container last exited."
type: "string"
x-nullable: false
ContainerLogsOptions:
type: "object"
properties:
ShowStdout:
description: "Return logs from `stdout`"
type: "boolean"
ShowStderr:
description: "Return logs from `stderr`"
type: "boolean"
Since:
description: "Only return logs after this time, as a UNIX timestamp"
type: "string"
Until:
description: "Only reture logs before this time, as a UNIX timestamp"
type: "string"
Timestamps:
description: "Add timestamps to every log line"
type: "boolean"
Follow:
description: "Return logs as a stream"
type: "boolean"
Tail:
description: "Only reture this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines."
type: "string"
Details:
description: "Show extra details provided to logs"
type: "boolean"
description: The parameters to filter the log.
Status:
description: The status of the container. For example, "running" or "exited".
type: "string"
enum: ["created", "running", "stopped", "paused", "restarting", "removing", "exited", "dead"]
SnapshotterData:
description: "Information about a container's snapshotter."
type: "object"
required: [Name, Data]
properties:
Name:
type: "string"
x-nullable: false
Data:
type: "object"
x-nullable: false
additionalProperties:
type: "string"
GraphDriverData:
description: "Information about a container's graph driver."
type: "object"
required: [Name, Data]
properties:
Name:
type: "string"
x-nullable: false
Data:
type: "object"
x-nullable: false
additionalProperties:
type: "string"
MountPoint:
type: "object"
description: "A mount point inside a container"
x-nullable: false
properties:
Type:
type: "string"
ID:
type: "string"
Name:
type: "string"
Source:
type: "string"
Destination:
type: "string"
Driver:
type: "string"
Mode:
type: "string"
RW:
type: "boolean"
CopyData:
type: "boolean"
Named:
type: "boolean"
Replace:
type: "string"
Propagation:
type: "string"
NetworkSettings:
description: "NetworkSettings exposes the network settings in the API."
type: "object"
properties:
Bridge:
description: Name of the network'a bridge (for example, `pouch-br`).
type: "string"
example: "pouch-br"
SandboxID:
description: SandboxID uniquely represents a container's network stack.
type: "string"
example: "9d12daf2c33f5959c8bf90aa513e4f65b561738661003029ec84830cd503a0c3"
HairpinMode:
description: "Indicates if hairpin NAT should be enabled on the virtual interface"
type: "boolean"
example: false
LinkLocalIPv6Address:
description: "IPv6 unicast address using the link-local prefix"
type: "string"
example: "fe80::42:acff:fe11:1"
LinkLocalIPv6PrefixLen:
description: Prefix length of the IPv6 unicast address.
type: "integer"
example: "64"
Ports:
$ref: "#/definitions/PortMap"
SandboxKey:
description: SandboxKey identifies the sandbox
type: "string"
example: "/var/run/pouch/netns/8ab54b426c38"
# TODO is SecondaryIPAddresses actually used?
SecondaryIPAddresses:
description: ""
type: "array"
items:
$ref: "#/definitions/IPAddress"
x-nullable: true
# TODO is SecondaryIPv6Addresses actually used?
SecondaryIPv6Addresses:
description: ""
type: "array"
items:
$ref: "#/definitions/IPAddress"
x-nullable: true
Networks:
description: "Information about all networks that the container is connected to"
type: "object"
additionalProperties:
$ref: "#/definitions/EndpointSettings"
x-nullable: true
IPAddress:
description: Address represents an IPv4 or IPv6 IP address.
type: "object"
properties:
Addr:
description: IP address.
type: "string"
PrefixLen:
description: Mask length of the IP address.
type: "integer"
PortMap:
description: |
PortMap describes the mapping of container ports to host ports, using the
container's port-number and protocol as key in the format `<port>/<protocol>`,
for example, `80/udp`.
If a container's port is mapped for both `tcp` and `udp`, two separate
entries are added to the mapping table.
type: "object"
additionalProperties:
type: "array"
items:
$ref: "#/definitions/PortBinding"
example:
"443/tcp":
- HostIp: "127.0.0.1"
HostPort: "4443"
"80/tcp":
- HostIp: "0.0.0.0"
HostPort: "80"
- HostIp: "0.0.0.0"
HostPort: "8080"
"80/udp":
- HostIp: "0.0.0.0"
HostPort: "80"
"2377/tcp": null
PortBinding:
description: "PortBinding represents a binding between a host IP address and a host port"
type: "object"
x-nullable: true
properties:
HostIp:
description: "Host IP address that the container's port is mapped to."
type: "string"
example: "127.0.0.1"
HostPort:
description: "Host port number that the container's port is mapped to."
type: "string"
example: "4443"
RestartPolicy:
description: "Define container's restart policy"
type: "object"
properties:
Name:
type: "string"
MaximumRetryCount:
type: "integer"
NetworkConnect:
type: "object"
description: "contains the request for the remote API: POST /networks/{id:.*}/connect"
properties:
Container:
type: "string"
description: "The ID or name of the container to connect to the network."
EndpointConfig:
$ref: "#/definitions/EndpointSettings"
NetworkCreateConfig:
type: "object"
description: "contains the request for the remote API: POST /networks/create"
allOf:
- properties:
Name:
description: "Name is the name of the network."
type: "string"
- $ref: "#/definitions/NetworkCreate"
NetworkCreateResp:
type: "object"
description: "contains the response for the remote API: POST /networks/create"
properties:
Id:
description: "ID is the id of the network."
type: "string"
Warning:
description: "Warning means the message of create network result."
type: "string"
NetworkCreate:
type: "object"
description: "is the expected body of the \"create network\" http request message"
properties:
CheckDuplicate:
type: "boolean"
description: "CheckDuplicate is used to check the network is duplicate or not."
Driver:
type: "string"
description: "Driver means the network's driver."
EnableIPv6:
type: "boolean"
IPAM:
type: "object"
$ref: "#/definitions/IPAM"
Internal:
type: "boolean"
description: "Internal checks the network is internal network or not."
Options:
type: "object"
additionalProperties:
type: "string"
Labels:
type: "object"
additionalProperties:
type: "string"
NetworkInspectResp:
type: "object"
description: "is the expected body of the 'GET networks/{id}'' http request message"
properties:
Name:
type: "string"
description: "Name is the requested name of the network"
Id:
type: "string"
description: "ID uniquely identifies a network on a single machine"
Scope:
type: "string"
description: "Scope describes the level at which the network exists."
Driver:
type: "string"
description: "Driver means the network's driver."
EnableIPv6:
type: "boolean"
description: "EnableIPv6 represents whether to enable IPv6."
IPAM:
type: "object"
description: "IPAM is the network's IP Address Management."
$ref: "#/definitions/IPAM"
Internal:
type: "boolean"
description: "Internal checks the network is internal network or not."
Options:
type: "object"
description: "Options holds the network specific options to use for when creating the network."
additionalProperties:
type: "string"
Labels:
type: "object"
description: "Labels holds metadata specific to the network being created."
additionalProperties:
type: "string"
NetworkResource:
type: "object"
description: "NetworkResource is the body of the \"get network\" http response message"
properties:
Name:
description: "Name is the requested name of the network"
type: "string"
Id:
description: "ID uniquely identifies a network on a single machine"
type: "string"
Scope:
description: "Scope describes the level at which the network exists (e.g. `global` for cluster-wide or `local` for machine level)"
type: "string"
Driver:
description: "Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)"
type: "string"
EnableIPv6:
description: "EnableIPv6 represents whether to enable IPv6"
type: "boolean"
IPAM:
description: ""
type: "object"
$ref: "#/definitions/IPAM"
Internal:
description: "Internal represents if the network is used internal only"
type: "boolean"
Containers:
description: "Containers contains endpoints belonging to the network"
type: "object"
IndexConfigs:
type: "object"
additionalProperties:
$ref: "#/definitions/EndpointResource"
Options:
description: "Options holds the network specific options to use for when creating the network"
type: "object"
x-nullable: true
additionalProperties:
type: "string"
example:
com.example.some-options: "some-option"
com.example.some-other-options: "some-other-option"
Labels:
description: "Labels holds metadata specific to the network being created"
type: "object"
x-nullable: true
additionalProperties:
type: "string"
example:
com.example.some-label: "some-label"
com.example.some-other-label: "some-other-label"
EndpointResource:
type: "object"
description: "NetworkResource is the body of the \"get network\" http response message"
properties:
Name:
description: "Name is the requested name of the network"
type: "string"
EndpointID:
description: "EndpointID represents the endpoint's id"
type: "string"
MacAddress:
description: "MacAddress represents the enpoint's mac address"
type: "string"
IPv4Address:
description: "IPv4Address represents the enpoint's ipv4 address"
type: "string"
IPv6Address:
description: "IPv4Address represents the enpoint's ipv6 address"
type: "string"
IPAM:
type: "object"
description: "represents IP Address Management"
properties:
Driver:
type: "string"
Options:
type: "object"
additionalProperties:
type: "string"
Config:
type: "array"
items:
$ref: '#/definitions/IPAMConfig'
IPAMConfig:
description: "represents IPAM configurations"
type: "object"
x-nullable: false
properties:
Subnet:
description: "subnet address for network"
type: "string"
IPRange:
description: "sub ip range in sub-network"
type: "string"
Gateway:
description: "gateway for sub-network"
type: "string"
AuxAddress:
description: "aux address in sub-network"
type: "object"
additionalProperties:
type: "string"
ResizeOptions:
description: "options of resizing container tty size"
type: "object"
properties:
Height:
type: "integer"
Width:
type: "integer"
ContainerRemoveOptions:
description: "options of remove container"
type: "object"
properties:
Force:
type: "boolean"
Volumes:
type: "boolean"
Link:
type: "boolean"
ContainerListOptions:
description: |
options of list container, filters (a `map[string][]string`) to process on the container list. Available filters:
- `id=container-id`
- `name=container-name`
- `status=running`
- `label=key` or `label=key=value`
- `network=container-network`
- `volume=volume-id`
type: "object"
properties:
All:
type: "boolean"
Since:
type: "string"
Before:
type: "string"
Limit:
type: "integer"
Filter:
type: "object"
additionalProperties:
type: "array"
items:
type: "string"
parameters:
id:
name: id
in: path
required: true
description: ID or name of the container
type: string
imageid:
name: imageid
in: path
required: true
description: Image name or id
type: string
responses:
401ErrorResponse:
description: An unexpected 401 error occurred.
schema:
$ref: "#/definitions/Error"
404ErrorResponse:
description: An unexpected 404 error occurred.
schema:
$ref: "#/definitions/Error"
500ErrorResponse:
description: An unexpected server error occurred.
schema:
$ref: "#/definitions/Error"
|