Skip to content
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

Use docker compose exec rather than docker exec -ti #162

Open
tbroyer opened this issue Feb 26, 2024 · 1 comment
Open

Use docker compose exec rather than docker exec -ti #162

tbroyer opened this issue Feb 26, 2024 · 1 comment

Comments

@tbroyer
Copy link

tbroyer commented Feb 26, 2024

Compose has a docker compose exec command that's equivalent to docker exec -ti and frees you from having to know/guess/find the name of the container: you just use the name of the service as declared in the compose file and Compose maps it for you.

In https://help.penpot.app/technical-guide/getting-started/#create-users-using-cli, the command can thus be replaced with

docker compose exec penpot-backend python3 ./manage.py create-profile

and the note that follows regarding the exact name of the container can be removed.

@breuxi
Copy link

breuxi commented May 9, 2024

+1 also the documentation currently still mentions a manage.sh instead of manage.py!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants