Docker-compose.yml配置问题



我是一名法国开发人员…

我的配置文件docker compose.yml有问题。。。当我进入码头时,他们给我看:

Pulling db (postgresql:9.4)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]y
Pulling db (postgresql:9.4)...
ERROR: pull access denied for postgresql, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

我的码头组合yml:

version: '3'
services:
hello-world:
build: .
command: npm run dev
ports:
- "3000:8080"
env_file:
- database.env
db:
image: postgresql:9.4
ports:
- "5432:8080"
env_file:
- database.env

请有人帮我…

图像名称中存在拼写错误。应该是postgres:9.4而不是postgresql:9.4

最新更新