{"id":35410,"date":"2024-01-10T18:37:38","date_gmt":"2023-04-03T18:16:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/"},"modified":"2024-05-04T17:45:19","modified_gmt":"2024-05-04T09:45:19","slug":"%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/","title":{"rendered":"\u9996\u6b21\u4f7f\u7528Docker"},"content":{"rendered":"<p>\u8fd9\u4e2a\u6559\u7a0b\u65e8\u5728\u4ece\u8fdeDocker\u8fd9\u4e2a\u8bcd\u90fd\u662f\u9996\u6b21\u542c\u5230\u7684\u6c34\u5e73\u4e0a\uff0c\u4e00\u76f4\u5230\u5927\u6982\u662f\u8fd9\u79cd\u611f\u89c9\u4e3a\u6b62\u3002<\/p>\n<h2>\u76ee\u6807\/\u5bf9\u8c61<\/h2>\n<p>\u5bf9\u4e8e\u6ca1\u6709\u4f7f\u7528\u8fc7Docker\u7684\u4eba\u6765\u8bf4\uff0c\u5982\u679c\u662fCUI\u547d\u4ee4\u7684\u8bdd\uff0c\u6211\u80fd\u591f\u7a0d\u5fae\u7406\u89e3\u4e00\u70b9\u3002<\/p>\n<h2>\u7b80\u8981\u6982\u62ec<\/h2>\n<p>Docker\u662f\u4e00\u79cd&#8221;\u5bb9\u5668\u5316\u865a\u62df\u5316\u6280\u672f&#8221;\u3002\u5927\u5bb6\u53ef\u80fd\u542c\u8bf4\u8fc7\u670d\u52a1\u5668\u7684\u865a\u62df\u5316\u8fd9\u4e2a\u8bcd\u5427\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u5728\u8ba1\u7b97\u673a\u5185\u90e8\u542f\u52a8\u53e6\u4e00\u4e2a\u8ba1\u7b97\u673a\uff08\u865a\u62df\u673a\uff09\u3002<br \/>\n\u4f20\u7edf\u7684\u865a\u62df\u5316\u662f\u5728\u4e3b\u673a\u64cd\u4f5c\u7cfb\u7edf\uff08\u5b89\u88c5\u5728\u673a\u5668\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff09\u4e0a\u5229\u7528\u79f0\u4e3a\u865a\u62df\u673a\u76d1\u7ba1\u5668\u7684\u865a\u62df\u5316\u8f6f\u4ef6\u6765\u542f\u52a8\u5ba2\u6237\u673a\u64cd\u4f5c\u7cfb\u7edf\u3002<br \/>\nDocker\u7684&#8221;\u5bb9\u5668\u5316\u865a\u62df\u5316&#8221;\u4e0d\u9700\u8981\u542f\u52a8\u5ba2\u6237\u673a\u64cd\u4f5c\u7cfb\u7edf\u3002\u5b83\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u5404\u79cd\u4e2d\u95f4\u4ef6\u7684\u6267\u884c\u73af\u5883\uff0c\u79f0\u4e3a\u5bb9\u5668\uff0c\u5e76\u5728\u5176\u4e2d\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<br \/>\n\u6b63\u5982\u524d\u9762\u6240\u8ff0\uff0c\u4e0d\u9700\u8981\u542f\u52a8\u5ba2\u6237\u673a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u56e0\u6b64\u5b9e\u73b0\u4e86\u6bd4\u4f20\u7edf\u65b9\u5f0f\u66f4\u8f7b\u91cf\u7684\u64cd\u4f5c\u3002<\/p>\n<p>\u3048\uff1f\u305d\u308c\u3060\u3051\uff1f<br \/>\n\u3061\u304c\u3044\u307e\u3059\u3002Docker\u306f\u305f\u3061\u3042\u3052\u308b\u30b3\u30f3\u30c6\u30ca\u3092Dockerfile\u3084Docker-compose.yml\u3068\u3044\u3063\u305f&#8217;\u8a2d\u8a08\u66f8&#8217;\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3053\u306e\u8a2d\u8a08\u66f8\u3092GitHub\u306b\u3042\u3052\u3066clone\u3057\u3066\u3082\u3089\u3063\u305f\u3089\u305d\u306e\u3072\u3068\u3082\u540c\u3058\u74b0\u5883\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3061\u4e0a\u3052\u3089\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u81ea\u5206\u306fMySQL\u304c8\u7cfb\u3060\u3063\u305f\u304c\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u306f5\u7cfb\u3067\u958b\u767a\u3057\u3066\u305f\u304b\u3089\u30a8\u30e9\u30fc\u304c\u304a\u3053\u3063\u305f\u3068\u304b\u3044\u3046\u554f\u984c\u304c\u304a\u3053\u3089\u306a\u3044\u306e\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3082Docker\u306b\u306fDocker\u5c02\u7528\u306e\u30b3\u30f3\u30c6\u30ca\u5171\u6709\u30b5\u30fc\u30d3\u30b9\u300cDockerHub\u300d\u3082\u7528\u610f\u3055\u308c\u307e\u3059\u3002\u4f7f\u3044\u65b9\u306fGitHub\u3092\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306a\u3089\u305d\u308c\u306a\u308a\u306b\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u65e2\u7136\u8a73\u7d30\u548c\u4f18\u70b9\u90fd\u592a\u591a\u4e86\uff0c\u5c31\u8bf7\u9605\u8bfb\u5148\u4eba\u4eec\u7684\u6587\u7ae0\u5427\uff08\u8bf7\u9605\u8bfb\uff09\u3002\u73b0\u5728\u5148\u8bd5\u7740\u8fd0\u884c\u4e00\u4e0b\u5427\u3002<\/p>\n<h2>\u51c6\u5907<\/h2>\n<p>\u8ba9\u6211\u4eec\u5c1d\u8bd5\u5b89\u88c5Docker\u5427<br \/>\nMac\uff1ahttps:\/\/docs.docker.com\/docker-for-mac\/install\/<br \/>\nWin10Pro\uff1ahttps:\/\/docs.docker.com\/docker-for-windows\/install\/<br \/>\nWin10Home\u4ee5\u4e0b\uff1ahttps:\/\/github.com\/docker\/toolbox\/releases<\/p>\n<p>\u5982\u679c\u4f7f\u7528Win10Home\uff0c\u8acb\u4e0b\u8f09github\u4e0a\u7684DockerToolbox-18.09.3.exe\u3002<br \/>\n\u5982\u679c\u4f7f\u7528Mac\uff0c\u5247\u9700\u8981\u4f7f\u7528sudo\u547d\u4ee4\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u53ea\u9700\u6309\u7167\u5e73\u5e38\u7684\u5b89\u88c5\u6b65\u9aa4\u8fdb\u884c\u5373\u53ef\u3002<\/p>\n<h2>\u5b9e\u8df5<\/h2>\n<h3>\u4f60\u597d\u4e16\u754c\uff01<\/h3>\n<p>\u5148\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u3002<br \/>\nWin10Home\u5b89\u88c5\u540e\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u7684Docker\u5feb\u901f\u542f\u52a8\u7ec8\u7aef\uff0c<br \/>\n\u5c1d\u8bd5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ docker run hello-world\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ docker run hello-world\r\nUnable to find image 'hello-world:latest' locally\r\nlatest: Pulling from library\/hello-world\r\n1b930d010525: Pull complete\r\nDigest: sha256:0e11c388b664df8a27a901dce21eb89f11d8292f7fca1b3e3c4321bf7897bffe\r\nStatus: Downloaded newer image for hello-world:latest\r\n\r\nHello from Docker!\r\nThis message shows that your installation appears to be working correctly.\r\n\r\nTo generate this message, Docker took the following steps:\r\n 1. The Docker client contacted the Docker daemon.\r\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\r\n    (amd64)\r\n 3. The Docker daemon created a new container from that image which runs the\r\n    executable that produces the output you are currently reading.\r\n 4. The Docker daemon streamed that output to the Docker client, which sent it\r\n    to your terminal.\r\n\r\nTo try something more ambitious, you can run an Ubuntu container with:\r\n $ docker run -it ubuntu bash\r\n\r\nShare images, automate workflows, and more with a free Docker ID:\r\n https:\/\/hub.docker.com\/\r\n\r\nFor more examples and ideas, visit:\r\n https:\/\/docs.docker.com\/get-started\/\r\n<\/code><\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306e\u304c\u51fa\u308c\u3070\u6210\u529f\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30ed\u30b0\u3092\u5927\u96d1\u628a\u306e\u8aac\u660e\u3059\u308b\u3068<br \/>\n\u300c\u30ed\u30fc\u30ab\u30eb\u306bhello-world\u306eimage\u306a\u3044\u304b\u3089\u30d7\u30eb\u3057\u3066\u304f\u308b\u306d\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3002<br \/>\n\u30b3\u30f3\u30c6\u30ca\u7acb\u3061\u4e0a\u3052\u308b\u306d\u3002<br \/>\nHello from Docker!<br \/>\n\u6b21\u306f\u201d$ docker run -it ubuntu bash\u201d\u3063\u3066\u30b3\u30de\u30f3\u30c9\u8a66\u3057\u3066\u307f\u3066\u300d<br \/>\n\u3067\u3059\u3002<br \/>\n\u8a00\u3044\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002image\u3068\u3044\u3046\u306e\u306f\u8a2d\u8a08\u66f8\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u9593\u306b\u306f\u3044\u308b\u3082\u306e\u3067\u3059\u3002\u6587\u5b57\u901a\u308a\u30b3\u30f3\u30c6\u30ca\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002\u4e00\u65e6\u306f\u305d\u308c\u3067\u3044\u3044\u3067\u3059\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u770b\u770b\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 $ docker container ls -a \u547d\u4ee4\u6765\u786e\u8ba4\u3002\u7531\u4e8ehello-world\u662f\u4e00\u4e2a\u8f93\u51fa\u540e\u5373\u505c\u6b62\u7684\u5bb9\u5668\uff0c\u5982\u679c\u6ca1\u6709-a\u9009\u9879\uff0c\u60a8\u5c06\u770b\u4e0d\u5230\u6240\u6709\u5bb9\u5668\u7684\u663e\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code> $ docker container ls -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES\r\naffc00b91aec        hello-world         \"\/hello\"            5 seconds ago       Exited (0) 5 seconds ago                       affectionate_sinoussi\r\n<\/code><\/pre>\n<p>hello-world\u3068\u3044\u3046image\u304b\u3089\u3064\u304f\u3089\u308c\u305faffc00b91aec\u3068\u3044\u3046\u30b3\u30f3\u30c6\u30ca\u304c\u3042\u308a\u307e\u3059\u306d<\/p>\n<p>\u6b21\u306b\u30a4\u30e1\u30fc\u30b8\u4e00\u89a7\u3082\u898b\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"post-pre\"><code>$ docker image ls\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\nhello-world         latest              fce289e99eb9        5 months ago        1.84kB\r\n<\/code><\/pre>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u5220\u9664\u4e0d\u518d\u9700\u8981\u7684\u5bb9\u5668\u548c\u955c\u50cf\u3002<\/p>\n<pre class=\"post-pre\"><code>$ docker container rm affc00b91aec\r\n<\/code><\/pre>\n<p>\u6216\u8005<\/p>\n<pre class=\"post-pre\"><code>$ docker container rm a\r\n<\/code><\/pre>\n<p>\u306e\u3088\u3046\u306b\u982d\u6587\u5b57\u3057\u3066\u3067\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u30a4\u30e1\u30fc\u30b8\u3082\u524a\u9664\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ docker image rm f\r\nUntagged: hello-world:latest\r\nUntagged: hello-world@sha256:0e11c388b664df8a27a901dce21eb89f11d8292f7fca1b3e3c4321bf7897bffe\r\nDeleted: sha256:fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e\r\nDeleted: sha256:af0b15c8625bb1938f1d7b17081031f649fd14e6b233688eea3c5483994a66a3\r\n<\/code><\/pre>\n<h3>Ubuntu\u5f00\u673a<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u4e00\u4e0b\u4e4b\u524dhello-world\u5411\u6211\u4eec\u63d0\u5230\u7684\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ docker run -it ubuntu bash\r\nUnable to find image 'ubuntu:latest' locally\r\nlatest: Pulling from library\/ubuntu\r\n6abc03819f3e: Pull complete\r\n05731e63f211: Pull complete\r\n0bd67c50d6be: Pull complete\r\nDigest: sha256:f08638ec7ddc90065187e7eabdfac3c96e5ff0f6b2f1762cf31a4f49b53000a5\r\nStatus: Downloaded newer image for ubuntu:latest\r\nroot@2e88c2d2aac5:\/#\r\n<\/code><\/pre>\n<p>\u8fd9\u770b\u8d77\u6765\u50cf\u662f\u4e00\u4e2a\u88c5\u6709Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u7684\u5bb9\u5668\u3002\u5982\u679c\u60a8\u6700\u540e\u5728root\u76ee\u5f55\u4e2d\u80fd\u591f\u767b\u5f55\u6210\u529f\uff0c\u90a3\u5c31\u53ef\u4ee5\u786e\u5b9a\u4e86\u3002\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u8fd0\u884cls\u547d\u4ee4\u6765\u786e\u8ba4\u662f\u5426\u66f4\u50cf\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<pre class=\"post-pre\"><code>root@2e88c2d2aac5:\/# ls\r\nbin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u5f88\u76f8\u4f3c\u3002\u5982\u679c\u662f\u901a\u8fc7CUI\u8fdb\u884c\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u5b8c\u6210\u4e00\u7cfb\u5217\u4efb\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code>root@2e88c2d2aac5:\/# touch hoge\r\nroot@2e88c2d2aac5:\/# ls\r\nbin  boot  dev  etc  hoge  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\n<\/code><\/pre>\n<p>\u5047\u8bbe\u4f60\u6309\u7167\u8fd9\u6837\u7684\u611f\u89c9\u521b\u5efa\u4e86\u67d0\u4e2a\u6587\u4ef6\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u6309\u4e0b\u9000\u51fa\u5bb9\u5668\u7684\u547d\u4ee4\u201cctrl+pq\u201d\uff0c\u5148\u9000\u51fa\u4e00\u6b21\uff0c\u7136\u540e\u518d\u8fdb\u5165\u4e00\u6b21\u8bd5\u8bd5\u770b\u3002<\/p>\n<pre class=\"post-pre\"><code>root@2e88c2d2aac5:\/# ls\r\nbin  boot  dev  etc  hoge  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\nroot@2e88c2d2aac5:\/#\r\n(\u7701\u7565) MINGW64 \/c\r\n$ docker container ls -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n2e88c2d2aac5        ubuntu              \"bash\"              21 minutes ago      Up 21 minutes                           heuristic_hofstadter\r\n\r\nkeita@DESKTOP-MIO6JRP MINGW64 \/c\r\n$ docker container exec -it 2 bash\r\nroot@2e88c2d2aac5:\/# ls\r\nbin  boot  dev  etc  hoge  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\n<\/code><\/pre>\n<p>\u6211\u770b\u5230hoge\u4e86\u3002\u8fd9\u610f\u5473\u7740\u6211\u80fd\u591f\u518d\u6b21\u767b\u5f55\u4e4b\u524d\u7f16\u8f91\u8fc7\u7684\u5bb9\u5668\u3002\u9664\u4e86\u4f7f\u7528exec\u547d\u4ee4\u767b\u5f55\u5916\uff0c\u8fd8\u6709\u4e00\u4e2a\u53eb\u4f5cattach\u7684\u65b9\u6cd5\uff0c\u4f46\u4f7f\u7528\u5b83\u4f1a\u8fde\u63a5\u5230\u7236\u8fdb\u7a0b\uff0c\u5efa\u8bae\u5c3d\u91cf\u4e0d\u8981\u4f7f\u7528\u3002<br \/>\n\u5f53\u4f7f\u7528exec\u767b\u5f55\u540e\u60f3\u8981\u9000\u51fa\u65f6\uff0c\u8bf7\u4f7f\u7528exit\u547d\u4ee4\u3002<br \/>\nroot@2e88c2d2aac5:\/# exit<br \/>\nexit<\/p>\n<p>\u6211\u8ba4\u4e3a\u4f60\u5df2\u7ecf\u5927\u81f4\u4e86\u89e3\u4e86Docker\u7684\u57fa\u672c\u529f\u80fd\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u4ee5\u76ee\u524d\u7684\u65b9\u5f0f\u7ee7\u7eed\uff0c\u5c1d\u8bd5\u4e00\u4e0bDocker\u6587\u4ef6\u548cDocker Compose\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u6559\u7a0b\u65e8\u5728\u4ece\u8fdeDocker\u8fd9\u4e2a\u8bcd\u90fd\u662f\u9996\u6b21\u542c\u5230\u7684\u6c34\u5e73\u4e0a\uff0c\u4e00\u76f4\u5230\u5927\u6982\u662f\u8fd9\u79cd\u611f\u89c9\u4e3a\u6b62\u3002 \u76ee\u6807\/\u5bf9\u8c61 \u5bf9\u4e8e\u6ca1\u6709\u4f7f\u7528\u8fc7 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-35410","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>\u9996\u6b21\u4f7f\u7528Docker - 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\/\u9996\u6b21\u4f7f\u7528docker-3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9996\u6b21\u4f7f\u7528Docker\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u4e2a\u6559\u7a0b\u65e8\u5728\u4ece\u8fdeDocker\u8fd9\u4e2a\u8bcd\u90fd\u662f\u9996\u6b21\u542c\u5230\u7684\u6c34\u5e73\u4e0a\uff0c\u4e00\u76f4\u5230\u5927\u6982\u662f\u8fd9\u79cd\u611f\u89c9\u4e3a\u6b62\u3002 \u76ee\u6807\/\u5bf9\u8c61 \u5bf9\u4e8e\u6ca1\u6709\u4f7f\u7528\u8fc7 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u9996\u6b21\u4f7f\u7528docker-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-03T18:16:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T09:45:19+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/\",\"name\":\"\u9996\u6b21\u4f7f\u7528Docker - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-03T18:16:25+00:00\",\"dateModified\":\"2024-05-04T09:45:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9996\u6b21\u4f7f\u7528Docker\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u9996\u6b21\u4f7f\u7528Docker - 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\/\u9996\u6b21\u4f7f\u7528docker-3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u9996\u6b21\u4f7f\u7528Docker","og_description":"\u8fd9\u4e2a\u6559\u7a0b\u65e8\u5728\u4ece\u8fdeDocker\u8fd9\u4e2a\u8bcd\u90fd\u662f\u9996\u6b21\u542c\u5230\u7684\u6c34\u5e73\u4e0a\uff0c\u4e00\u76f4\u5230\u5927\u6982\u662f\u8fd9\u79cd\u611f\u89c9\u4e3a\u6b62\u3002 \u76ee\u6807\/\u5bf9\u8c61 \u5bf9\u4e8e\u6ca1\u6709\u4f7f\u7528\u8fc7 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u9996\u6b21\u4f7f\u7528docker-3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-03T18:16:25+00:00","article_modified_time":"2024-05-04T09:45:19+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/","name":"\u9996\u6b21\u4f7f\u7528Docker - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-03T18:16:25+00:00","dateModified":"2024-05-04T09:45:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u9996\u6b21\u4f7f\u7528Docker"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%a6%96%e6%ac%a1%e4%bd%bf%e7%94%a8docker-3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35410","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=35410"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35410\/revisions"}],"predecessor-version":[{"id":99766,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35410\/revisions\/99766"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=35410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=35410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=35410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}