Skip to content

How about adding document for docker compose exec? #5328

Closed
@quroom

Description

@quroom

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions