Skip to content

Commit dcbdc7e

Browse files
authored
Merge pull request #16 from subtrace/dev/sachin/docker.images
docker: add sample output images
2 parents adf88fa + 17e69c1 commit dcbdc7e

4 files changed

+20
-3
lines changed

docker-compose-link.png

141 KB
Loading

docker-compose.mdx

+14-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ in your app's Docker image:
2323

2424
<Step>
2525
Add the following lines to your service's definition in your `compose.yaml`
26-
file, and then start your app as you normally would:
26+
file:
2727

2828
```yaml
2929
cap_add:
@@ -32,11 +32,24 @@ cap_add:
3232
3333
</Step>
3434
35+
<Step>
36+
Start your app as you normally would:
37+
38+
<Expandable title="example output">
39+
<img className="rounded-xl" src="/docker-compose-link.png" />
40+
</Expandable>
41+
</Step>
42+
3543
<Step>
3644
That's it! Open the `subt.link` URL in your browser to see your app's requests
3745
show up in real time:
3846

3947
<img className="rounded-xl" src="/subt-link-example.png" />
4048

49+
<Info>
50+
It's possible that the `subt.link` URL is printed from within a container. Be
51+
sure to check
52+
</Info>
53+
4154
</Step>
4255
</Steps>

docker-link.png

80.4 KB
Loading

docker.mdx

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ in your app's Docker image:
2525
Run your Docker container as you normally would, but add `--cap-add=SYS_PTRACE`:
2626

2727
```diff
28-
- docker run -dt -p 3000:3000 node-app
29-
+ docker run -dt -p 3000:3000 --cap-add=SYS_PTRACE node-app
28+
- docker run -t -p 3000:3000 node-app
29+
+ docker run -t -p 3000:3000 --cap-add=SYS_PTRACE node-app
3030
```
3131

32+
<Expandable title="example output">
33+
<img className="rounded-xl" src="/docker-link.png" />
34+
</Expandable>
35+
3236
</Step>
3337

3438
<Step>

0 commit comments

Comments
 (0)