wsl에서 잘 동작하던 docker가 갑자기 동작하지 않는다.
systemctl 명령어로 다시 실행해도, 아니 다른 명령어를 실행해도 도저히 실행되지 않는다.
그저 아래와 같은 반응만 보일 뿐이었다.
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
그냥 다음과같이 입력해서 실행
$ sudo -b unshare --pid --fork --mount-proc /lib/systemd/systemd --system-unit=basic.target
$ sudo -E nsenter --all -t $(pgrep -xo systemd) runuser -P -l $USER -c "exec $SHELL"
이제 잘 동작한다 ㅎㅎ
'Linux' 카테고리의 다른 글
Ubuntu 구버전 다운로드 (0) | 2023.07.31 |
---|---|
WSL 터미널 글자 색 변경하기 (0) | 2023.01.02 |
[WSL] WSL에서 실행중인 Mysql 윈도우에서 접속하기 (0) | 2023.01.01 |
High CPU usage caused by WSL2 with Docker (2) | 2022.09.28 |
Puppeteer launch error (WSL2 Ubuntu 20.04) (0) | 2022.08.12 |
댓글