Open takuro3000 opened 7 months ago
port番号のエラー
https://qiita.com/Quantum/items/8891fa9c94d03b388555
Windows PowerShell で、netstat -ano | Select-String ":3306"
を実行。
プロセスIDが表示された場合、taskkill /F /PID 20344
を参考に、プロセスIDをキルする。
NAT再起動 (管理者権限で起動したPowerShel)
Restart-Service -Name winnat
[web internal] load metadata for docker.io/library/ruby:3.3.0:
failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: ruby:3.3.0: failed to authorize: DeadlineExceeded: failed to fetch anonymous token: Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Fruby%3Apull&service=registry.docker.io": dial tcp 54.236.113.205:443: i/o timeout
Port Already in Use: The most common reason for this error is that another process is already using port 3306. You can check which process is using it by running the following command on a Unix-like system:
sudo lsof -i :3306 or sudo netstat -tulnp | grep 3306
This will show you the PID of the process using the port, which you can then investigate or terminate if necessary.
エラー内容
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:3306 -> 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
作業コマンド
docker compose up --build
完了時に、上のエラーが出る