Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

741
Vistas
service 'image' must be a mapping not a string

I am following a tutorial on udemy and followed the exact steps the tutor did and wrote a docker compose file, but when I enter the command to build and run the app the following error occurs: In file '.\docker-compose.yml', service 'image' must be a mapping not a string.

I tried changing the image to image: redis:alpine instead of image: redis as mentioned on docker docs but it still gives the same error, I even tried image: 'redis'.

version: '3'
services:
 redis-server:
   image: redis
 node-app:
   build: .
 ports:
   - "4081:8081"
over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

I think it's just indentation :

version: '3'
services:
    redis-server:
       image: redis
    node-app:
       build: .
       ports:
           - "4081:8081"

Hope it helps

over 4 years ago · Santiago Trujillo Denunciar

0

You have an indentation problem with all of your services.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda