Vmmem 메모리 이슈 해결하기 in WSL2

개발/DevOps 2021. 9. 16. 08:20

WSL2 환경에서 도커(Docker)를 실행하다 보면 작업관리자 창의 메모리 부분이 느낌이 쎄할 때가 있다. 확인해보면 매번 다음과 같다. WSL 깃헙 이슈에 있나 검색해보니 놀랍게도 2019년부터 아직까지 오픈되어있는 이슈이다. WSL 2 consumes massive amounts of RAM and doesn't return it · Issue #4166 · microsoft/WSL Your Windows build number: 18917 What's wrong / what should be happening instead: WSL 2 starts using huge amounts of RAM after a while, just using it like normal. At the moment I'..

Article Thumbnail
WSL2에서 ifconfig, netstat : command not found 해결

개발/DevOps 2021. 9. 15. 08:20

WSL2환경에서 세팅하면서 netstat 또는 ifconfig를 해야되는 일이 있는데 명령어를 입력하면 zsh : command not found: netstat 다음과 같이 출력되는 경우가 있다. WSL2가 공식적으로 netstat, ifconfig가 포함되어있는 net-tools를 지원하지 않는 것이 원인이다. 해결법은 다음과 같다. $ apt install net-tools net-tools 설치하면 두 명령어 모두 위와 같이 잘 작동한다.

Article Thumbnail
3. Docker 세팅 with WSL2(Ubuntu 20.04)

개발/DevOps 2021. 9. 14. 08:20

Docker란? - Docker란, 리눅스의 응용 프로그램들을 프로세스 격리 기술들을 사용해 컨테이너로 실행하고 관리하는 기술이다. Docker 설치 기본 레포 세팅 $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release​ 도커 공식 GPG 키 추가 $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg​ 도커 엔진 설치 $ sudo apt-get update $ sudo apt-get..

Article Thumbnail
WSL2 에서 systemd & systemcl 사용

개발/DevOps 2021. 9. 13. 08:20

2022.09.22 >> WSL에서도 systemd를 공식 지원할 예정이라고 합니다. 관련 링크) https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl WSL2를 사용하다보면 systemcl, 또는 systemd를 사용하여 현재 프로세스 status를 확인하려할 때가 있는데, WSL2에서는 아직 systemcl, systemd를 공식적으로 지원하고 있지않다. 하지만 구글링을 조금만 해보면 가이드가 하나 나오는데 이를 따라하면 WSL2환경에서도 systemcl & systemd를 사용할 수 있다. WSL 2 - Enabling systemd WSL 2 - Enabling systemd. GitHub Gist: i..

Article Thumbnail