본문 바로가기
개발

WSL2 RockyLinux 8.7 설치하기

by Remover 2023. 3. 17.
반응형

docker-desktop이 설치되어있는 환경에서 실행해야 합니다.

$ docker run --name rocky-container rockylinux/rockylinux:8.7

$ docker container list -all | Select-String rocky-container

9eb162a9482b   rockylinux/rockylinux:8.7   "/bin/bash"   About a minute ago   Exited (0) About a minute ago
 rocky-container

$ docker export rocky-container -o rocky-container.tar

$ wsl --import rocky-8 D:\rocky .\rocky-container.tar

$ wsl -l -v

* docker-desktop-data    Running         2
  rocky-8                Stopped         2
  docker-desktop         Running         2


$ yum update
$ yum install glibc-langpack-en -y
$ yum install glibc-langpack-ko -y
$ yum reinstall passwd sudo cracklib-dicts -y


$ newUsername=abcd
$ adduser -G wheel $newUsername
$ echo -e "[user]\ndefault=$newUsername" >> /etc/wsl.conf
$ passwd $newUsername

댓글