Skip to main content

Function: pushImage()

pushImage(engineId, imageId, callback, authInfo?): Promise<void>

Push an image to a registry.

If you wish to push an image on to a private registry, that image must already have a tag which references the registry. For example, registry.example.com/myimage:latest.

Parameters

engineId: string

the id of the engine managing the image, obtained from the result of containerEngine.listImages

imageId: string

the id of the image on this engine, obtained from the result of containerEngine.listImages

callback

the function called when new logs are emitted or new events happen on the stream. The value of name can be either data(and data contains the logs), or end indicating the end of the stream, or first-message indicating no data has been emitted yet on the stream.

authInfo?: ContainerAuthInfo

Authentication credentials

Returns

Promise<void>

Defined in

packages/extension-api/src/extension-api.d.ts:3861