Commit and save a running container or docker image to the Google Container Registry
gce_push_registry(instance, save_name, container_name = NULL,
image_name = NULL, container_url = "gcr.io",
project = gce_get_global_project(), wait = FALSE)
The VM to run within
The new name for the saved image
A running docker container. Can't be set if image_name
is too.
A docker image on the instance. Can't be set if container_name
is too.
The URL of where to save container
Project ID for this request, default as set by gce_get_global_project
This will only work on the Google Container optimised containers of image_family google_containers. Otherwise you will need to get a container authentication yourself (for now)
It will start the push but it may take a long time to finish, especially the first time, this function will return whilst waiting but don't turn off the VM until its finished.
Will wait for operation to finish on the instance if TRUE
The tag the image was tagged with on GCE
Other container registry functions: gce_list_registry
,
gce_pull_registry
,
gce_tag_container