dock run
Run a one-off command inside the linked project’s container.
Usage
dock run npm run migrate
dock run python manage.py migrateWhat 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 linkordock deploy. - Use this for migrations, cache clears, admin scripts, and quick checks.
- Use
dock shellwhen you want an interactive session.