install.md: Improve docker example

This commit is contained in:
Anmol Sethi 2022-12-18 22:59:40 -08:00
parent b2c900fe9a
commit 9aef6b8049
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -220,7 +220,7 @@ Example usage:
```sh ```sh
echo 'x -> y' >helloworld.d2 echo 'x -> y' >helloworld.d2
docker run --rm -it -u "$(id -u):$(id -g)" -v "$PWD:/root/src" \ docker run --rm -it -u "$(id -u):$(id -g)" -v "$PWD:/root/src" \
-p 127.0.0.1:8080:8080 terrastruct/d2 --watch helloworld.d2 -p 127.0.0.1:8080:8080 terrastruct/d2:v0.1.2 --watch helloworld.d2
# Visit http://127.0.0.1:8080 # Visit http://127.0.0.1:8080
``` ```