private void PushXcImage(string name) { var source = XcImageName(name); var target = XcFullImageName(name); DockerTasks.DockerImageTag(x => x .SetSourceImage(source) .SetTargetImage(target)); DockerTasks.DockerImagePush(x => x.SetName(target)); }
bool IsDockerImageInLocalRepo(string image) => DockerTasks.DockerImages(c => c .SetFormat("'{{json .}}'") .SetRepository(image) .DisableProcessLogOutput()) .Any();
public void Dispose() { DockerTasks.DockerImagePrune(_ => DockerImagePruneSettingsExtensions.EnableForce(_)); }