Usuniecie uzywanych portów docker

0

ERROR: for docs Cannot start service docs: Ports are not available: listen tcp 0.0.0.0 bind: address already in use
ERROR: Encountered errors while bringing up the project.

Próbowałem wszystkiego z tych komend:

stop all containers:
docker kill $(docker ps -q)

remove all containers
docker rm $(docker ps -a -q)

remove all docker images
docker rmi $(docker images -q)

1

Czyli po wykonaniu docker ps nie masz żadnych uruchomionych kontenerów, które miałyby mapowanie na port 7000?
Jeśli nie masz, może jakiś inny proces zajmuje ten port? Próbowałeś to sprawdzić?

0

Być może port jest zajęty wewnątrz kontenera? (np. próbujesz uruchomić dwa serwery wewnątrz jednego kontenera)

0

@Patryk27: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ControlCe 1120 mati 20u IPv4 0x8bf95c59e696724f 0t0 TCP *:afs3-fileserver (LISTEN)
ControlCe 1120 mati 21u IPv6 0x8bf95c59ed694537 0t0 TCP *:afs3-fileserver (LISTEN)

Killuje pid i znow sprawdzam port i znow zajety ale z innym pidem

0

@DonStefano:
ControlCe 1120 mati 20u IPv4 0x8bf95c59e696724f 0t0 TCP *:7000 (LISTEN)
ControlCe 1120 mati 21u IPv6 0x8bf95c59ed694537 0t0 TCP *:7000 (LISTEN)

1 użytkowników online, w tym zalogowanych: 0, gości: 1