Docker
如果地址已被使用,如何啟動 Docker?
如果它抱怨地址已被使用,我如何在 Ubuntu 20.04 上啟動 docker?我試過了
docker-compose up -d Starting relaatiotietokannat_db_1 ... Starting relaatiotietokannat_db_1 ... error ERROR: for relaatiotietokannat_db_1 Cannot start service db: driver failed programming external connectivity on endpoint relaatiotietokannat_db_1 (02444b3d0c2841a4fe702cf2705fbd5a869e44e7f258ecfbcea764ead989fcb4): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint relaatiotietokannat_db_1 (02444b3d0c2841a4fe702cf2705fbd5a869e44e7f258ecfbcea764ead989fcb4): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use ERROR: Encountered errors while bringing up the project.
該錯誤表示該埠
3306
已被另一個程序使用。您必須停止該程序並釋放埠或告訴docker
使用另一個埠。3306
您可以通過執行找出目前正在使用埠的程序netstat -lntep |grep 3306