μ°κ΅¬μ€ GPU μλ²μμ μμ νλ€κ° λ‘컬 μλμ°+WSL2 μ‘°ν©μΌλ‘ Docker μ°λ €κ³ νλλ μλ¬κ° μ°μμ π νκΈλ‘ λ μλ£λ μ μμ΄μ λκ΅°κ°μκ²λ λμμ΄ λκΈ°λ₯Ό λ°λΌλ©° λ§μ£ΌμΉ μλ¬μ ν΄κ²° λ°©λ²μ μ 리ν΄λλ€.
β» νκ²½: Windows 10 Pro, Ubuntu 20.04
# 1
μλ¬ λ¬Έκ΅¬
- Release file for http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 8h 29min 28s). Updates for this repository will not be applied.
μλ¬ μμΈ
- sudo apt-get update 컀맨λ μ¬μ© μ λ‘컬 μμ€ν κ³Ό μ°λΆν¬ μμ€ν μ μκ°μ΄ λ¬λΌμ μκΈ°λ μλ¬. μκ° λκΈ°ν νμ
μλ
- timedatectl set-ntp 0μΌλ‘ μκ°μ μλ μ¬μ€μ νλ €κ³ νμ§λ§ λ°λ‘ μλ μλ¬(# 2)κ° λ¨λ©΄μ μ€ν¨
# 2
μλ¬ λ¬Έκ΅¬
- System has not been booted with systemd as init system (PID 1). Can't operate. Failed to create bus connection: Host is down
μλ¬ μμΈ
- Host(μ΄ λμ Hostκ° μ νν λ μλ―Ένλμ§λ νμ νμ§ λͺ»ν¨)κ° κΊΌμ Έ μλ μν
μλ λ° ν΄κ²° λ°©λ²
- wsl --shutdown ν WSL2 μ체λ₯Ό μ¬μμνλκΉ μκ°μ΄ μλμΌλ‘ λκΈ°ν(# 1 μλ¬ ν΄κ²°)
# 3
μλ¬ μν©
- μλ¬ λ¬Έκ΅¬κ° μ νν κΈ°μ΅λμ§ μμ§λ§ WSL2μμ GPUκ° μ‘νλμ§ νμΈνκΈ° μν΄ nvidia-smi λͺ λ Ήμ΄ μ λ ₯νμ λ λͺ λ Ήμ΄κ° μ λλ‘ μΈμλμ§ μμ
μλ¬ μμΈ
- Windows 10κ³Ό κ΄λ ¨λ λ²μ λ¬Έμ
μλ λ° ν΄κ²° λ°©λ²
- μλ μ¬μ§ μ°Έκ³ νμ¬ 21H1μΌ κ²½μ° 21H2 μ΄μμΌλ‘ μ λ°μ΄νΈ νμ. μλ 21H1μ΄μλλ° μ λ°μ΄νΈ ν μ μ μλ
# 4
μλ¬ λ¬Έκ΅¬
- docker: unrecognized service
μλ¬ μμΈ
- docker λͺ λ Ήμ΄κ° μκ±°λ μ λλ‘ μ€μΉλμ§ μμ
μλ λ° ν΄κ²° λ°©λ²
- docker-ce docker-ce-cli containerd.io μ¬μ€μΉ
# 5
μλ¬ λ¬Έκ΅¬
- Error response from daemon: Container XXX is restarting, wait until the container is running
μλ¬ μμΈ
- μ νν νμ νμ§ λͺ»νμ§λ§ docker run -d ~~~ λ‘ μ»¨ν μ΄λ μμ± ν docker exec ~~~ μ¬μ©νμ λ λ°μ
μλ λ° ν΄κ²° λ°©λ²
- 컨ν μ΄λ μμ ν docker run -it -d ~~~ λ‘ μ»¨ν μ΄λ μ¬μμ±