docker compose run --rm web python manage.py migrate

Category: Docker

docker compose run --rm web python manage.py migrate

Run a one-off command in a new container for a service, then remove it

Creates a temporary container for the web service, runs a one-off command, then deletes the container.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.