diff --git a/server/api/services/registry.ts b/server/api/services/registry.ts index 29c421b5d..da124c7a0 100644 --- a/server/api/services/registry.ts +++ b/server/api/services/registry.ts @@ -33,8 +33,10 @@ export const createRegistry = async (input: typeof apiCreateRegistry._type) => { }); } - const loginCommand = `echo ${input.password} | docker login ${input.registryUrl} --username ${input.username} --password-stdin`; - await execAsync(loginCommand); + if (newRegistry.registryType === "cloud") { + const loginCommand = `echo ${input.password} | docker login ${input.registryUrl} --username ${input.username} --password-stdin`; + await execAsync(loginCommand); + } return newRegistry; });