diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-04-05 09:29:47 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-04-05 09:29:47 -0400 |
| commit | e16ba4e038f2bc40a8c5cb6361ce5b5c1854a193 (patch) | |
| tree | d4f5c7556fe548d892395bc1bae61c1e79e6456c /cmd | |
| parent | 712b841d9f0ae0283d1f4805f01b47f9b8911a88 (diff) | |
| download | x-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.go | 2 |
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) } |
