Fix argument order for 'docker pull' (#85)

The optional --config option must come *before* the pull argument.
This commit is contained in:
Marko Zagožen
2023-06-30 15:03:01 +02:00
committed by GitHub
parent ebbe2bdaff
commit 3fc91e4132

View File

@@ -91,11 +91,12 @@ export async function containerPull(
image: string,
configLocation: string
): Promise<void> {
const dockerArgs: string[] = ['pull']
const dockerArgs: string[] = []
if (configLocation) {
dockerArgs.push('--config')
dockerArgs.push(configLocation)
}
dockerArgs.push('pull')
dockerArgs.push(image)
for (let i = 0; i < 3; i++) {
try {