{"id":916,"date":"2022-06-15T13:53:16","date_gmt":"2022-06-15T06:53:16","guid":{"rendered":"http:\/\/www.oopsbox.com\/?p=916"},"modified":"2022-06-16T15:13:41","modified_gmt":"2022-06-16T08:13:41","slug":"run-containers-with-podman-on-wsl2","status":"publish","type":"post","link":"https:\/\/www.oopsbox.com\/?p=916","title":{"rendered":"Run containers with Podman on WSL2 Part 1"},"content":{"rendered":"<p>Part 1\u00a0 (\u0e41\u0e1e\u0e25\u0e19\u0e21\u0e35 Part 2 \u0e41\u0e2b\u0e25\u0e48\u0e30 \u0e08\u0e30\u0e1e\u0e22\u0e32\u0e22\u0e32\u0e21\u0e21\u0e35\u0e27\u0e34\u0e19\u0e31\u0e22\u0e21\u0e32\u0e1a\u0e25\u0e47\u0e2d\u0e01\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49 ^_^)<\/p>\n<p>\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\u0e04\u0e37\u0e2d Windows \u0e40\u0e2d\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e1b\u0e34\u0e14 WSL2 \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14\u0e01\u0e47\u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<br \/>\n1. Enable Windows Subsystem for Linux (WSL)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">dism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart<\/pre>\n<p>2. Enable Windows Virtual Machine Platform<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/pre>\n<p>3. \u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 Linux kernel to the latest version \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e1e\u0e04\u0e40\u0e01\u0e08<\/p>\n<ul>\n<li><a href=\"https:\/\/wslstorestorage.blob.core.windows.net\/wslblob\/wsl_update_x64.msi\">WSL2 Linux kernel update MSI package for x64 systems<\/a> \u0e2b\u0e23\u0e37\u0e2d<\/li>\n<li><a href=\"https:\/\/wslstorestorage.blob.core.windows.net\/wslblob\/wsl_update_arm64.msi\">WSL2 Linux kernel update MSI package for ARM64 systems<\/a><\/li>\n<\/ul>\n<p>4. \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49 WSL2 \u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 Default<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wsl --set-default-version 2<\/pre>\n<p>5. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Linux \u0e14\u0e34\u0e2a\u0e42\u0e17\u0e23\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 Store \u0e2b\u0e23\u0e37\u0e2d List \u0e15\u0e31\u0e27\u0e17\u0e35\u0e48\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wsl --list --online<\/pre>\n<p>5.1 \u0e41\u0e15\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e25\u0e37\u0e2d\u0e01 <a href=\"https:\/\/www.alpinelinux.org\/\">Alpine Distro<\/a> \u0e41\u0e17\u0e19\u0e43\u0e19 Part 1 \u0e19\u0e35\u0e49 \u0e44\u0e1b\u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07 Distro \u0e19\u0e35\u0e49\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49<a href=\"https:\/\/www.alpinelinux.org\/\">\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48<\/a> \u0e0b\u0e36\u0e48\u0e07\u0e21\u0e35\u0e04\u0e19\u0e17\u0e33\u0e44\u0e27\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a WSL2 \u0e41\u0e25\u0e49\u0e27<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">https:\/\/github.com\/yuk7\/AlpineWSL<\/pre>\n<p><a href=\"https:\/\/github.com\/yuk7\/AlpineWSL\/releases\/download\/3.15.0-0\/Alpine.zip\">\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14<\/a>\u0e15\u0e31\u0e27\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19 3.15 \u0e41\u0e25\u0e30\u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c Alpine.exe \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e31\u0e19\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-921\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-065509-300x139.jpg\" alt=\"\" width=\"740\" height=\"344\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-065509-300x139.jpg 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-065509-768x357.jpg 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-065509.jpg 1007w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>\u0e25\u0e34\u0e2a\u0e15\u0e4c Distro \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wsl --list --verbose<\/pre>\n<p>\u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23 Distro &#8220;Alpine&#8221; \u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e31\u0e19\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19<\/p>\n<p>6. \u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Alpine \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14 PowerShell \u0e41\u0e25\u0e30\u0e40\u0e25\u0e37\u0e2d\u0e01 Distro Alpine \u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wsl -d Alpine<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-922\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070042-1024x470.jpg\" alt=\"\" width=\"740\" height=\"340\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070042-1024x470.jpg 1024w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070042-300x138.jpg 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070042-768x352.jpg 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070042.jpg 1044w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>7. \u0e43\u0e2b\u0e49 Update package \u0e41\u0e25\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 podman \u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">apk update &amp;&amp; apk add podman<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-924\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070621-1024x470.jpg\" alt=\"\" width=\"740\" height=\"340\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070621-1024x470.jpg 1024w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070621-300x138.jpg 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070621-768x352.jpg 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-070621.jpg 1044w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>\u0e21\u0e35\u0e41\u0e1e\u0e04\u0e40\u0e01\u0e08 <a href=\"https:\/\/pkgs.alpinelinux.org\/package\/edge\/testing\/x86\/podman-compose\">podman-compose<\/a> (\u0e43\u0e0a\u0e49\u0e41\u0e17\u0e19 docker-compose) \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1e\u0e34\u0e48\u0e21 repository \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u0e41\u0e25\u0e30\u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 \u0e41\u0e1e\u0e04\u0e40\u0e01\u0e08\u0e15\u0e32\u0e21\u0e25\u0e33\u0e14\u0e31\u0e1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">echo \"@testing http:\/\/dl-cdn.alpinelinux.org\/alpine\/edge\/testing\" &gt;&gt; \/etc\/apk\/repositories\r\napk update &amp;&amp; apk add podman-compose@testing<\/pre>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e25\u0e2d\u0e07\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e23\u0e31\u0e19\u00a0 compose.yml \u0e44\u0e1f\u0e25\u0e4c\u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">version: '3'\r\nservices:\r\n  nginx:\r\n    container_name: nginx\r\n    image: docker.io\/library\/nginx:alpine\r\n    volumes:\r\n      - nginx:\/etc\/nginx\r\n    ports:\r\n      - 1080:80\r\n      - 1443:443\r\n    tty: true\r\n    restart: unless-stopped\r\n    networks:\r\n      - nginxnetwork\r\n    command: [nginx-debug, '-g', 'daemon off;']\r\n\r\nvolumes:\r\n  nginx:\r\n\r\nnetworks:\r\n  nginxnetwork:\r\n    name: nginxnetwork\r\n    external: true<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-926\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-081308-1024x570.jpg\" alt=\"\" width=\"740\" height=\"412\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-081308-1024x570.jpg 1024w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-081308-300x167.jpg 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-081308-768x428.jpg 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-2022-06-16-081308.jpg 1099w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>\u0e08\u0e1a\u0e1b\u0e34\u0e4a\u0e07 ^__^<\/p>\n<p>&nbsp;<\/p>\n<div id=\"s-share-buttons\" class=\"\"><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"fb-share-button\" data-href=\"https:\/\/www.oopsbox.com\/?p=916\" data-type=\"button_count\"><\/div><\/div><div class=\"s-single-share\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"g-plusone\" data-size=\"medium\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/\/www.pinterest.com\/pin\/create\/button\/\" data-pin-do=\"buttonBookmark\"  data-pin-color=\"red\"><img decoding=\"async\" src=\"\/\/assets.pinterest.com\/images\/pidgets\/pinit_fg_en_rect_red_20.png\" \/><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<script type=\"text\/javascript\" async defer src=\"\/\/assets.pinterest.com\/js\/pinit.js\"><\/script>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"mailto:?Subject=Run%20containers%20with%20Podman%20on%20WSL2%20Part%201&Body=Here%20is%20the%20link%20to%20the%20article:%20https:\/\/www.oopsbox.com\/?p=916\" title=\"Email\" class=\"s3-email\"><img decoding=\"async\" src=\"https:\/\/www.oopsbox.com\/wp-content\/plugins\/simple-social-share\/includes\/..\/images\/share-email.png\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Part 1\u00a0 (\u0e41\u0e1e\u0e25\u0e19\u0e21\u0e35 Part 2 \u0e41\u0e2b\u0e25\u0e48\u0e30 \u0e08\u0e30\u0e1e\u0e22\u0e32\u0e22\u0e32\u0e21\u0e21\u0e35\u0e27\u0e34\u0e19\u0e31\u0e22\u0e21\u0e32\u0e1a\u0e25\u0e47\u0e2d\u0e01\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49 ^_^) \u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\u0e04\u0e37\u0e2d Windows \u0e40\u0e2d\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e1b\u0e34\u0e14 WSL2 \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14\u0e01\u0e47\u0e15\u0e32\u0e21\u0e19\u0e35\u0e49 1. Enable Windows Subsystem for Linux (WSL) dism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart 2. Enable Windows Virtual Machine Platform dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart 3. \u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 Linux kernel to the latest version \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e1e\u0e04\u0e40\u0e01\u0e08 WSL2 Linux kernel update MSI package for x64 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.oopsbox.com\/?p=916\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Run containers with Podman on WSL2 Part 1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":917,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","entry"],"views":2262,"_links":{"self":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=916"}],"version-history":[{"count":5,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/916\/revisions\/927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/media\/917"}],"wp:attachment":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}