{"id":1446,"date":"2024-07-26T16:27:44","date_gmt":"2024-07-26T08:27:44","guid":{"rendered":"https:\/\/blog.quantoyo.com\/?p=1446"},"modified":"2024-07-26T16:27:44","modified_gmt":"2024-07-26T08:27:44","slug":"mac-%e4%b8%8a%e7%9a%84-docker-desktop-%e8%b8%a9%e5%9d%91%e7%ad%86%e8%a8%98","status":"publish","type":"post","link":"https:\/\/blog.quantoyo.com\/?p=1446","title":{"rendered":"MAC \u4e0a\u7684 docker desktop \u8e29\u5751\u7b46\u8a18"},"content":{"rendered":"\n<p>\u5b89\u88dd\u5f8c\u9700\u8981\u5148\u8fa6\u5e33\u865f<\/p>\n\n\n\n<p><a href=\"https:\/\/www.docker.com\/\">https:\/\/www.docker.com\/<\/a><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u6253\u958b\u4ecb\u9762\u5f8c\uff0cTerminal \u5728\u53f3\u4e0b\u89d2\u53ef\u4ee5\u958b\u555f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-11.png\" alt=\"\" class=\"wp-image-1447\" width=\"141\" height=\"52\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-11.png 320w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-11-300x111.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-11-150x55.png 150w\" sizes=\"auto, (max-width: 141px) 100vw, 141px\" \/><\/figure>\n\n\n\n<p>\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u53ef\u4ee5\u5728\u5b98\u65b9\u5009\u5eab\u4e2d\u641c\u5c0b\u6620\u50cf\u6a94<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>docker search nginx\n\u6703\u5217\u51fa\nbash-3.2$ docker search nginx\nNAME                               DESCRIPTION                                     STARS     OFFICIAL\nnginx                              Official build of Nginx.                        20038     &#91;OK]\nunit                               Official build of NGINX Unit: Universal Web \u2026   33        &#91;OK]\nnginx\/nginx-ingress                NGINX and  NGINX Plus Ingress Controllers fo\u2026   92        \nnginxinc\/nginx-unprivileged        Unprivileged NGINX Dockerfiles                  155       \nnginx\/nginx-prometheus-exporter    NGINX Prometheus Exporter for NGINX and NGIN\u2026   42        \nnginx\/unit                         This repository is retired, use the Docker o\u2026   63        \nnginxinc\/nginx-s3-gateway          Authenticating and caching gateway based on \u2026   6         \nnginx\/nginx-ingress-operator       NGINX Ingress Operator for NGINX and NGINX P\u2026   2         \nnginx\/nginx-quic-qns               NGINX QUIC interop                              1         \nnginxinc\/amplify-agent             NGINX Amplify Agent docker repository           1         \nnginxinc\/ingress-demo              Ingress Demo                                    4         \nnginxproxy\/nginx-proxy             Automated nginx proxy for Docker containers \u2026   143       \nnginx\/unit-preview                 Unit preview features                           0         \nnginxproxy\/acme-companion          Automated ACME SSL certificate generation fo\u2026   137       \nbitnami\/nginx                      Bitnami container image for NGINX               193       \nubuntu\/nginx                       Nginx, a high-performance reverse proxy &amp; we\u2026   115       \nnginxinc\/mra-fakes3                                                                0         \nkasmweb\/nginx                      An Nginx image based off nginx:alpine and in\u2026   8         \nnginxproxy\/docker-gen              Generate files from docker container meta-da\u2026   17        \nbitnami\/nginx-ingress-controller   Bitnami container image for NGINX Ingress Co\u2026   34        \nbitnami\/nginx-exporter             Bitnami container image for NGINX Exporter      5         \nrancher\/nginx                                                                      2         \nnginxinc\/ngx-rust-tool                                                             0         \nnginxinc\/mra_python_base      <\/code><\/pre>\n\n\n\n<p>\u5b89\u88dd\u4f7f\u7528\u9019\u500b<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>docker pull nginx<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u9047\u5230\u9a57\u8b49\u554f\u984c\uff0c\u4ee3\u8868\u6c92\u6709\u5728terminal \u767b\u5165&#8230; (failed to authorize)<br>\u7528\u9019\u500b\u53ef\u4ee5\u767b\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>docker login<\/code><\/pre>\n\n\n\n<p>\u767b\u5165\u5f8c\u6703\u7d66 Login Succeeded\uff0c\u5c31\u53ef\u4ee5 pull \u4e86<\/p>\n\n\n\n<p>\u63a5\u4e0b\u4f86\u5728Images \u9801\u9762\u5c31\u6703\u8dd1\u51fa\u525b\u525bpull \u7684 image\uff0c\u9019\u908a\u662f\u6620\u50cf\u6a94\uff0c\u53ef\u4ee5\u62ff\u4f86\u90e8\u7f72<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2414\" height=\"744\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12.png\" alt=\"\" class=\"wp-image-1448\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12.png 2414w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12-300x92.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12-150x46.png 150w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12-768x237.png 768w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12-1536x473.png 1536w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-12-2048x631.png 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0b\u53f3\u908a\u7684Actions \u7684\u4e09\u89d2\u5f62\u53ef\u4ee5\u4f7f\u7528\u9019\u500bImage \u7522\u751f\u51fa\u4e00\u500bContainer (\u57f7\u884c\u7528\u7684\u500b\u9ad4)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-13.png\" alt=\"\" class=\"wp-image-1449\" width=\"355\" height=\"415\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-13.png 1002w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-13-256x300.png 256w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-13-128x150.png 128w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-13-768x900.png 768w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/figure>\n\n\n\n<p>\u9019\u500b\u9801\u9762\u8868\u793a\uff0c\u8a72image \u81ea\u5df1\u6703\u958b\u4e00\u500b80 port (\u4ee5\u5167\u90e8\u4f86\u770b)\uff0c\u7136\u5f8c\u6211\u5011\u8981\u8a2d\u5b9a\u4e00\u500b container \u5c0d\u5916\u7684port \u4f86\u8f49\u63a5\u9032\u53bb<\/p>\n\n\n\n<p>\u78ba\u5b9a\u5f8c\uff0c\u5c31\u6703\u5728Container \u4e2d\u627e\u5230\u525b\u525b\u7684\u5be6\u9ad4<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"3392\" height=\"730\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14.png\" alt=\"\" class=\"wp-image-1450\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14.png 3392w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14-300x65.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14-150x32.png 150w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14-768x165.png 768w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14-1536x331.png 1536w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-14-2048x441.png 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0bActions \u7684\u4e09\u89d2\u5f62\u5c31\u6703\u958b\u59cb\u670d\u52d9<\/p>\n\n\n\n<p>\u5728\u672c\u6a5f\u7684\u700f\u89bd\u5668\u8f38\u5165 http:\/\/localhost:9080\/<\/p>\n\n\n\n<p>\u5c31\u6703\u770b\u5230\u4ee5\u4e0b\u756b\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1204\" height=\"554\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-15.png\" alt=\"\" class=\"wp-image-1451\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-15.png 1204w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-15-300x138.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-15-150x69.png 150w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2024\/07\/image-15-768x353.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd\u5f8c\u9700\u8981\u5148\u8fa6\u5e33\u865f https:\/\/www.docker.com\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[254,255,30,202],"class_list":["post-1446","post","type-post","status-publish","format-standard","hentry","category-technology","tag-docker","tag-failed-to-authorize","tag-macos","tag-nginx"],"_links":{"self":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/1446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1446"}],"version-history":[{"count":1,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions"}],"predecessor-version":[{"id":1452,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions\/1452"}],"wp:attachment":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}