FerryDocs
ConceptsJobs & cron

Run a one-off job

ferry run starts one new container of a service, runs your command in it, then removes it.

Edit on GitHub
Terminal
$ 

Write the command after --. With --follow, the shows the output. If the job fails, the CLI exits with 1.

Where the job runs

Live imageof the service apiInstancegets the trafficJob containernpm run migrate

The instances of the service run.

1 / 3

A runs next to the of the service, not in them.

The rules

  • The service needs a .
  • A suspended service cannot run a job.
  • The job uses the same image, variables and limits as the live deploy. See What a run uses.

On this page