rename
fun rename(image: String, oldVersion: String = defaultVersion, newVersion: String = "latest"): <Error class: unknown class>(source)
Renames a version of an image.
This command pulls the image for the version oldVersion, renames it to newVersion, then finally pushes it back.
Parameters
image
The name of the image that will be renamed (e.g. "backend"
).
oldVersion
The version that will be renamed. The default version number for this command is the same as the build command's, making it easy to use them together.
newVersion
The new name of the version.