I am executing the following command from the postgres doc
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
Now out of curiosity I run the following:
docker run -it --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres bash
and I don't end up with an interactive bash shell.
Also trying:
docker run -it --name some-postgres --entrypoint bash -e POSTGRES_PASSWORD=mysecretpassword -d postgres
does not work either.
How come I am not able to override the default command?