Skip to content

Commit

Permalink
Remove use of "-T" for docker-compose exec interactive use (#2104)
Browse files Browse the repository at this point in the history
I was doing some testing and noticed that line 27 in `docker-maintain-drupal.md` is using the `-T` flag for `docker-compose exec` which would not allow for interactive shell use as expected.

From the man page...
```
Usage:  docker compose exec [options] [-e KEY=VAL...] [--] SERVICE COMMAND [ARGS...]
...
  -T, --no-TTY docker compose exec   Disable pseudo-TTY allocation. By default docker compose exec allocates a TTY.
...
```
Seem that on the other examples of `docker-compose exec -T...` are fine on the rest of the page, since they are executing non-interactive/specific shell commands.
  • Loading branch information
ysuarez authored May 19, 2022
1 parent 75627e4 commit 32aa02b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/installation/docker-maintain-drupal.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ docker-compose exec -T drupal with-contenv bash -lc 'YOUR COMMAND'

You can also just shell into the drupal container and run commands as well,
just be aware that if you cycle your container for any reason, you'll lose your
bash history. If you want to shell in to run commands, drop the `-lc 'YOUR COMMAND'`
bit.
bash history. If you want to shell in to run commands, drop the `-T` and `-lc 'YOUR COMMAND'`
bits.

```
docker-compose exec -T drupal with-contenv bash
docker-compose exec drupal with-contenv bash
```

## Updating your Drupal Site
Expand Down

0 comments on commit 32aa02b

Please sign in to comment.