diff options
| author | Tolik Malibroda <[email protected]> | 2025-06-11 00:13:36 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-11 00:13:36 +0200 |
| commit | e73d4752df9ab1b9583b3d1a61374c3a756c01cc (patch) | |
| tree | ae857921ba79783f324acad13623f6baa1864494 /packages/cli | |
| parent | fa27bc832ff7a9370bd809def296b8965830a6cf (diff) | |
fix: Change sandbox network check command for docker (#907)
Diffstat (limited to 'packages/cli')
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index b91fd5bf..a17fa226 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -496,7 +496,7 @@ export async function start_sandbox(sandbox: string) { // if using proxy, switch to internal networking through proxy if (proxy) { execSync( - `${sandbox} network exists ${SANDBOX_NETWORK_NAME} || ${sandbox} network create --internal ${SANDBOX_NETWORK_NAME}`, + `${sandbox} network inspect ${SANDBOX_NETWORK_NAME} || ${sandbox} network create --internal ${SANDBOX_NETWORK_NAME}`, ); args.push('--network', SANDBOX_NETWORK_NAME); // if proxy command is set, create a separate network w/ host access (i.e. non-internal) @@ -504,7 +504,7 @@ export async function start_sandbox(sandbox: string) { // this allows proxy to work even on rootless podman on macos with host<->vm<->container isolation if (proxyCommand) { execSync( - `${sandbox} network exists ${SANDBOX_PROXY_NAME} || ${sandbox} network create ${SANDBOX_PROXY_NAME}`, + `${sandbox} network inspect ${SANDBOX_PROXY_NAME} || ${sandbox} network create ${SANDBOX_PROXY_NAME}`, ); } } |
