CLIdock run

dock run

Run a one-off command inside the linked project’s container.

Usage

dock run npm run migrate
dock run python manage.py migrate

What it does

dock run sends the command to the project linked to the current folder, prints the output, and exits with the same code returned by the command.

Notes

  • The current folder must be linked with dock link or dock deploy.
  • Use this for migrations, cache clears, admin scripts, and quick checks.
  • Use dock shell when you want an interactive session.