Skip to content

Commit d8ad644

Browse files
authored
Fix dockershell command
run creates a new container from the docker image. exec runs in the existing running container, which is what we want.
1 parent e3effc0 commit d8ad644

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ dockerserve:
3232
docker compose -f $(DOCKER_CONFIG) up
3333

3434
# Use this command to inspect the container, run management commands,
35-
# or run anything else on the Django container
35+
# or run anything else on the Django container. It does expect the
36+
# container to already be running
3637
dockershell:
37-
docker compose -f $(DOCKER_CONFIG) run --rm django /bin/bash
38+
docker compose -f $(DOCKER_CONFIG) exec django /bin/bash
3839

3940
# Build and deploy the production container
4041
deploy:

0 commit comments

Comments
 (0)