• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

413
Views
no se pudo analizar el nombre de etapa "postgres:": formato de referencia no válido

Tengo un problema al construir la ventana acoplable. El error es el siguiente:

 => => transferring dockerfile: 327B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "postgres:": invalid reference format ERROR: Service 'postgres' failed to build : Build failed

Traté de encontrar cuál era el problema, pero aún así me quedé con esto, así que amablemente pido su ayuda. Este es el archivo Docker:

 FROM postgres:${POSTGRES_VERSION} ARG TZ=UTC ENV TZ ${TZ} RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R postgres:root /var/lib/postgresql #COPY my.cnf /etc/postgresql/conf.d/my.cnf CMD ["postgres"] EXPOSE 5432

No estoy seguro de cuál puede ser el problema aquí, pero recibo un error mencionado anteriormente. Gracias de antemano por su ayuda.

ACTUALIZACIÓN: fue un error debido a problemas con la lectura de la versión de postgres, como mencionó @Makariy en el comentario.

about 3 years ago · Santiago Trujillo
1 answers
Answer question

0

Tal vez deberías agregar la variable POSTGRES_VERSION

 ARG POSTGRES_VERSION FROM postgres:${POSTGRES_VERSION} ...

Y luego construya image docker build --build-arg POSTGRES_VERSION=9.6 . por ejemplo

También estos documentos podrían ser útiles.

about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error