docker postgres failed to start with specified port

Run the container typing -p option before the image name docker run –name rva-db -e POSTGRES_PASSWORD=rva -e POSTGRES_DB=rva-db -d -p 5432:5432 postgres As for Docker run reference docker run has this format docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG…] Options must be before image name. After that you can set entrypoint or command (when theyy differ … Read more

How to run wp cli in docker-compose.yml

Well there are a couple of problems. The first one is that those two containers (wordpress and wordpress-cli) don’t share a volume. So while wordpress has a wordpress installation ready, the wordpress-cli doesn’t. So you can add volumes to both containers, and then wordpress-cli will find the wordpress installation. Then there’s a second problem: the … Read more