Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
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.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

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.

about 4 years ago · Santiago Trujillo Report

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.
about 4 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 Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!