{"id":112117,"date":"2026-10-02T18:48:48","date_gmt":"2026-10-02T10:48:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/112117.html"},"modified":"2026-10-02T18:48:48","modified_gmt":"2026-10-02T10:48:48","slug":"docker-%e7%bd%91%e7%bb%9c%ef%bc%88%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/112117.html","title":{"rendered":"Docker \u7f51\u7edc\uff08\u4e00\uff09"},"content":{"rendered":"<p>Docker \u5bb9\u5668\u5728\u521b\u5efa\u65f6&#xff0c;\u867d\u7136\u4f1a\u901a\u8fc7 Linux \u7684\u547d\u540d\u7a7a\u95f4\u5b8c\u6210\u4e0e\u5bbf\u4e3b\u673a\u8fdb\u7a0b\u7684\u7f51\u7edc\u9694\u79bb&#xff0c;\u4f46\u662f\u5374\u6709\u6ca1\u6709\u529e\u6cd5\u901a\u8fc7\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u4e0e\u6574\u4e2a\u4e92\u8054\u7f51\u76f8\u8fde&#xff0c;\u8fd9\u4f1a\u5bf9 Docker \u7684\u5e94\u7528\u4ea7\u751f\u9650\u5236\u3002\u4e3a\u6b64&#xff0c;\u6bcf\u4e00\u4e2a\u4f7f\u7528 docker run \u542f\u52a8\u7684\u5bb9\u5668\u90fd\u4f1a\u4e3a\u5176\u5206\u914d\u5355\u72ec\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002Docker \u63d0\u4f9b\u4e86\u56db\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u6a21\u5f0f&#xff0c;\u5206\u522b\u662f Host\u3001Container\u3001None \u548c Bridge \u6a21\u5f0f\u3002<\/p>\n<h3>Host \u6a21\u5f0f<\/h3>\n<p>\u5728 Host \u6a21\u5f0f\u4e0b&#xff0c;\u5bb9\u5668\u76f4\u63a5\u4f7f\u7528\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u6808&#xff0c;\u4e0d\u8fdb\u884c\u7f51\u7edc\u9694\u79bb\u3002\u8fd9\u610f\u5473\u7740\u5bb9\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u4e0e\u5bbf\u4e3b\u673a\u5b8c\u5168\u76f8\u540c&#xff0c;\u5bb9\u5668\u5185\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5bbf\u4e3b\u673a\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u3002<\/p>\n<p>root&#064;docker-host:~# docker run &#8211;network host nginx<br \/>\n\/docker-entrypoint.sh: \/docker-entrypoint.d\/ is not empty, will attempt to perform configuration<br \/>\n\/docker-entrypoint.sh: Looking for shell scripts in \/docker-entrypoint.d\/<br \/>\n\/docker-entrypoint.sh: Launching \/docker-entrypoint.d\/10-listen-on-ipv6-by-default.sh<br \/>\n10-listen-on-ipv6-by-default.sh: info: Getting the checksum of \/etc\/nginx\/conf.d\/default.conf<br \/>\n10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in \/etc\/nginx\/conf.d\/default.conf<br \/>\n\/docker-entrypoint.sh: Launching \/docker-entrypoint.d\/15-local-resolvers.envsh<br \/>\n\/docker-entrypoint.sh: Launching \/docker-entrypoint.d\/20-envsubst-on-templates.sh<br \/>\n\/docker-entrypoint.sh: Launching \/docker-entrypoint.d\/30-tune-worker-processes.sh<br \/>\n\/docker-entrypoint.sh: Configuration complete; ready for start up<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: using the &#034;epoll&#034; event method<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: nginx\/1.31.2<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: built by gcc 14.2.0 (Debian 14.2.0-19)<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: OS: Linux 5.4.0-216-generic<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: start worker processes<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: start worker process 28<br \/>\n2026\/07\/06 23:40:06 [notice] 1#1: start worker process 29<br \/>\nroot&#064;docker-host:~# docker ps<br \/>\nCONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS         PORTS     NAMES<br \/>\nc85c56faec75   nginx     &#034;\/docker-entrypoint\u2026&#034;   3 minutes ago   Up 3 minutes             wonderful_pascal<br \/>\nroot&#064;docker-host:~#<\/p>\n<p>root&#064;docker-host:~# curl http:\/\/127.0.0.1:80<br \/>\n&lt;!DOCTYPE html&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;Welcome to nginx!&lt;\/title&gt;<br \/>\n&lt;style&gt; <\/p>\n<p>\u5982\u679c\u5728\u5bbf\u4e3b\u673a\u4e0a\u8bbf\u95ee http:\/\/127.0.0.1:80&#xff0c;\u5b9e\u9645\u4e0a\u8bbf\u95ee\u7684\u662f\u5bb9\u5668\u5185\u7684 Nginx \u670d\u52a1\u3002<\/p>\n<p>Host \u6a21\u5f0f\u9002\u7528\u573a\u666f&#xff1a; \u9700\u8981\u5bb9\u5668\u4e0e\u5bbf\u4e3b\u673a\u5171\u4eab\u7f51\u7edc\u6808&#xff0c;\u9002\u7528\u4e8e\u5bf9\u7f51\u7edc\u6027\u80fd\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f&#xff0c;\u6b64\u65f6\u4e0d\u9700\u8981\u7aef\u53e3\u6620\u5c04&#xff0c;\u5bb9\u5668\u76f4\u63a5\u53ef\u4ee5\u4f7f\u7528\u5bbf\u4e3b\u673a\u7684\u7aef\u53e3\u3002<\/p>\n<p>\u4e3a\u4e0d\u5f71\u54cd\u540e\u7eed\u5b9e\u9a8c&#xff0c;\u4f7f\u7528 docker container prune \u5220\u9664\u5df2\u505c\u6b62\u7684\u5bb9\u5668\u3002<\/p>\n<h3>Container \u6a21\u5f0f<\/h3>\n<p>\u5728 Container \u6a21\u5f0f\u4e0b&#xff0c;\u65b0\u521b\u5efa\u7684\u5bb9\u5668\u4f1a\u5171\u4eab\u53e6\u4e00\u4e2a\u5bb9\u5668\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002\u8fd9\u610f\u5473\u7740\u4e24\u4e2a\u5bb9\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u5b8c\u5168\u76f8\u540c&#xff0c;\u5b83\u4eec\u53ef\u4ee5\u901a\u8fc7 localhost \u76f4\u63a5\u901a\u4fe1\u3002<\/p>\n<p>root&#064;docker-host:~# docker run -d &#8211;name nginx nginx<br \/>\n017a4ab5c7c22ca519df0472de4d8eaf48dcf06b5329edebf5f8b836f918007e<br \/>\nroot&#064;docker-host:~# docker run &#8211;network container:nginx alpine ping localhost<br \/>\nPING localhost (::1): 56 data bytes<br \/>\n64 bytes from ::1: seq&#061;0 ttl&#061;64 time&#061;0.037 ms<br \/>\n64 bytes from ::1: seq&#061;1 ttl&#061;64 time&#061;0.083 ms<br \/>\n64 bytes from ::1: seq&#061;2 ttl&#061;64 time&#061;0.095 ms<br \/>\n64 bytes from ::1: seq&#061;3 ttl&#061;64 time&#061;0.075 ms<\/p>\n<p>root&#064;docker-host:~# docker ps<br \/>\nCONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS         PORTS     NAMES<br \/>\nb7af4a785764   alpine    &#034;ping localhost&#034;         47 seconds ago  Up 46 seconds            nice_khorana<br \/>\n017a4ab5c7c2   nginx     &#034;\/docker-entrypoint\u2026&#034;    About a minute ago Up About a minute 80\/tcp  nginx<br \/>\nroot&#064;docker-host:~# <\/p>\n<p>\u901a\u8fc7 &#8211;network container:nginx \u53c2\u6570&#xff0c;alpine \u5bb9\u5668\u5c31\u53ef\u5171\u4eab nginx \u5bb9\u5668\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4&#xff0c;\u901a\u8fc7 localhost \u5c31\u53ef\u76f4\u63a5\u8bbf\u95ee nginx \u5bb9\u5668\u7684\u7f51\u7edc\u670d\u52a1\u3002<\/p>\n<p>Container \u6a21\u5f0f\u9002\u7528\u573a\u666f&#xff1a; \u9700\u8981\u591a\u4e2a\u5bb9\u5668\u5171\u4eab\u540c\u4e00\u4e2a\u7f51\u7edc\u6808&#xff0c;\u9002\u7528\u4e8e\u9700\u8981\u7d27\u5bc6\u534f\u4f5c\u7684\u5bb9\u5668\u7ec4\u3002\u4f8b\u5982&#xff0c;\u4e00\u4e2a\u5bb9\u5668\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u53e6\u4e00\u4e2a\u5bb9\u5668\u8fd0\u884c\u65e5\u5fd7\u6536\u96c6\u5668&#xff0c;\u4e24\u8005\u5c31\u53ef\u4ee5\u901a\u8fc7 localhost \u76f4\u63a5\u901a\u4fe1\u3002<\/p>\n<h3>None \u6a21\u5f0f<\/h3>\n<p>\u5728 None \u6a21\u5f0f\u4e0b&#xff0c;\u5bb9\u5668\u4e0d\u4f1a\u914d\u7f6e\u4efb\u4f55\u7f51\u7edc\u6808&#xff0c;\u5373\u5bb9\u5668\u5185\u6ca1\u6709\u7f51\u7edc\u63a5\u53e3&#xff0c;\u65e0\u6cd5\u4e0e\u5916\u754c\u901a\u4fe1\u3002<\/p>\n<p>root&#064;docker-host:~# docker run &#8211;network none alpine ip addr<br \/>\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN qlen 1000<br \/>\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br \/>\n    inet 127.0.0.1\/8 scope host lo<br \/>\n       valid_lft forever preferred_lft forever<br \/>\n    inet6 ::1\/128 scope host<br \/>\n       valid_lft forever preferred_lft forever<br \/>\nroot&#064;docker-host:~# <\/p>\n<p>\u4f7f\u7528 &#8211;network none \u53c2\u6570\u542f\u52a8\u4e00\u4e2a Alpine \u5bb9\u5668&#xff0c;\u5728\u5bb9\u5668\u5185\u6267\u884c ip addr \u547d\u4ee4&#xff0c;\u53ef\u4ee5\u770b\u5230\u5bb9\u5668\u5185\u6ca1\u6709\u4efb\u4f55\u7f51\u7edc\u63a5\u53e3\u3002\u5bb9\u5668\u65e0\u6cd5\u4e0e\u5916\u754c\u901a\u4fe1&#xff0c;\u4e5f\u65e0\u6cd5\u88ab\u5916\u754c\u8bbf\u95ee\u3002<\/p>\n<p>root&#064;docker-host:~# docker ps -a<br \/>\nCONTAINER ID   IMAGE     COMMAND   CREATED        STATUS                     PORTS   NAMES<br \/>\ne8fd15bdf428   alpine    &#034;ip addr&#034; 2 seconds ago  Exited (0) 1 second ago            practical_mahavira<br \/>\nroot&#064;docker-host:~# <\/p>\n<p>None \u6a21\u5f0f\u9002\u7528\u573a\u666f&#xff1a; \u9002\u7528\u4e8e\u4e0d\u9700\u8981\u7f51\u7edc\u901a\u4fe1\u7684\u573a\u666f&#xff0c;\u4f8b\u5982\u53ea\u8fdb\u884c\u672c\u5730\u6570\u636e\u5904\u7406\u6216\u6d4b\u8bd5&#xff1b;\u5b89\u5168\u6027\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f&#xff0c;\u786e\u4fdd\u5bb9\u5668\u4e0e\u5916\u754c\u5b8c\u5168\u9694\u79bb\u3002<\/p>\n<h3>Bridge \u6a21\u5f0f<\/h3>\n<p>Bridge \u6a21\u5f0f\u662f Docker \u7684\u9ed8\u8ba4\u7f51\u7edc\u6a21\u5f0f\u3002\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b&#xff0c;Docker \u4f1a\u4e3a\u6bcf\u4e2a\u5bb9\u5668\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u7f51\u7edc\u63a5\u53e3&#xff0c;\u5e76\u5c06\u5176\u8fde\u63a5\u5230 Docker \u7684\u865a\u62df\u7f51\u6865&#xff08;\u901a\u5e38\u662f docker0&#xff09;\u3002\u5bb9\u5668\u901a\u8fc7\u8fd9\u4e2a\u7f51\u6865\u4e0e\u5bbf\u4e3b\u673a\u548c\u5176\u4ed6\u5bb9\u5668\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p>root&#064;docker-host:~# docker run -d &#8211;name nginx -p 8080:80 nginx<br \/>\n0ec98a6971ec5390c3f06c4099914e6a00f1d21b15409bb97f8374b3de4b9a78<br \/>\nroot&#064;docker-host:~# docker ps<br \/>\nCONTAINER ID   IMAGE     COMMAND                  CREATED        STATUS        PORTS                                     NAMES<br \/>\n0ec98a6971ec   nginx     &#034;\/docker-entrypoint\u2026&#034;    6 seconds ago  Up 5 seconds  0.0.0.0:8080-&gt;80\/tcp, :::8080-&gt;80\/tcp     nginx<br \/>\nroot&#064;docker-host:~# <\/p>\n<p>\u4f7f\u7528 -p 8080:80 \u53c2\u6570\u542f\u52a8\u4e00\u4e2a Nginx \u5bb9\u5668&#xff0c;\u5c06\u5bb9\u5668\u7684 80 \u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u7684 8080 \u7aef\u53e3\u3002Docker \u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u7f51\u7edc\u63a5\u53e3&#xff0c;\u5e76\u5c06\u5176\u8fde\u63a5\u5230 docker0 \u7f51\u6865\u3002\u901a\u8fc7 curl http:\/\/localhost:8080 \u5c31\u80fd\u8bbf\u95ee\u5bb9\u5668\u5185\u7684 Nginx \u670d\u52a1\u3002<\/p>\n<p>root&#064;docker-host:~# curl http:\/\/localhost:8080<br \/>\n&lt;!DOCTYPE html&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;Welcome to nginx!&lt;\/title&gt;<br \/>\n&lt;style&gt; <\/p>\n<p>Bridge \u6a21\u5f0f\u9002\u7528\u4e8e\u5927\u591a\u6570\u9700\u8981\u5bb9\u5668\u4e0e\u5bbf\u4e3b\u673a\u6216\u5176\u4ed6\u5bb9\u5668\u901a\u4fe1\u7684\u573a\u666f\u3002\u901a\u8fc7\u7aef\u53e3\u6620\u5c04&#xff0c;\u5bb9\u5668\u5185\u7684\u670d\u52a1\u53ef\u4ee5\u88ab\u5916\u90e8\u7f51\u7edc\u8bbf\u95ee\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u5bb9\u5668\u5728\u521b\u5efa\u65f6&#xff0c;\u867d\u7136\u4f1a\u901a\u8fc7 Linux \u7684\u547d\u540d\u7a7a\u95f4\u5b8c\u6210\u4e0e\u5bbf\u4e3b\u673a\u8fdb\u7a0b\u7684\u7f51\u7edc\u9694\u79bb&#xff0c;\u4f46\u662f\u5374\u6709\u6ca1\u6709\u529e\u6cd5\u901a\u8fc7\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u4e0e\u6574\u4e2a\u4e92\u8054\u7f51\u76f8\u8fde&#xff0c;\u8fd9\u4f1a\u5bf9 Docker \u7684\u5e94\u7528\u4ea7\u751f\u9650\u5236\u3002\u4e3a\u6b64&#xff0c;\u6bcf\u4e00\u4e2a\u4f7f\u7528 docker run \u542f\u52a8\u7684\u5bb9\u5668\u90fd\u4f1a\u4e3a\u5176\u5206\u914d\u5355\u72ec\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002Docker \u63d0\u4f9b\u4e86\u56db\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u6a21\u5f0f&#xff0c;\u5206\u522b\u662f Host\u3001Container\u3001None \u548c Bridge \u6a21\u5f0f\u3002<br \/>\nHost \u6a21\u5f0f<br \/>\n\u5728 Host \u6a21<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,77,123,43,44],"topic":[],"class_list":["post-112117","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-ssh","tag-123","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/112117.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Docker \u5bb9\u5668\u5728\u521b\u5efa\u65f6&#xff0c;\u867d\u7136\u4f1a\u901a\u8fc7 Linux \u7684\u547d\u540d\u7a7a\u95f4\u5b8c\u6210\u4e0e\u5bbf\u4e3b\u673a\u8fdb\u7a0b\u7684\u7f51\u7edc\u9694\u79bb&#xff0c;\u4f46\u662f\u5374\u6709\u6ca1\u6709\u529e\u6cd5\u901a\u8fc7\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u4e0e\u6574\u4e2a\u4e92\u8054\u7f51\u76f8\u8fde&#xff0c;\u8fd9\u4f1a\u5bf9 Docker \u7684\u5e94\u7528\u4ea7\u751f\u9650\u5236\u3002\u4e3a\u6b64&#xff0c;\u6bcf\u4e00\u4e2a\u4f7f\u7528 docker run \u542f\u52a8\u7684\u5bb9\u5668\u90fd\u4f1a\u4e3a\u5176\u5206\u914d\u5355\u72ec\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002Docker \u63d0\u4f9b\u4e86\u56db\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u6a21\u5f0f&#xff0c;\u5206\u522b\u662f Host\u3001Container\u3001None \u548c Bridge \u6a21\u5f0f\u3002 Host \u6a21\u5f0f \u5728 Host \u6a21\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/112117.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-02T10:48:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/112117.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/112117.html\",\"name\":\"Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-02T10:48:48+00:00\",\"dateModified\":\"2026-10-02T10:48:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/112117.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/112117.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112117.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker \u7f51\u7edc\uff08\u4e00\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/112117.html","og_locale":"zh_CN","og_type":"article","og_title":"Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Docker \u5bb9\u5668\u5728\u521b\u5efa\u65f6&#xff0c;\u867d\u7136\u4f1a\u901a\u8fc7 Linux \u7684\u547d\u540d\u7a7a\u95f4\u5b8c\u6210\u4e0e\u5bbf\u4e3b\u673a\u8fdb\u7a0b\u7684\u7f51\u7edc\u9694\u79bb&#xff0c;\u4f46\u662f\u5374\u6709\u6ca1\u6709\u529e\u6cd5\u901a\u8fc7\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u4e0e\u6574\u4e2a\u4e92\u8054\u7f51\u76f8\u8fde&#xff0c;\u8fd9\u4f1a\u5bf9 Docker \u7684\u5e94\u7528\u4ea7\u751f\u9650\u5236\u3002\u4e3a\u6b64&#xff0c;\u6bcf\u4e00\u4e2a\u4f7f\u7528 docker run \u542f\u52a8\u7684\u5bb9\u5668\u90fd\u4f1a\u4e3a\u5176\u5206\u914d\u5355\u72ec\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002Docker \u63d0\u4f9b\u4e86\u56db\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u6a21\u5f0f&#xff0c;\u5206\u522b\u662f Host\u3001Container\u3001None \u548c Bridge \u6a21\u5f0f\u3002 Host \u6a21\u5f0f \u5728 Host \u6a21","og_url":"https:\/\/www.wsisp.com\/helps\/112117.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-02T10:48:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/112117.html","url":"https:\/\/www.wsisp.com\/helps\/112117.html","name":"Docker \u7f51\u7edc\uff08\u4e00\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-02T10:48:48+00:00","dateModified":"2026-10-02T10:48:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/112117.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/112117.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/112117.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Docker \u7f51\u7edc\uff08\u4e00\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=112117"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=112117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=112117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=112117"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=112117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}