Last active
November 25, 2019 06:26
-
-
Save tux255/f2c49c142bdcf0a32f168b9d76b3ce9c to your computer and use it in GitHub Desktop.
Clear docker containers. Used to fix: Docker-compose up failing because "port is already allocated"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose down | |
docker rm -fv $(docker ps -aq) | |
sudo lsof -i -P -n | grep {PORT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment