Docker-compose fails to start postgres: exec "docker-entrypoint.sh" not found in $PATH: unknown

I am trying to get Postgres running with docker-compose, but running into a problem that I don’t understand. Any help you be greatly appreciated!

[tom@maker ~]$ uname -a
Linux maker 5.15.69-1-MANJARO #1 SMP PREEMPT Tue Sep 20 22:13:34 UTC 2022 x86_64 GNU/Linux
[tom@maker ~]$ docker --version
Docker version 20.10.18, build b40c2f6b5d
[tom@maker ~]$ docker-compose --version
Docker Compose version 2.11.1
[tom@maker ~]$ cd Projects/pumpitbetter/webapp
[tom@maker webapp]$ cat docker-compose.yml
version: "3"
services:
  postgres:
    image: postgres
    restart: always
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=postgres
[tom@maker webapp]$ docker-compose up
Attaching to webapp-postgres-1
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh": executable file not found in $PATH: unknown
[tom@maker webapp]$ 

OK, I found the solution, or at least a work around. These errors went away as soon as I manually pulled the postgres image with docker:

docker pull postgres