Clarified docker attach usage for compose vs non-compose (#3521)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2025-06-30 12:25:47 -05:00
1 parent 19a8bcfb53
commit 9ebae54e6e
1 file changed
+10 -2
+10 -2
View File
@@ -50,9 +50,17 @@ In order to attach and interact with the Minecraft server make sure to enable TT
tty: true
```
With that you can attach and interact at any time using
With that you can attach and interact at any time using the following, replacing the `{...}` placeholders.
docker attach mc
...when container is created with `docker run`
```
docker attach {container name or ID}
```
...or when declared using a compose file
```
docker compose attach {service name}
```
and then Control-p Control-q to **detach**.