{"id":35382,"date":"2023-02-02T06:45:10","date_gmt":"2023-02-01T22:31:43","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/"},"modified":"2024-04-29T12:42:48","modified_gmt":"2024-04-29T04:42:48","slug":"docker-%e5%92%8c-lxc","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/","title":{"rendered":"Docker \u548c LXC"},"content":{"rendered":"<p>Docker \u306f\u305f\u3060 LXC \u3092\u518d\u767a\u660e\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u304a\u8a71\u3002DotCloud \u306e\u30d5\u30a1\u30a6\u30f3\u30c0\u30fc\u306b\u3088\u308b stackoverflow \u306e\u8cea\u554f\u3078\u306e\u56de\u7b54\u3002<\/p>\n<p>LXC \u306f\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3084\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30b0\u30eb\u30fc\u30d7\u7b49\u306e Linux \u30ab\u30fc\u30cd\u30eb\u30b1\u30fc\u30d1\u30d3\u30ea\u30c6\u30a3\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u304b\u3089\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u5316\u3057\u3001\u305d\u308c\u3089\u30d7\u30ed\u30bb\u30b9\u3078\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u5272\u5f53\u3066\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3057\u3066\u3044\u308b\u3002Docker \u306f\u3053\u306e\u30ed\u30fc\u30ec\u30d9\u30eb\u306e\u30ab\u30fc\u30cd\u30eb\u6a5f\u80fd\u3092\u8ef8\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>Docker \u5bf9 LXC \u63d0\u4f9b\u7684\u529f\u80fd\u7684\u652f\u6301<\/h2>\n<p>\u3069\u3093\u306a\u30de\u30b7\u30f3\u3078\u3082\u30dd\u30fc\u30bf\u30d6\u30eb\u30c7\u30d7\u30ed\u30a4\u53ef\u80fd Docker \u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u5168\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092 (Docker \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5168\u3066\u306e\u30de\u30b7\u30f3\u3067\u52d5\u4f5c\u3059\u308b) \u5358\u4e00\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5165\u308c\u3001\u305d\u308c\u306f\u3069\u3053\u3067\u5b9f\u884c\u3057\u3066\u3082\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u74b0\u5883\u304c\u540c\u4e00\u306b\u306a\u308a\u307e\u3059\u3002LXC \u304c\u63d0\u4f9b\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306f\u30dd\u30fc\u30bf\u30d6\u30eb\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u3068\u3063\u3066\u5fc5\u8981\u4e0d\u53ef\u6b20\u306a\u6a5f\u80fd\u3067\u3059\u304c\u3001\u305d\u308c\u3060\u3051\u3067\u306f\u30dd\u30fc\u30bf\u30d6\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3057\u3042\u306a\u305f\u304c LXC \u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u304a\u308a\u3001\u305d\u306e LXC \u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8907\u88fd\u3057\u79c1\u306b\u9001\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u79c1\u306e LXC \u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u30de\u30b7\u30f3\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3082\u69cb\u6210\u304c\u9055\u3046\u306e\u3067\u52d5\u4f5c\u3057\u306a\u3044\u3067\u3057\u3087\u3046: \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30ed\u30ae\u30f3\u30b0\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3001\u306a\u3069\u3002Docker \u306f\u3053\u308c\u3089\u30de\u30b7\u30f3\u7279\u6709\u306e\u8a2d\u5b9a\u3092\u62bd\u8c61\u5316\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3069\u3093\u306a\u30de\u30b7\u30f3\u3078\u3082\u3001\u3069\u3093\u306a\u69cb\u6210\u3067\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4e2d\u5fc3 Docker \u306f\u4eee\u60f3\u30b5\u30fc\u30d0\u3067\u306f\u306a\u304f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u306b\u6700\u9069\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f API, UI, \u30c7\u30b6\u30a4\u30f3\u54f2\u5b66, \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5bfe\u7167\u7684\u306b LXC \u30d8\u30eb\u30d1\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u8efd\u91cf\u306a\u4eee\u60f3\u30b5\u30fc\u30d0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u304a\u308a\u3001\u57fa\u672c\u3068\u306a\u308b\u30b5\u30fc\u30d0\u306f\u30d6\u30fc\u30c8\u304c\u9ad8\u901f\u3067 RAM \u4f7f\u7528\u91cf\u3082\u308f\u305a\u304b\u3067\u3059\u3002\u79c1\u9054\u306f\u3088\u308a\u30b3\u30f3\u30c6\u30ca\u3088\u308a\u3067\u3059\u3002<\/p>\n<p>\u81ea\u52d5\u30d3\u30eb\u30c9 Docker \u306b\u306f\u958b\u767a\u8005\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f9d\u5b58\u95a2\u4fc2\u3001\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u7b49\u3092\u5229\u7528\u3057\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u3092\u81ea\u52d5\u7684\u306b\u30a2\u30bb\u30f3\u30d6\u30eb\u3059\u308b\u30c4\u30fc\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u306b\u306f\u30de\u30b7\u30f3\u306e\u69cb\u6210\u306b\u95a2\u4fc2\u306a\u304f make, maven, chef, puppet, salt, debian \u30d1\u30c3\u30b1\u30fc\u30b8, rpm \u30d5\u30a1\u30a4\u30eb, \u30bd\u30fc\u30b9\u306e tarball, \u305d\u306e\u4ed6\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0 Docker \u306b\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u9593\u306e\u5dee\u7570\u306e\u78ba\u8a8d\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30df\u30c3\u30c8\u3001\u30ed\u30eb\u30d0\u30c3\u30af\u306a\u3069\u3001git \u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30ca\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u6a5f\u80fd\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30b3\u30f3\u30c6\u30ca\u304c\u8ab0\u306b\u3088\u3063\u3066\u3069\u306e\u3088\u3046\u306b\u5909\u66f4\u3055\u308c\u305f\u304b\u5c65\u6b74\u304c\u8ffd\u3048\u308b\u305f\u3081\u3001\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u304b\u3089\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u958b\u767a\u8005\u307e\u3067\u306e\u3059\u3079\u3066\u306e\u8a18\u9332\u3092\u8fbf\u308c\u307e\u3059\u3002Docker \u306f git pull \u306e\u3088\u3046\u306a\u5dee\u5206\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3084\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6a5f\u80fd\u304c\u3042\u308b\u306e\u3067\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u5dee\u5206\u306e\u307f\u8ee2\u9001\u3059\u308c\u3070 OK \u3067\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u518d\u5229\u7528 \u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u3088\u308a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306e &#8220;\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8&#8221; \u3068\u3057\u3066\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u306f\u624b\u52d5\u3067\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u304c\u3001\u81ea\u52d5\u30d3\u30eb\u30c9\u306e\u4e00\u90e8\u3068\u3057\u3066\u3082\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u7a76\u6975\u306e Python \u5b9f\u884c\u74b0\u5883\u3092\u4f5c\u6210\u3057\u3001\u7570\u306a\u308b 10 \u500b\u306e Python \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d9\u30fc\u30b9\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u4ed6\u306b\u3082\u7a76\u6975\u306e PostgreSQL \u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3089\u3001\u305d\u308c\u3092\u5c06\u6765\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u518d\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5171\u6709 Docker \u306f\u4fbf\u5229\u306a\u30b3\u30f3\u30c6\u30ca\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u30d1\u30d6\u30ea\u30c3\u30af\u30ea\u30dd\u30b8\u30c8\u30ea (http:\/\/index.docker.io\/) \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002redis, couchdb, postgres, IRC Proxy, rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0, hadoop, \u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u591a\u5c90\u306b\u6e21\u308a\u307e\u3059\u3002\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u306f Docker \u30c1\u30fc\u30e0\u304c\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3066\u3044\u308b\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30ec\u30b8\u30b9\u30c8\u30ea\u305d\u306e\u3082\u306e\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u3067\u30ec\u30b8\u30b9\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u4fdd\u5b58\u3057\u3001\u305d\u3053\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0 Docker \u306f\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3068\u30c7\u30d7\u30ed\u30a4\u3092\u81ea\u52d5\u5316\u3057\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306e API \u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002Docker \u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3059\u308b\u591a\u304f\u306e\u30c4\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002 PaaS \u30e9\u30a4\u30af\u306a\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8 \u304c\u3067\u304d\u308b Dokku, Deis, Flynn, \u8907\u6570\u30ce\u30fc\u30c9\u306e\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3 maestro, salt, mesos, openstack nova, \u7ba1\u7406\u7528\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9 docker-ui, openstack horizon, shipyard, \u69cb\u6210\u7ba1\u7406 chef, puppet, CI jenkins, strider, travis \u306a\u3069\u306a\u3069\u3002<\/p>\n<h2>\u5173\u4e8eLXC<\/h2>\n<p>LXC = Linux Containers<\/p>\n<p>\u7c21\u5358\u306b\u3044\u3046\u3068 &#8220;\u5358\u4e00\u306e Linux \u30ab\u30fc\u30cd\u30eb\u3092\u30d7\u30ed\u30bb\u30b9\u6bce\u306b\u9694\u96e2\u3057\u3001\u8907\u6570\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u3092\u5236\u5fa1\u3059\u308b\u4eee\u60f3\u74b0\u5883&#8221;<\/p>\n<p>&#8216;LXC \u306f Linux \u30ab\u30fc\u30cd\u30eb\u306e\u9694\u96e2\u6a5f\u80fd\u306b\u5bfe\u3059\u308b\u30e6\u30fc\u30b6\u7a7a\u9593\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3002\u5f37\u529b\u306a API \u3068\u30b7\u30f3\u30d7\u30eb\u306a\u30c4\u30fc\u30eb\u3092\u7528\u3044\u3066\u3001\u7c21\u5358\u306b\u30b7\u30b9\u30c6\u30e0\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u4f5c\u6210\u3001\u7ba1\u7406\u3067\u304d\u308b\u3002&#8217; &#8211; LXC &#8211; Linux Containers<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb + \u30d1\u30c3\u30c1 + \u30e6\u30fc\u30b6\u7a7a\u9593\u30c4\u30fc\u30eb: OpenVZ, Linux VServer, etc<br \/>\n\u30ab\u30fc\u30cd\u30eb + \u30e6\u30fc\u30b6\u7a7a\u9593\u30c4\u30fc\u30eb: LXC, libvirt (LXC driver), systemd, etc<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"lxc_architecture.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d22ee37434c4406c28af8\/6-0.png\" alt=\"lxc_architecture.png\" \/><\/div>\n<h2>LXC\u3001Docker \u4f7f\u7528\u7684\u5185\u6838\u529f\u80fd\u548c\u89d2\u8272<\/h2>\n<h3>\u5185\u6838\u540d\u79f0\u7a7a\u95f4 (\u547d\u540d\u7a7a\u95f4)<\/h3>\n<p>\u5c06\u7cfb\u7edf\u8d44\u6e90\u8fdb\u884c\u9694\u79bb\uff0c\u4f7f\u5176\u4e92\u4e0d\u5e72\u6270\u3002<\/p>\n<div>\n<div class=\"post-table\">\u540d\u524d\u7a7a\u9593&gt;= \u30d0\u30fc\u30b8\u30e7\u30f3\u9694\u96e2\u5bfe\u8c61Mount2.4.19\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0UTS2.6.19\u30db\u30b9\u30c8\u540d, NIS \u30c9\u30e1\u30a4\u30f3\u540dIPC2.6.19\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1, POSIX \u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fcPID2.6.24\u30d7\u30ed\u30bb\u30b9ID, \u30b3\u30f3\u30c6\u30ca\u304c\u9055\u3048\u3070\u540c\u4e00 ID \u53efNetwork(2.6.24) 2.6.29\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c7\u30d0\u30a4\u30b9, IP \u30a2\u30c9\u30ec\u30b9, IP \u30c6\u30fc\u30d6\u30eb\u7b49User(2.6.23) 3.8\u30e6\u30fc\u30b6 (<code>uid<\/code>), \u30b0\u30eb\u30fc\u30d7 (<code>group<\/code>)<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Linux_kernel_map.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d22ee37434c4406c28af8\/11-0.png\" alt=\"Linux_kernel_map.png\" \/><\/div>\n<p>\u53c2\u8003: \u64cd\u4f5c\u4e2d\u7684\u547d\u540d\u7a7a\u95f4\uff0c\u7b2c1\u90e8\u5206: \u547d\u540d\u7a7a\u95f4\u6982\u8ff0<\/p>\n<h3>\u63a7\u5236\u7ec4\uff08cgroups\uff09<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">cgroups \u306f LXC \u306e\u4e00\u90e8\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u3066\u3044\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u524d\u63d0\u77e5\u8b58<\/ul>\n<\/li>\n<\/ul>\n<p>Linux \u306e\u30d7\u30ed\u30bb\u30b9\u30e2\u30c7\u30eb<br \/>\n\u968e\u5c64\u578b. \u5b50\u306f\u89aa\u306e\u74b0\u5883 (PATH \u5909\u6570\u3068\u304b), \u5c5e\u6027 (\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3068\u304b) \u3092\u7d99\u627f<br \/>\n\u5358\u4e00\u306e\u30eb\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9 (init), init \u30d7\u30ed\u30bb\u30b9\u306f\u30d6\u30fc\u30c8\u6642\u306b\u30ab\u30fc\u30cd\u30eb\u304c\u8d77\u52d5<\/p>\n<p>\u30bf\u30b9\u30af (\u30d7\u30ed\u30bb\u30b9) \u6bce\u306b\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0 (CPU, \u30e1\u30e2\u30ea, \u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u7b49\u306e\u30ea\u30bd\u30fc\u30b9) \u306e\u5229\u7528\u3092\u5236\u9650\u3059\u308b<br \/>\n\u7570\u306a\u308b\u540d\u524d\u7a7a\u9593\u306b cgroup \u3092\u5206\u96e2\u3057\u3001\u4ed6\u306e\u30bf\u30b9\u30af\u304b\u3089\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u4e0d\u53ef\u8996\u306b\u3059\u308b<\/p>\n<p>\u4e3b\u8981\u5b50\u7cfb\u7edf<\/p>\n<div>\n<div class=\"post-table\">\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u6a5f\u80fdblkio\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u306e\u5165\u51fa\u529b\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1 (Read &lt;= N bytes\/sec)cpu\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306b\u3088\u308a CPU \u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1cpuset\u30de\u30eb\u30c1\u30b3\u30a2\u306e\u5834\u5408\u306b\u5229\u7528\u3059\u308b CPU, \u30e1\u30e2\u30ea\u30ce\u30fc\u30c9\u3092\u5236\u5fa1devices\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1freezer\u51e6\u7406\u306e\u4e00\u6642\u505c\u6b62, \u518d\u958bmemory\u30e1\u30e2\u30ea\u30ea\u30bd\u30fc\u30b9\u306e\u5236\u5fa1hugetlbN byte\u307e\u3067\u3068\u304b\u306e\u5236\u9650net_clsLinux \u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9 (tc) \u304c\u30d1\u30b1\u30c3\u30c8\u3092\u8b58\u5225\u3067\u304d\u308b\u3088\u3046, \u30af\u30e9\u30b9\u8b58\u5225\u5b50 (classid) \u306b\u3088\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d1\u30b1\u30c3\u30c8\u306b\u30bf\u30b0\u3092\u3064\u3051\u308bnet_prioNIC \u5225\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u3092\u8a2d\u5b9a\u3059\u308b<del>ns<\/del><del>\u540d\u524d\u7a7a\u9593\u3092\u5236\u5fa1 (Linux 3.0 \u3067\u5ec3\u6b62)<\/del> &#8211; <a class=\"user-mention js-hovercard\" title=\"tenforward\" href=\"\/tenforward\" data-hovercard-target-type=\"user\" data-hovercard-target-name=\"tenforward\">@tenforward<\/a> \u3055\u3093\u3054\u6307\u6458\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n<h3>chroot\uff08pivot_root\uff09\u91cd\u547d\u540d\u5f53\u524d\u6839\u76ee\u5f55<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30bb\u30b9\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>\u79fb\u52d5\u3059\u308b\u3068\u3001\u305d\u306e\u7bc4\u56f2\u5916\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308b<br \/>\n\u521d\u671f\u72b6\u614b\u306f\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30c8<\/p>\n<p>pivot_root \u306f root \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u5909\u66f4\u3059\u308b<\/p>\n<h3>Apparmor \u548c SELinux \u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u5f3a\u5236\u8bbf\u95ee\u63a7\u5236\uff08MAC\uff09\u7684\u5b89\u5168\u673a\u5236<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">AppArmor: \u30d7\u30ed\u30b0\u30e9\u30e0 (\u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u30d9\u30fc\u30b9) \u6bce\u306b\u3001\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3084\u30bd\u30b1\u30c3\u30c8\u3078\u306e\u64cd\u4f5c\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u64cd\u4f5c\u306f\u7981\u6b62\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">SELinux: \u30e6\u30fc\u30b6=\u30ed\u30fc\u30eb, \u5168\u3066\u306e\u30d7\u30ed\u30bb\u30b9=\u30c9\u30e1\u30a4\u30f3, \u5168\u3066\u306e\u30ea\u30bd\u30fc\u30b9 (\u30d5\u30a1\u30a4\u30eb, \u30bd\u30b1\u30c3\u30c8\u306a\u3069) =\u30bf\u30a4\u30d7\u3068\u3044\u3046\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u3001\u30e6\u30fc\u30b6\u304c\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30c9\u30e1\u30a4\u30f3\u3001\u30c9\u30e1\u30a4\u30f3\u304c\u64cd\u4f5c\u53ef\u80fd\u306a\u30ea\u30bd\u30fc\u30b9\u3092\u6307\u5b9a\u3059\u308b \u3081\u3093\u3069\u3044 \uff3c(^o^)\uff0f<\/ul>\n<h3>Seccomp\u653f\u7b56<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Secure computing mode \u306e\u7565<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30bb\u30b9\u3092\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u5316\u3057\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Berkley Packet Filter (BPF) \u304c\u30d9\u30fc\u30b9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">JIT \u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b<\/ul>\n<h3>\u5185\u6838\u529f\u80fd<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30bb\u30b9\u306b\u5bfe\u3057\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u7279\u6a29\u3092\u4e0e\u3048\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">UNIX \u30b7\u30b9\u30c6\u30e0\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u6a29\u9650, \u7279\u6a29 (root) \u306e 2 \u7a2e\u985e\u306e\u307f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u69d8\u3005\u306a\u7279\u6a29\u306e\u5272\u5f53\u3066\u304c\u5fc5\u8981\u3002\u30d7\u30ed\u30bb\u30b9\u306e\u4e0d\u5177\u5408\u3001\u653b\u6483\u3067\u4e57\u3063\u53d6\u3089\u308c\u305f\u3089\u7d42\u4e86<\/ul>\n<\/li>\n<\/ul>\n<p>\u7279\u6a29\u30dd\u30fc\u30c8 (1024 \u756a\u30dd\u30fc\u30c8\u4ee5\u4e0b) \u306e\u5272\u308a\u5f53\u3066<br \/>\nraw \u30bd\u30b1\u30c3\u30c8\u3092\u30aa\u30fc\u30d7\u30f3<br \/>\n\u30b7\u30b9\u30c6\u30e0\u6642\u523b\u5236\u5fa1<\/p>\n<p>\u7279\u6a29\u3092\u30b1\u30fc\u30d1\u30d3\u30ea\u30c6\u30a3\u3068\u3044\u3046\u5358\u4f4d\u3067\u7d30\u5206\u5316\u3057\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u7279\u6a29\u3092\u30d7\u30ed\u30bb\u30b9\u306b\u5272\u308a\u5f53\u3066\u308b<br \/>\n\u30b1\u30fc\u30d1\u30d3\u30ea\u30c6\u30a3\u4e00\u89a7<\/p>\n<h2>LXC\u548cDocker\u4e4b\u95f4\u7684\u5173\u7cfb<\/h2>\n<ul class=\"post-ul\">Docker &lt;= 0.8 \u306f LXC (\u3084 libvirt, systemd-nspawn) \u7d4c\u7531\u3067\u540d\u524d\u7a7a\u9593, cgroups \u7b49\u3092\u5229\u7528\u3057\u3066\u3044\u305f Docker &gt;= 0.9 \u306f libcontainer \u30c9\u30e9\u30a4\u30d0\u7d4c\u7531 (DOCKER 0.9: INTRODUCING EXECUTION DRIVERS AND LIBCONTAINER)<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"docker-execdriver-diagram.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d22ee37434c4406c28af8\/28-0.png\" alt=\"docker-execdriver-diagram.png\" \/><\/div>\n<p>libcontainer \u304c\u30c7\u30d5\u30a9\u3001lxc \u3092\u4f7f\u3046\u5834\u5408\u306f -e lxc \u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3059\u308b<\/p>\n<h2>\u8ffd\u52a0\u4fe1\u606f<\/h2>\n<ul class=\"post-ul\">\u306f\u3066\u30d6\u3067 &#8220;\u81ea\u52d5\u30d3\u30eb\u30c9&#8221; \u306b\u3064\u3044\u3066\u8a00\u53ca\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f Dockerfile \u306b make, apt \u7b49\u306e\u30b3\u30de\u30f3\u30c9\u304c\u66f8\u3051\u3066 docker build \u3055\u3048\u3059\u308c\u3070\u30a8\u30f3\u30b8\u30f3\u304c\u52dd\u624b\u306b\u30d3\u30eb\u30c9\u5b9f\u884c\u3057\u3066\u304f\u308c\u307e\u3059\u3088\u3063\u3066\u8a71\u3060\u3068\u89e3\u91c8\u3057\u307e\u3057\u305f<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u306f\u305f\u3060 LXC \u3092\u518d\u767a\u660e\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u304a\u8a71\u3002DotCloud \u306e\u30d5\u30a1\u30a6\u30f3\u30c0\u30fc\u306b\u3088\u308b  [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-35382","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker \u548c LXC - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/docker-\u548c-lxc\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker \u548c LXC\" \/>\n<meta property=\"og:description\" content=\"Docker \u306f\u305f\u3060 LXC \u3092\u518d\u767a\u660e\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u304a\u8a71\u3002DotCloud \u306e\u30d5\u30a1\u30a6\u30f3\u30c0\u30fc\u306b\u3088\u308b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/docker-\u548c-lxc\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-01T22:31:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T04:42:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d22ee37434c4406c28af8\/6-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/\",\"name\":\"Docker \u548c LXC - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-01T22:31:43+00:00\",\"dateModified\":\"2024-04-29T04:42:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker \u548c LXC\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Docker \u548c LXC - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/docker-\u548c-lxc\/","og_locale":"zh_CN","og_type":"article","og_title":"Docker \u548c LXC","og_description":"Docker \u306f\u305f\u3060 LXC \u3092\u518d\u767a\u660e\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u304a\u8a71\u3002DotCloud \u306e\u30d5\u30a1\u30a6\u30f3\u30c0\u30fc\u306b\u3088\u308b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/docker-\u548c-lxc\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-01T22:31:43+00:00","article_modified_time":"2024-04-29T04:42:48+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d22ee37434c4406c28af8\/6-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/","name":"Docker \u548c LXC - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-01T22:31:43+00:00","dateModified":"2024-04-29T04:42:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Docker \u548c LXC"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/docker-%e5%92%8c-lxc\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=35382"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35382\/revisions"}],"predecessor-version":[{"id":85345,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35382\/revisions\/85345"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=35382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=35382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=35382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}