{"id":294,"date":"2022-10-23T05:06:04","date_gmt":"2022-10-22T20:06:04","guid":{"rendered":"https:\/\/tech.softbell.net\/?p=240"},"modified":"2022-10-23T05:06:04","modified_gmt":"2022-10-22T20:06:04","slug":"wsl2-docker-desktop-hostpath","status":"publish","type":"post","link":"https:\/\/tech.softbell.net\/?p=294","title":{"rendered":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">\uc804\uc81c \uc870\uac74<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>OS: Windows 10 or Windows 11<\/li><li>WSL2 \uae30\ubc18 Ubuntu<\/li><li>Docker Desktop Kubernetes<\/li><li>\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">1 \ub2e8\uacc4<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Pod\nmetadata:\n  name: wsl2-debug-pod\nspec:\n  containers:\n    - name: busybox\n      image: busybox\n      command:\n        - sleep\n        - \"3600\"\n      volumeMounts:\n        - mountPath: \/mnt\/host\n          name: host-root\n  restartPolicy: Always\n  volumes:\n    - name: host\n      hostPath:\n        path: \/\n<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p>\uc704 \ub514\ubc84\uae45\uc6a9 pod yaml \uc744 \uc801\uc6a9<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">2 \ub2e8\uacc4<\/h2>\n\n\n\n<p><code>kubectl exec wsl2-debug-pod -it \/bin\/sh<\/code><\/p>\n\n\n\n<p>\ub514\ubc84\uae45\uc6a9 pod \uc5d0 \uc811\uc18d<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><code>cd \/mnt\/host<\/code><\/p>\n\n\n\n<p>\ub9c8\uc6b4\ud2b8\ud55c \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud558\uc5ec WSL2 \uc6b0\ubd84\ud22c \ub514\ub809\ud1a0\ub9ac\uac00 k8s \ud658\uacbd\uc5d0\uc11c \uc5b4\ub5bb\uac8c \ub9c8\uc6b4\ud2b8 \ub418\ub294\uc9c0 \ud655\uc778<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><code>ls -al run\/desktop\/mnt\/host\/wsl\/ubuntu\/<\/code><\/p>\n\n\n\n<p>\uba85\ub839\uc73c\ub85c \ud655\uc778\ud558\uba74 \ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac \ud558\uc704\uac00 WSL2 \uae30\ubc18 \uc6b0\ubd84\ud22c\uc758 \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac\uc784\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc74c<\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">3 \ub2e8\uacc4<\/h2>\n\n\n\n<p>\uc704 \uacfc\uc815\uc73c\ub85c k8s \ud658\uacbd \ub0b4\uc5d0\uc11c <code>\/run\/desktop\/mnt\/host\/wsl\/ubuntu\/<\/code> \ub514\ub809\ud1a0\ub9ac\uac00 WSL2 \uae30\ubc18 \uc6b0\ubd84\ud22c \ud658\uacbd\uc758 \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac\uc784\uc744 \ud655\uc778<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>ex) \ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131\uc744 \uc704\ud574 \ud504\ub85c\uc81d\ud2b8 \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac\ub97c k8s pod \ub0b4\uc5d0\uc11c hostPath \ub85c \ub9c8\uc6b4\ud2b8\ud558\uc5ec \uc0ac\uc6a9 \uc2dc<\/p>\n\n\n\n<p>WSL2 \uc6b0\ubd84\ud22c \ub0b4 \ud504\ub85c\uc81d\ud2b8 \ub514\ub809\ud1a0\ub9ac: <code>\/home\/bell\/programming\/git\/intellij\/sample-project<\/code><\/p>\n\n\n\n<p>-> k8s \ud658\uacbd hostPath: <code><strong>\/run\/desktop\/mnt\/host\/wsl<\/strong>\/ubuntu\/home\/bell\/programming\/git\/intellij\/sample-project<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Pod\nmetadata:\n  name: wsl2-realtime-sync-path-pod\nspec:\n  containers:\n    - name: busybox\n      image: busybox\n      command:\n        - sleep\n        - \"3600\"\n      volumeMounts:\n        - mountPath: \/mnt\/project\n          name: project-root\n  restartPolicy: Always\n  volumes:\n    - name: project-root\n      hostPath:\n        path: \/run\/desktop\/mnt\/host\/wsl\/ubuntu\/home\/bell\/programming\/git\/intellij\/sample-project\n<\/code><\/pre>\n\n\n\n<p>\uc704 \ud615\ud0dc\ub85c hostPath \uac12\uc744 \uc124\uc815\ud558\uba74 \uc6b0\ubd84\ud22c \ud658\uacbd\uc5d0\uc11c \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c \ubcc0\uacbd \uc2dc k8s \ud658\uacbd \ub0b4 pod \uc5d0\uc11c \uc2e4\uc2dc\uac04\uc73c\ub85c \ubc18\uc601\ub418\uc5b4 gradle continuous build \ub610\ub294 vue.js \uc758 yarn dev \uac19\uc774 \ud30c\uc77c \ubcc0\uacbd \uc2dc \uc2e4\uc2dc\uac04\uc73c\ub85c \ube4c\ub4dc\ub418\uc5b4 \uc801\uc6a9\ub418\ub294 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc74c<\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">\ucd94\uac00 \uc815\ubcf4<\/h2>\n\n\n\n<p>\ucc98\uc74c\uc5d0\ub294 \uac1c\ubc1c \ud3b8\uc758\ub97c \uc704\ud574 \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\uc744 \uc708\ub3c4\uc6b0 \ud658\uacbd\uc5d0 \uc800\uc7a5\ud558\uace0 k8s pod \uc5d0\uc11c \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\uc744 <code>\/run\/desktop\/mnt\/host\/c\/~~~<\/code> \ud615\ud0dc\ub85c \uc708\ub3c4\uc6b0\uc758 \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc5d0\uc11c \ub85c\ub4dc\ud558\ub3c4\ub85d \ud588\uc5c8\ub294\ub370, \uc774\ub7f0\uc2dd\uc73c\ub85c \uad6c\uc131\ud558\ub2c8 I\/O \uc18d\ub3c4\uac00 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc744 \uc815\ub3c4\ub85c \ub9e4\uc6b0 \uc800\ud558\ub418\uc5b4 \ud504\ub85c\uc81d\ud2b8 \ube4c\ub4dc\ud558\ub294\ub370 \ud55c\uc138\uc6d4\uc774 \uac78\ub838\uc74c<\/p>\n\n\n\n<p>\ub530\ub77c\uc11c WSL2 \uae30\ubc18 \ud658\uacbd\uc5d0 \uc62c\ub77c\uac00\uc788\ub294 k8s \uc5d0\uc11c \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\uc744 \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4\uba74 \ud504\ub85c\uc81d\ud2b8 \ud30c\uc77c\uc744 \ubb34\uc870\uac74 WSL \ud658\uacbd \uc548\uc5d0 \uc800\uc7a5\ud574\uc57c \ud568<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\uc704 hostPath \uc124\uc815 \uc815\ubcf4\ub294 WSL2 \uae30\ubcf8 \uc124\uc815\uc77c \uacbd\uc6b0\ub97c \uac00\uc815\ud558\uace0 \uc791\uc131\ub428<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/ko-kr\/windows\/wsl\/wsl-config#automount-settings\">https:\/\/learn.microsoft.com\/ko-kr\/windows\/wsl\/wsl-config#automount-settings<\/a><\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<p>\uc870\ud68c\uc218: 430<\/p>","protected":false},"excerpt":{"rendered":"<p>\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11 WSL2 \uae30\ubc18 Ubuntu Docker Desktop Kubernetes \ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 \uc704 \ub514\ubc84\uae45\uc6a9 pod yaml \uc744 \uc801\uc6a9 2 \ub2e8\uacc4 kubectl exec wsl2-debug-pod -it \/bin\/sh \ub514\ubc84\uae45\uc6a9 pod \uc5d0 \uc811\uc18d cd \/mnt\/host \ub9c8\uc6b4\ud2b8\ud55c \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud558\uc5ec [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[22,60,18,54],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-infrastructure","category-kubernetes","category-os","category-windows"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - &quot;3600&quot; volumeMounts: - mountPath: \/mnt\/host name: host-root\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Bell\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tech.softbell.net\/?p=294\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"ko_KR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Bell&#039;s Tech Blog - \ubc29\uc6b8\uc758 \uae30\uc220 \ube14\ub85c\uadf8\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell&#039;s Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - &quot;3600&quot; volumeMounts: - mountPath: \/mnt\/host name: host-root\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tech.softbell.net\/?p=294\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-10-22T20:06:04+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-10-22T20:06:04+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell&#039;s Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - &quot;3600&quot; volumeMounts: - mountPath: \/mnt\/host name: host-root\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#blogposting\",\"name\":\"Windows WSL2 \\ud658\\uacbd Docker Desktop Kubernetes hostPath \\ub9c8\\uc6b4\\ud2b8 \\ubc29\\ubc95 - Bell's Tech Blog\",\"headline\":\"Windows WSL2 \\ud658\\uacbd Docker Desktop Kubernetes hostPath \\ub9c8\\uc6b4\\ud2b8 \\ubc29\\ubc95\",\"author\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#organization\"},\"datePublished\":\"2022-10-23T05:06:04+09:00\",\"dateModified\":\"2022-10-23T05:06:04+09:00\",\"inLanguage\":\"ko-KR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#webpage\"},\"articleSection\":\"Infrastructure, Kubernetes, Operating system, Windows\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#listItem\",\"position\":1,\"name\":\"\\ud648\",\"item\":\"https:\\\/\\\/tech.softbell.net\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=18#listItem\",\"name\":\"Operating system\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=18#listItem\",\"position\":2,\"name\":\"Operating system\",\"item\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=18\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=54#listItem\",\"name\":\"Windows\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#listItem\",\"name\":\"\\ud648\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=54#listItem\",\"position\":3,\"name\":\"Windows\",\"item\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=54\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#listItem\",\"name\":\"Windows WSL2 \\ud658\\uacbd Docker Desktop Kubernetes hostPath \\ub9c8\\uc6b4\\ud2b8 \\ubc29\\ubc95\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=18#listItem\",\"name\":\"Operating system\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#listItem\",\"position\":4,\"name\":\"Windows WSL2 \\ud658\\uacbd Docker Desktop Kubernetes hostPath \\ub9c8\\uc6b4\\ud2b8 \\ubc29\\ubc95\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?cat=54#listItem\",\"name\":\"Windows\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#organization\",\"name\":\"Bell's Tech Blog\",\"description\":\"\\ubc29\\uc6b8\\uc758 \\uae30\\uc220 \\ube14\\ub85c\\uadf8\",\"url\":\"https:\\\/\\\/tech.softbell.net\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?author=2#author\",\"url\":\"https:\\\/\\\/tech.softbell.net\\\/?author=2\",\"name\":\"Bell\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84215149e6ed0c8ad9f93ccb8c1f9d1ec029a6944b409128e5d594b7b8a51105?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Bell\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#webpage\",\"url\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294\",\"name\":\"Windows WSL2 \\ud658\\uacbd Docker Desktop Kubernetes hostPath \\ub9c8\\uc6b4\\ud2b8 \\ubc29\\ubc95 - Bell's Tech Blog\",\"description\":\"\\uc804\\uc81c \\uc870\\uac74 OS: Windows 10 or Windows 11WSL2 \\uae30\\ubc18 UbuntuDocker Desktop Kubernetes\\ub85c\\uceec \\uac1c\\ubc1c\\ud658\\uacbd \\uad6c\\uc131 \\ub4f1\\uc744 \\uc704\\ud574 WSL2 \\uae30\\ubc18 Ubuntu \\ub0b4 \\ub514\\ub809\\ud1a0\\ub9ac\\ub97c \\uc2e4\\uc2dc\\uac04\\uc73c\\ub85c \\uc0ac\\uc6a9\\ud558\\uae30 \\uc704\\ud574 hostPath \\ub9c8\\uc6b4\\ud2b8\\uac00 \\ud544\\uc694\\ud560 \\uacbd\\uc6b0 1 \\ub2e8\\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - \\\"3600\\\" volumeMounts: - mountPath: \\\/mnt\\\/host name: host-root\",\"inLanguage\":\"ko-KR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?p=294#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/?author=2#author\"},\"datePublished\":\"2022-10-23T05:06:04+09:00\",\"dateModified\":\"2022-10-23T05:06:04+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#website\",\"url\":\"https:\\\/\\\/tech.softbell.net\\\/\",\"name\":\"Bell's Tech Blog\",\"description\":\"\\ubc29\\uc6b8\\uc758 \\uae30\\uc220 \\ube14\\ub85c\\uadf8\",\"inLanguage\":\"ko-KR\",\"publisher\":{\"@id\":\"https:\\\/\\\/tech.softbell.net\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell's Tech Blog","description":"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - \"3600\" volumeMounts: - mountPath: \/mnt\/host name: host-root","canonical_url":"https:\/\/tech.softbell.net\/?p=294","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/tech.softbell.net\/?p=294#blogposting","name":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell's Tech Blog","headline":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95","author":{"@id":"https:\/\/tech.softbell.net\/?author=2#author"},"publisher":{"@id":"https:\/\/tech.softbell.net\/#organization"},"datePublished":"2022-10-23T05:06:04+09:00","dateModified":"2022-10-23T05:06:04+09:00","inLanguage":"ko-KR","mainEntityOfPage":{"@id":"https:\/\/tech.softbell.net\/?p=294#webpage"},"isPartOf":{"@id":"https:\/\/tech.softbell.net\/?p=294#webpage"},"articleSection":"Infrastructure, Kubernetes, Operating system, Windows"},{"@type":"BreadcrumbList","@id":"https:\/\/tech.softbell.net\/?p=294#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/#listItem","position":1,"name":"\ud648","item":"https:\/\/tech.softbell.net\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=18#listItem","name":"Operating system"}},{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=18#listItem","position":2,"name":"Operating system","item":"https:\/\/tech.softbell.net\/?cat=18","nextItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=54#listItem","name":"Windows"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/#listItem","name":"\ud648"}},{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=54#listItem","position":3,"name":"Windows","item":"https:\/\/tech.softbell.net\/?cat=54","nextItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?p=294#listItem","name":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=18#listItem","name":"Operating system"}},{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?p=294#listItem","position":4,"name":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95","previousItem":{"@type":"ListItem","@id":"https:\/\/tech.softbell.net\/?cat=54#listItem","name":"Windows"}}]},{"@type":"Organization","@id":"https:\/\/tech.softbell.net\/#organization","name":"Bell's Tech Blog","description":"\ubc29\uc6b8\uc758 \uae30\uc220 \ube14\ub85c\uadf8","url":"https:\/\/tech.softbell.net\/"},{"@type":"Person","@id":"https:\/\/tech.softbell.net\/?author=2#author","url":"https:\/\/tech.softbell.net\/?author=2","name":"Bell","image":{"@type":"ImageObject","@id":"https:\/\/tech.softbell.net\/?p=294#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/84215149e6ed0c8ad9f93ccb8c1f9d1ec029a6944b409128e5d594b7b8a51105?s=96&d=mm&r=g","width":96,"height":96,"caption":"Bell"}},{"@type":"WebPage","@id":"https:\/\/tech.softbell.net\/?p=294#webpage","url":"https:\/\/tech.softbell.net\/?p=294","name":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell's Tech Blog","description":"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - \"3600\" volumeMounts: - mountPath: \/mnt\/host name: host-root","inLanguage":"ko-KR","isPartOf":{"@id":"https:\/\/tech.softbell.net\/#website"},"breadcrumb":{"@id":"https:\/\/tech.softbell.net\/?p=294#breadcrumblist"},"author":{"@id":"https:\/\/tech.softbell.net\/?author=2#author"},"creator":{"@id":"https:\/\/tech.softbell.net\/?author=2#author"},"datePublished":"2022-10-23T05:06:04+09:00","dateModified":"2022-10-23T05:06:04+09:00"},{"@type":"WebSite","@id":"https:\/\/tech.softbell.net\/#website","url":"https:\/\/tech.softbell.net\/","name":"Bell's Tech Blog","description":"\ubc29\uc6b8\uc758 \uae30\uc220 \ube14\ub85c\uadf8","inLanguage":"ko-KR","publisher":{"@id":"https:\/\/tech.softbell.net\/#organization"}}]},"og:locale":"ko_KR","og:site_name":"Bell's Tech Blog - \ubc29\uc6b8\uc758 \uae30\uc220 \ube14\ub85c\uadf8","og:type":"article","og:title":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell's Tech Blog","og:description":"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - &quot;3600&quot; volumeMounts: - mountPath: \/mnt\/host name: host-root","og:url":"https:\/\/tech.softbell.net\/?p=294","article:published_time":"2022-10-22T20:06:04+00:00","article:modified_time":"2022-10-22T20:06:04+00:00","twitter:card":"summary_large_image","twitter:title":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95 - Bell's Tech Blog","twitter:description":"\uc804\uc81c \uc870\uac74 OS: Windows 10 or Windows 11WSL2 \uae30\ubc18 UbuntuDocker Desktop Kubernetes\ub85c\uceec \uac1c\ubc1c\ud658\uacbd \uad6c\uc131 \ub4f1\uc744 \uc704\ud574 WSL2 \uae30\ubc18 Ubuntu \ub0b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 hostPath \ub9c8\uc6b4\ud2b8\uac00 \ud544\uc694\ud560 \uacbd\uc6b0 1 \ub2e8\uacc4 apiVersion: v1 kind: Pod metadata: name: wsl2-debug-pod spec: containers: - name: busybox image: busybox command: - sleep - &quot;3600&quot; volumeMounts: - mountPath: \/mnt\/host name: host-root"},"aioseo_meta_data":{"post_id":"294","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-02-06 11:25:24","updated":"2025-06-04 00:19:42","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tech.softbell.net\/\" title=\"\ud648\">\ud648<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tech.softbell.net\/?cat=18\" title=\"Operating system\">Operating system<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tech.softbell.net\/?cat=54\" title=\"Windows\">Windows<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWindows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\ud648","link":"https:\/\/tech.softbell.net\/"},{"label":"Operating system","link":"https:\/\/tech.softbell.net\/?cat=18"},{"label":"Windows","link":"https:\/\/tech.softbell.net\/?cat=54"},{"label":"Windows WSL2 \ud658\uacbd Docker Desktop Kubernetes hostPath \ub9c8\uc6b4\ud2b8 \ubc29\ubc95","link":"https:\/\/tech.softbell.net\/?p=294"}],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/tech.softbell.net\/index.php?rest_route=\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.softbell.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.softbell.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.softbell.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.softbell.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294"}],"version-history":[{"count":0,"href":"https:\/\/tech.softbell.net\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.softbell.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.softbell.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.softbell.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}