gce_vm_container: Launch a container-VM image

Description Usage Arguments Details Value See Also

View source: R/container.R

Description

This lets you specify docker images when creating the VM. These are a special class of Google instances that are setup for running Docker containers.

Usage

1
2
3
4
5
6
7
8
gce_vm_container(
  file = NULL,
  cloud_init = NULL,
  shell_script = NULL,
  image_family = "cos-stable",
  image_project = "cos-cloud",
  ...
)

Arguments

file

file location of a valid cloud-init or shell_script file. One of file or cloud_init or shell_script must be supplied

cloud_init

contents of a cloud-init file, for example read via readChar(file, nchars = 32768)

shell_script

contents of a shell_script file, for example read via readChar(file, nchars = 32768)

image_family

An image-family. It must come from the image_project family.

image_project

An image-project, where the image-family resides.

...

Other arguments passed to gce_vm_create

Details

file expects a filepath to a https://cloudinit.readthedocs.io/en/latest/topics/format.html configuration file or a valid bash script e.g. has !#/bin/ or #cloud-config at top of file.

image_project will be ignored if set, overriden to cos-cloud. If you want to set it then use the gce_vm_create function directly that this function wraps with some defaults.

Value

A zone operation

See Also

https://cloud.google.com/container-optimized-os/docs/how-to/create-configure-instance - help using cloud-init files


cloudyr/googleComputeEngineR documentation built on Jan. 23, 2022, 8:30 a.m.