diff --git a/sync/device.ts b/sync/device.ts index 2cdf37fb..b78de696 100644 --- a/sync/device.ts +++ b/sync/device.ts @@ -59,8 +59,12 @@ export async function getDeviceArch(docker: Docker): Promise { } export async function getCacheFrom(docker: Docker): Promise { - const container = await getSupervisorContainer(docker); - return [container.Image]; + try { + const container = await getSupervisorContainer(docker); + return [container.Image]; + } catch { + return []; + } } // perform the build and return the image id