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

163
Vistas
transform command line docker to Dockerfile

I have this dockers commands

1 - docker run -itp 3000:3000 --expose 3000 --name ead-courses-service -v /home/dizie/Projects/node/ead-project-api/ead-courses:/home/ead-courses -w /home/ead-courses --link mongodb node-service npm start

2 - docker run -itp 3001:3001 --name ead-proofs-service -v /home/dizie/Projects/node/ead-project-api/ead-proofs:/home/ead-proofs -w /home/ead-proofs --link ead-courses-service,mongodb node-service npm start

3 - docker run -itp 3002:3002 --name ead-students-service -v /home/dizie/Projects/node/ead-project-api/ead-students:/home/ead-students -w /home/ead-students --link mongodb node-service npm start

I like to execute with mode easier.

Is possible?

Example, Dockerfile or docker-compose.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Not sure if this help. If you are using Windows then just create a .bat file and put all your commands in it. You just have execute this .bat file and all your command will get executed.

If you are using unix/linux OS then create a .sh file and put all your commands in it.

As these are plain commands these should help.

over 4 years ago · Santiago Trujillo Denunciar

0

A first approach just to get you started woudl be to:

  • run those images (you get three containers)
  • docker commit those containers (you get three images representing what was running)
  • apply to those images CenturyLinkLabs/dockerfile-from-image, which will generate a Dockerfile per image.
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