aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-04-05 09:29:47 -0400
committerXe Iaso <me@xeiaso.net>2023-04-05 09:29:47 -0400
commite16ba4e038f2bc40a8c5cb6361ce5b5c1854a193 (patch)
treed4f5c7556fe548d892395bc1bae61c1e79e6456c /cmd
parent712b841d9f0ae0283d1f4805f01b47f9b8911a88 (diff)
downloadx-e16ba4e038f2bc40a8c5cb6361ce5b5c1854a193.tar.xz
x-e16ba4e038f2bc40a8c5cb6361ce5b5c1854a193.zip
cmd/vest-pit-near: network with the wireguard container
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/vest-pit-near/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/vest-pit-near/main.go b/cmd/vest-pit-near/main.go
index b7c9fc5..2d9aa7e 100644
--- a/cmd/vest-pit-near/main.go
+++ b/cmd/vest-pit-near/main.go
@@ -101,7 +101,7 @@ func cron() {
}
func check(ctx context.Context) error {
- dataStr, err := yeet.Output(ctx, "docker", "run", "--rm", *dockerImage, "wget", "-T", "30", "-q", "-O-", *checkURL)
+ dataStr, err := yeet.Output(ctx, "docker", "run", "--rm", "--net=container:"+*containerNet, *dockerImage, "wget", "-T", "30", "-q", "-O-", *checkURL)
if err != nil {
return fmt.Errorf("vest-pit-near: can't run docker command: %w", err)
}