I hit an error after docker-compose up that said:
ERROR: failed to create endpoint p5jsdocker_website_1 on network bridge: Bind for 0.0.0.0:8000 failed: port is already allocated
To get it working, I did:
docker-machine stop default
docker-machine start default
docker-machine env
eval "$(docker-machine env default)"
docker-compose up
I'm not sure why this works, but I have to do it a lot with Docker so thought it may be worth adding to the "Common Issues" section
I hit an error after
docker-compose up
that said:ERROR: failed to create endpoint p5jsdocker_website_1 on network bridge: Bind for 0.0.0.0:8000 failed: port is already allocated
To get it working, I did:
docker-machine stop default
docker-machine start default
docker-machine env
eval "$(docker-machine env default)"
docker-compose up
I'm not sure why this works, but I have to do it a lot with Docker so thought it may be worth adding to the "Common Issues" section