From fd3e4d90af4e77915948c6be7156f569b177dfd5 Mon Sep 17 00:00:00 2001 From: jay817 Date: Wed, 28 Aug 2024 11:11:27 -0400 Subject: [PATCH] Update wsl-docker/README.md --- wsl-docker/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wsl-docker/README.md b/wsl-docker/README.md index d30f39d..da14d82 100644 --- a/wsl-docker/README.md +++ b/wsl-docker/README.md @@ -10,6 +10,7 @@ Ref: https://learn.microsoft.com/ko-kr/windows/wsl/install ```Powershell wsl --install ``` +- 설치를 마친 후 Windows 재부팅을 해야 다음 단계로 넘어갈 수 있다. ## 2. WSL 리눅스 배포판 설치 @@ -31,7 +32,10 @@ https://apps.microsoft.com/detail/9n0dx20hk701?hl=en-US&gl=US - 정상적인 linux는 이미 systemd가 실행되어 있지만 wsl에서는 기본적으로 꺼져있다. - Debian Bash ```sh - echo -e "\n[boot]\nsystemd=true\n" | sudo tee -a /etc/wsl.conf + sudo tee -a /etc/wsl.conf <<'EOF' + [boot] + systemd=true + EOF ``` - Powershell (관리자로 실행): @@ -42,6 +46,7 @@ https://apps.microsoft.com/detail/9n0dx20hk701?hl=en-US&gl=US - Debian Bash: ```sh + sudo apt-get update && sudo apt-get install -y curl curl -fsSL https://get.docker.com | sudo sh sudo adduser $USER docker # sudo 없이 docker 실행 su $USER # group 변경은 로그인해야 적용되므로 자신에게 다시 로그인