π Docker Containerλ‘ λ¬΄μΈκ° ꡬμΆμ€μ΄μ λΆ
π Docker Container μ©λμ΄ λΆμ‘±νμ λΆ
Docker 컨ν μ΄λ λ΄μμ pip μ€μΉ μ, μ©λ λΆμ‘± μλ¬ λ°μ νμΈ
Collecting pyspark
Downloading pyspark-3.3.0.tar.gz (281.3 MB)
ββββββββββββββββββββββββββββββββββββββββ 281.3/281.3 MB 5.8 MB/s eta 0:00:00
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device
Q: pipλ‘ λ¬΄μΈκ° μ€μΉνλ €κ³ νλ©΄, μκΎΈ λλ°μ΄μ€μ λ¨μ 곡κ°μ΄ μλ€κ³ ν΄μπ₯
A: λ‘컬과 맀νλ λ컀 νμΌ μμ€ν
μ μ©λ λΆμ‘± νμμ
λλ€π
νμΌμμ€ν
(FS)μ μ’
λ₯λ₯Ό νμΈνμκ³ ,
νλ¨μ FS μ’
λ₯λ³ μ루μ
μ μ°Έκ³ ν΄μ£ΌμΈμββ
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd 9.8G 9.3G 25M 100% /
$ sudo dmsetup table docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
0 20971520 thin 253:0 162
# μκΈ°μ 20971520μ΄ νμ¬ docker container μ©λ
$ echo 0 41943040 thin 253:0 162 | sudo dmsetup load docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
# μκΈ°μ 41943040μ μνλ μ©λ κΈ°μ
$ sudo dmsetup resume docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
$ sudo dmsetup table docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
0 41943040 thin 253:0 162
# μλ¨μ 41943040μ²λΌ λ³κ²½λ ν
μ΄λΈ λ΄μ© νμΈ
$ sudo resize2fs /dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
$ sudo xfs_growfs /dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
A: μκΈ° μ μ°¨λλ‘ μννλ©΄ 컨ν
μ΄λ μ©λ λΆμ‘± νμμ΄ ν΄κ²°λ©λλ€πππ