{"id":6127,"date":"2022-07-01T10:31:30","date_gmt":"2022-07-01T02:31:30","guid":{"rendered":"http:\/\/123.57.164.21\/?p=6127"},"modified":"2022-07-01T10:31:30","modified_gmt":"2022-07-01T02:31:30","slug":"macos%e3%81%a7podman%e3%82%92docker%e3%81%ae%e4%bb%a3%e3%82%8f%e3%82%8a%e3%81%ab%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=6127","title":{"rendered":"macOS\u3067Podman\u3092Docker\u306e\u4ee3\u308f\u308a\u306b\u4f7f\u3046"},"content":{"rendered":"\n<p>Docker Desktop\u304c\u5927\u898f\u6a21\u4f01\u696d\u306b\u5bfe\u3057\u3066\u6709\u6599\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee3\u66ff\u3092\u63a2\u3057\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002macOS\u306fLinux\u5b9f\u884c\u74b0\u5883\u304c\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u5bfe\u5fdc\u304c\u9762\u5012\u3067\u3059\u304c\u3001\u4e00\u3064\u306e\u89e3\u6c7a\u7b56\u3068\u3057\u3066<a rel=\"noreferrer noopener\" href=\"https:\/\/podman.io\" target=\"_blank\">Podman<\/a>\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30e9\u30a4\u30c8\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u3068\u3057\u3066Podman\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306e\u624b\u9806\u3060\u3051\u3092\u7c21\u6f54\u306b\u793a\u3057\u307e\u3059\u3002\u89e3\u8aac\u8a18\u4e8b\u3068\u3044\u3046\u3088\u308a\u306f\u3001\u3084\u3063\u3066\u307f\u305f\u7cfb\u306e\u8a18\u4e8b\u306b\u8fd1\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>Podman\u3084Podman machine\u306b\u3064\u3044\u3066\u306e\u8a73\u3057\u3044\u8aac\u660e\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u3001\u4ed6\u306e\u65b9\u306b\u3088\u308b\u3044\u304f\u3064\u304b\u306e\u89e3\u8aac\u8a18\u4e8b\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><strong>\u691c\u8a3c\u74b0\u5883<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul><li>MacBook Pro(13-inch, 2020)<\/li><li>macOS Catalina 10.15.7<\/li><li>zsh<\/li><\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/zenn.dev\/polyomino\/articles\/podman-introduction#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/a> \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n\n\n\n<p>Homebrew\u3067\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% brew install podman<\/pre>\n\n\n\n<p>\u57f7\u7b46\u6642\uff082021\u5e749\u670812\u65e5\uff09\u306b\u306fv3.3.1\u304c\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% podman --version\npodman version 3.3.1<\/pre>\n\n\n\n<p><strong><a href=\"https:\/\/zenn.dev\/polyomino\/articles\/podman-introduction#podman-machine%E3%81%AE%E8%B5%B7%E5%8B%95\"><\/a> Podman machine\u306e\u8d77\u52d5<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Podman\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001Podman\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306eLinux\u74b0\u5883\u3067\u3042\u308bPodman machine\u3092\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u521d\u671f\u5316\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Podman machine\u306e\u521d\u671f\u5316\n# VM\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308b\n% podman machine init\n<\/pre>\n\n\n\n<p>\u30e1\u30e2\u30ea\u7b49\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.podman.io\/en\/latest\/markdown\/podman-machine-init.1.html\" target=\"_blank\">\u53c2\u8003<\/a><\/p>\n\n\n\n<p>\u521d\u671f\u5316\u304c\u5b8c\u4e86\u3057\u305f\u3089Podman machine\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002Podman\u3092\u4f7f\u3046\u6642\u306b\u306f\u5fc5\u305aPodman machine\u3092\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Podman machine\u306e\u8d77\u52d5\n% podman machine start<\/pre>\n\n\n\n<p>\u79c1\u304c\u8a66\u3057\u305f\u3068\u3053\u308d\u521d\u56de\u5b9f\u884c\u6642\u306b\u306fError\u304c\u51fa\u307e\u3057\u305f\u304c\u554f\u984c\u306a\u304f\u8d77\u52d5\u3067\u304d\u307e\u3057\u305f\u3002\u65e2\u306bissue\u5316\u3055\u308c\u3066\u304a\u308a\u3001PR\u3082\u30de\u30fc\u30b8\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-1024x200.png\" alt=\"\" class=\"wp-image-6129\" width=\"577\" height=\"113\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-1024x200.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-300x58.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-768x150.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-830x162.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-230x45.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-350x68.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2-480x94.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-2.png 1436w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/github.com\/containers\/podman\/issues\/11421\">https:\/\/github.com\/containers\/podman\/issues\/11421<\/a><\/p>\n\n\n\n<p>\u8d77\u52d5\u78ba\u8a8d\u306f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% podman machine ls\nNAME                     VM TYPE     CREATED      LAST UP\npodman-machine-default*  qemu        3 hours ago  4 minutes ago<\/pre>\n\n\n\n<p>\u306e\u3088\u3046\u306b\u3067\u304d\u307e\u3059\u3002<br>\u505c\u6b62\u3059\u308b\u969b\u306b\u306f<code>podman machine stop<\/code>\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/zenn.dev\/polyomino\/articles\/podman-introduction#podman%E3%81%AE%E5%AE%9F%E8%A1%8C\"><\/a> Podman\u306e\u5b9f\u884c<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/podman.io\" target=\"_blank\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u306b<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Simply put: alias docker=podman\n<\/pre>\n\n\n\n<p>\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001<code>docker<\/code>\u30b3\u30de\u30f3\u30c9\u3092<code>podman<\/code>\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067Docker\u3068\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% podman pull nginx\n# \u8d77\u52d5\u3059\u308b\u304c\u3001v3.3.1\u3067\u306f\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044(\u5f8c\u8ff0)\n% podman run --rm -d --name nginx -p 8080:80 nginx\n% podman ps\nCONTAINER ID  IMAGE                           COMMAND               CREATED        STATUS            PORTS                 NAMES\n109dc70571dd  docker.io\/library\/nginx:latest  nginx -g daemon o...  7 seconds ago  Up 7 seconds ago  0.0.0.0:8080->80\/tcp  nginx<\/pre>\n\n\n\n<p>v3.3.1\u3067\u306f\u81ea\u52d5\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u6a5f\u80fd\u5468\u308a\u306b\u30d0\u30b0\u304c\u3042\u308b\u3089\u3057\u304f\u3001run\u3059\u308b\u969b\u306b<code>--network bridge<\/code>\u3092\u3064\u3051\u308b\u306a\u3069\u306e\u5bfe\u5fdc\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002\u8a73\u3057\u304f\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/rheb.hatenablog.com\/entry\/podman-machine\" target=\"_blank\">\u53c2\u8003\u8a18\u4e8b2<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u65e2\u306bPR\u304c\u30de\u30fc\u30b8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30ea\u30ea\u30fc\u30b9\u3092\u5f85\u3063\u3066\u304b\u3089Podman\u3092\u8a66\u3057\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker Desktop\u304c\u5927\u898f\u6a21\u4f01\u696d\u306b\u5bfe\u3057\u3066\u6709\u6599\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee3\u66ff\u3092\u63a2\u3057\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6127"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6127"}],"version-history":[{"count":2,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6127\/revisions"}],"predecessor-version":[{"id":6130,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6127\/revisions\/6130"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}