mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-28 05:15:41 +00:00
Clarified docker attach usage for compose vs non-compose (#3521)
This commit is contained in:
1 parent
19a8bcfb53
commit
9ebae54e6e
1 file changed
+10
-2
+10
-2
@@ -50,9 +50,17 @@ In order to attach and interact with the Minecraft server make sure to enable TT
|
|||||||
tty: true
|
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**.
|
and then Control-p Control-q to **detach**.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user