Skip to content

Commit 40b2fcd

Browse files
committed
Fix logging in to docker when using default host
1 parent d196721 commit 40b2fcd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plugins/meteor/prepare-bundle.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ export async function prepareBundleLocally(
7979
console.log('=> Updating base image');
8080
await runCommand(
8181
'docker',
82-
['login', '--username', privateDockerRegistry.username, '--password', privateDockerRegistry.password, privateDockerRegistry.host]
82+
[
83+
'login',
84+
'--username',
85+
privateDockerRegistry.username,
86+
'--password',
87+
privateDockerRegistry.password
88+
].concat(privateDockerRegistry.host ? [privateDockerRegistry.host] : [])
8389
);
8490
await runCommand('docker', ['pull', appConfig.docker.image]);
8591

0 commit comments

Comments
 (0)