{"id":889,"date":"2021-03-02T20:43:15","date_gmt":"2021-03-02T12:43:15","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=889"},"modified":"2021-03-02T20:43:16","modified_gmt":"2021-03-02T12:43:16","slug":"docker-toolbox%e5%9c%a8mac%e4%b8%8a%e7%9a%84%e8%bf%90%e8%a1%8c%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=889","title":{"rendered":"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>\u56e0\u4e3a\u672c\u4ebaMacOS\u7248\u672c\u4e0d\u518d\u53d7Docker Desktop\u5b98\u65b9\u652f\u6301\uff0c\u6240\u4ee5\u672c\u4eba\u4f7f\u7528\u7684Docker Toolbox\uff0c\u8fd9\u91cc\u7b80\u5355\u603b\u7ed3\u4e0b\u5bf9Docker Toolbox\u7684\u7406\u89e3\u3002<\/p><\/blockquote>\n\n\n\n<p>\u5f53Docker Toolbox\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u4f1a\u53d1\u73b0\u4f60\u7684\u5e94\u7528\u5217\u8868\u91cc\u591a\u4e86\u4e24\u4e2a\u5e94\u7528\u56fe\u6807<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-9.png\"><img width=\"353\" height=\"148\" class=\"wp-image-890 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-9.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-9.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-9.png 353w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-9-300x126.png 300w\" sizes=\"(max-width: 353px) 100vw, 353px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u8fd9\u65f6\uff0c\u6211\u4eec\u53ea\u9700\u8981\u5355\u673a\u7b2c\u4e8c\u4e2aTerminal\u8fd9\u4e2a\u84dd\u8272\u56fe\u6807\u8fd0\u884c\uff0c\u968f\u540e\u4f1a\u6253\u5f00\u4e00\u4e2a\u9ed8\u8ba4\u7ec8\u7aef\u7684\u7a97\u53e3\uff0c\u5f00\u59cbdocker\u670d\u52a1\u7684\u542f\u52a8\uff0c\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u5219\u53ef\u4ee5\u5728\u8be5\u7ec8\u7aef\u7a97\u53e3\u5185\u4f7f\u7528docker\u64cd\u4f5c\u4e86\u3002\u4f60\u53ef\u80fd\u6ce8\u610f\u5230\u4e86\uff0c\u5728\u6b64\u7a97\u53e3\u4e4b\u5916\u7684\u5730\u65b9\u662f\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528docker\u7684\uff0c\u6bd4\u5982\u65b0\u5f00\u542f\u4e00\u4e2aiterm\u7a97\u53e3\u3002\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p>\u4e0b\u9762\u4ece\u539f\u7406\u89d2\u5ea6\u7406\u89e3\u6b64\u8fc7\u7a0b<\/p>\n\n\n\n<p><strong>VirtualBox<\/strong>\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684Mac\u865a\u62df\u673a\u7ba1\u7406\u8f6f\u4ef6\u3002\u800cDocker\u672c\u8eab\u63d0\u4f9b\u4e86<code>docker-machine<\/code>\u8fd9\u6837\u4e00\u4e2a\u5de5\u5177\uff0c\u8be5\u5de5\u5177\u53ef\u4ee5\u7ba1\u7406\u6240\u6709Docker\u670d\u52a1\u4e3b\u673a\u3002\u800cDocker Toolbox\u5c31\u662f\u5c06\u4e8c\u8005\u7ed3\u5408\u8d77\u6765\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u903b\u8f91\u5728<code>\/Applications\/Docker\/Docker Quickstart Terminal.app\/Contents\/Resources\/Scripts\/start.sh<\/code>\u8fd9\u4e2a\u811a\u672c\u4e2d\uff0c\u901a\u8fc7<code>docker-machine create -d virtualbox default<\/code>\u8fd9\u6837\u4e00\u4e2a\u547d\u4ee4\uff0c\u53ef\u4ee5\u6307\u5b9avirtualbox\u4e3a\u9a71\u52a8\u7c7b\u578b\uff0c\u521b\u5efa\u4e00\u4e2aDocker\u670d\u52a1Linux\u865a\u62df\u673a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4.png\"><img width=\"959\" height=\"120\" class=\"wp-image-881 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4.png 959w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4-300x38.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-4-768x96.png 768w\" sizes=\"(max-width: 959px) 100vw, 959px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u9ed8\u8ba4\u865a\u62df\u673a\u540d\u4e3a\u201cdefault\u201d\u3002\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u542f\u52a8\u8be5\u865a\u62df\u4e3b\u673a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-3.png\"><img width=\"715\" height=\"211\" class=\"wp-image-880 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-3.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-3.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-3.png 715w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-3-300x89.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u542f\u52a8\u5b8c\u6210\u540e<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-10.png\"><img width=\"628\" height=\"586\" class=\"wp-image-891 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-10.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-10.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-10.png 628w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-10-300x280.png 300w\" sizes=\"(max-width: 628px) 100vw, 628px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u8fd9\u65f6\uff0c\u5728\u8fd9\u4e2a\u7ec8\u7aef\u7a97\u53e3\u5c31\u53ef\u4ee5\u6b63\u5e38\u64cd\u4f5cdocker\u4e86\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u6253\u5f00<strong>VirtualBox<\/strong>\uff0c\u53ef\u4ee5\u770b\u5230\u8fd9\u6837\u7684\u5185\u5bb9<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-11.png\"><img width=\"720\" height=\"435\" class=\"wp-image-892 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-11.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-11.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-11.png 720w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-11-300x181.png 300w\" sizes=\"(max-width: 720px) 100vw, 720px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u8fd9\u4e2a\u5c31\u6b63\u662f\u4e0a\u9762\u521b\u5efa\u542f\u52a8\u7684Docker\u865a\u62df\u673a\uff01\uff01\uff08\u901a\u8fc7<code>docker-machine ls<\/code>\u4e5f\u53ef\u4ee5\u9a8c\u8bc1\uff09\u800c\u4e0a\u9762\u7684\u7ec8\u7aef\u7a97\u53e3\uff0c\u5176\u5b9e\u5c31\u76f8\u5f53\u4e8e\u6b64\u865a\u62df\u673a\u7684\u4e00\u4e2a\u7ec8\u7aef\u800c\u5df2\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u7d27\u63a5\u7740\u5728\u4e0a\u56fe<strong>VirtualBox<\/strong>\u754c\u9762\u70b9\u51fb\u201c\u663e\u793a\u201d\u6309\u94ae\uff0c\u5b83\u4f1a\u4e3a\u4f60\u6253\u5f00\u4e00\u4e2a\u8be5\u865a\u62df\u673a\u7684\u7ec8\u7aef\u7a97\u53e3<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-12.png\"><img width=\"724\" height=\"441\" class=\"wp-image-893 lazyload\" title=\"Docker Toolbox\u5728Mac\u4e0a\u7684\u8fd0\u884c\u539f\u7406\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-12.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-12.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-12.png 724w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-12-300x183.png 300w\" sizes=\"(max-width: 724px) 100vw, 724px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u5728\u8be5\u7a97\u53e3\u4e2d\u4f60\u4e5f\u53ef\u4ee5\u64cd\u4f5cdocker\u3002\u800c\u5982\u679c\u4f60\u76f4\u63a5\u65b0\u5f00\u542f\u4e00\u4e2aiterm\u7ec8\u7aef\u7a97\u53e3\u6216\u8005\u5176\u4ed6\u7ec8\u7aef\uff0c\u5982idea\u76f4\u63a5\u6253\u5f00terminal\u90fd\u8ddf\u6b64\u865a\u62df\u673a\u65e0\u5173\uff0c\u6240\u4ee5\u4e5f\u5c31\u662f\u4e3a\u4ec0\u4e48\u522b\u7684\u5730\u65b9\u90fd\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528docker\u547d\u4ee4\uff0c\u4f1a\u63d0\u793a<code>ERROR: Cannot connect to the Docker daemon at unix:\/\/\/var\/run\/docker.sock. Is the docker daemon running?<\/code><\/p>\n\n\n\n<p>\u8fd9\u4e5f\u5c31\u4e0d\u96be\u7406\u89e3\uff0c<strong>Docker Toolbox<\/strong>\u539f\u7406\u5c31\u662f<strong>\u5728Mac\u4e0a\u542f\u52a8\u4e00\u4e2aLinux\u865a\u62df\u673a\u8fd0\u884cdocker\u670d\u52a1<\/strong>\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1adocker-machine\u662f\u7528\u6765\u7ba1\u7406\u865a\u62df\u673a\u7684\uff0c\u6240\u4ee5\u8be5\u5de5\u5177\u547d\u4ee4\u53ef\u4ee5\u5728\u4efb\u4f55\u7ec8\u7aef\u7a97\u53e3\u8fd0\u884c\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><strong>\u672c\u6587\u53c2\u8003<\/strong><\/p>\n\n\n\n<ul><li>\u8bdd\u8bf4\u6700\u65b0\u53d1\u5e03\u7684Docker Toolbox\u662f\u4ec0\u4e48\u9b3c\uff1f\uff1a<a href=\"http:\/\/dockone.io\/article\/594\">http:\/\/dockone.io\/article\/594<\/a><\/li><li>Docker Machine\u83dc\u9e1f\u6559\u7a0b\uff1a<a href=\"https:\/\/www.runoob.com\/docker\/docker-machine.html\">https:\/\/www.runoob.com\/docker\/docker-machine.html<\/a><\/li><li>Mac OS\u5b89\u88c5Docker\u5bb9\u5668\u76843\u79cd\u65b9\u5f0f\u4e0e\u5dee\u522b\uff1a<a href=\"https:\/\/developer.aliyun.com\/article\/692030\">https:\/\/developer.aliyun.com\/article\/692030<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u672c\u4ebaMacOS\u7248\u672c\u4e0d\u518d\u53d7Docker Desktop\u5b98\u65b9\u652f\u6301\uff0c\u6240\u4ee5\u672c\u4eba\u4f7f\u7528\u7684Docker Toolbox\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[53],"tags":[105,114,113],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/889"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=889"}],"version-history":[{"count":1,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/889\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/889\/revisions\/894"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/media\/886"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}