ERROR: for db Cannot start service db: Ports are not available: listen tcp 0.0.0.0:33060: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. code example

Example: docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:3306: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

localhost port already is being in used. Change to another port. Ex 3366
docker run -e MYSQL_ROOT_PASSWORD=root  --name localMysql -d  -p 3366:3306  mysql:8.0.23