-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How about adding document for docker compose exec? #5328
Comments
|
That's right. I am talking about docker compose exec. As with any shell command that we wish to run in our container, this is done using the docker compose -f docker-compose.local.yml run --rm command:
If django container is alreay run, you can do it same thing with
Here, |
I am not reviewer :) I close issue. |
Description
https://github.com/cookiecutter/cookiecutter-django/blob/master/docs/developing-locally-docker.rst#execute-management-commands
The document says
exec
doesn't work for running management commands.But actually we can use it with /entrypoint script as he said
I tested it as he said, like
docker compose -f docker-compose.local.yml exec django /entrypoint python3 manage.py createsuperuser
It works fine.
How do you think just adding that command to document?
Rationale
Just add how to use command to document.
The text was updated successfully, but these errors were encountered: