[์ค์น ํ๊ฒฝ]
Mac OS M1
Docker version 25.0.3
Airflow 2.8.3
์ํฉ
docker compose up ๋ช ๋ น์ด๋ก airflow ์๋น์ค๋ฅผ ์คํํ๋ ค๊ณ ํ๋ ์ค๋ฅ๊ฐ ๋ฌ๋ค.
airflow-init-1 | airflow already exist in the db
airflow-init-1 | 2.8.3
airflow-init-1 exited with code 0
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: driver failed programming external connectivity on endpoint statground-airflow-webserver-1 (72d0138e8299777df98dadefd1c1ad8101a53066e50d8070d37ebe7b0fb0bff4): Bind for 0.0.0.0:8080 failed: port is already allocated
์์ธ
์ด์ ์ปจํ ์ด๋๊ฐ ์ ๋๋ก ์ข ๋ฃ๋์ง ์์ ํฌํธ๊ฐ ๊ฒน์ณ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์๋ค.
ํด๊ฒฐ
01. ํด๋น ํฌํธ๋ฅผ ์ฌ์ฉํ๊ณ ์๋ ํ๋ก์ธ์ค ์ฐพ๊ธฐ
lsof -i :8080
02. ํ๋ก์ธ์ค kill ํ๊ธฐ
kill -9 PID๋ฒํธ
๊ฒฐ๊ณผ
docker compose up ๋ช ๋ น์ด๋ฅผ ๋ค์ ์ ๋ ฅํ๋ ์ ์คํ ๋์๋ค.