fix docker docs for changes in Dockerfile

This commit is contained in:
DGGua 2022-11-03 13:54:49 +08:00 committed by GitHub
parent d38046d74b
commit 78880836c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,14 +15,14 @@ Open ports can also be passed through using `-p <host_port>:<container_port>`.
For Example:
```bash
# Building the image
docker build -t tshock:linux-x64 --build-arg TARGETPLATFORM=linux-x64 .
docker build -t tshock:linux/amd64 --build-arg TARGETPLATFORM=linux/amd64 .
# Running the image
docker run -p 7777:7777 -p 7878:7878 \
-v /home/cider/tshock/:/tshock \
-v /home/cider/.local/share/Terraria/Worlds:/worlds \
-v /home/cider/tshock/plugins:/plugins \
--rm -it tshock:linux-x64 \
--rm -it tshock:linux/amd64 \
-world /worlds/backflip.wld -motd "OMFG DOCKER"
```
@ -42,4 +42,4 @@ docker run -p 7777:7777 -p 7878:7878 \
-v /home/cider/tshock/plugins:/plugins \
--rm -it tshock:linux-arm64 \
-world /worlds/backflip.wld -motd "ARM64 ftw"
```
```