Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants