拉取Docker镜像报错manifest not found:问题排查与方案咨询
First off, let's clarify what's going on here—this isn't your fault at all.
Why you're seeing the error
Docker Hub's tags list is the single source of truth for what images are actually available in a repository. If the 10-2 tag doesn't show up there, that means the image either was never pushed properly, was deleted by the repository maintainer, or got cleaned up as part of old image retention policies. The main repository page you referenced might have outdated documentation or leftover references to old tags that haven't been updated, which is why you thought the tag existed.
What you can do next
Here are three solid solutions to get you up and running:
Use an existing supported tag
Check the repository's tags page for valid Postgres 10 + PLV8 combinations. Look for tags that start with10-(if any exist) or a newer compatible tag that meets your version requirements. Update yourdocker pullcommand and Compose config to use this valid tag instead.Build your own custom image with a Dockerfile
This is totally feasible and gives you full control over the versions. Here's a basic example Dockerfile that builds a Postgres 10 image with PLV8 installed:FROM postgres:10 # Install PLV8 and dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ postgresql-10-plv8 \ && rm -rf /var/lib/apt/lists/* # Optional: Pre-configure PLV8 to load on startup RUN echo "shared_preload_libraries = 'plv8'" >> /var/lib/postgresql/data/postgresql.confTo use this:
- Save the content as
Dockerfile - Build the image with
docker build -t my-postgres-plv8:10 . - Update your Compose file to use
image: my-postgres-plv8:10
- Save the content as
Reach out to the repository maintainer
You can leave a comment or open an issue on the Docker Hub repository page to ask if the10-2tag can be restored, or if the main page documentation can be updated to remove references to missing tags. This helps both you and future users avoid confusion.
内容的提问来源于stack exchange,提问作者Damien Sawyer

