Description Usage Arguments Examples
hostConfig
A utility function to create host configuration options suitable for the HostConfig argument when creating a container.
1 2 3 4 5 6 7 | hostConfig(Binds = NA, ContainerIDFile = "", LxcConf = data.frame(Key =
character(0), Value = character(0)), Privileged = FALSE,
PortBindings = portBindings(), Links = NA, PublishAllPorts = FALSE,
Dns = NA, DnsSearch = NA, ExtraHosts = NA, VolumesFrom = NA,
Devices = list(), NetworkMode = "bridge", IpcMode = "", CapAdd = NA,
CapDrop = NA, RestartPolicy = list(Name = "", MaximumRetryCount = 0L),
SecurityOpt = NA)
|
Binds |
A character vector of volume bindings for this container. Each volume binding is a string of the form container_path (to create a new volume for the container), host_path:container_path (to bind-mount a host path into the container), or host_path:container_path:ro (to make the bind-mount read-only inside the container). Corresponds to docker run -v.
|
ContainerIDFile |
Write the container id to this file. Corresponds to docker run -cidfile
|
LxcConf |
A data.frame of key and value columns containing LXC specific configurations. Example data.frame(Key = c("lxc.network.type", "lxc.network.ipv4" ), Value = c("veth", "192.168.1.3/24")). Corresponds to docker run –lxc-conf |
Privileged |
Gives the container full access to the host. Specified as a boolean value. Corresponds to docker run –privileged |
PortBindings |
A map of exposed container ports and the host port they should map to. It should be specified in the form <port>/<protocol>: [ "HostPort": "<port>" ] Take note that port is specified as a string and not an integer value. Corresponds to docker run -p. If HostIp is non empty you may need a port exposed. See ExposedPorts in containerOpt.
|
Links |
A character vector of links for the container. Each link entry should be of of the form "container_name:alias". |
PublishAllPorts |
Allocates a random host port for all of a container's exposed ports. Specified as a boolean value. |
Dns |
A character vector of dns servers for the container to use. Example c("8.8.8.8", "8.8.4.4") |
DnsSearch |
A character vector of DNS search domains |
ExtraHosts |
ADD DOCU |
VolumesFrom |
A list of volumes to inherit from another container. Specified in the form <container name>[:<ro|rw>]. Corresponds to docker run -volumes-from. |
Devices |
ADD DOCU |
NetworkMode |
ADD DOCU |
IpcMode |
ADD DOCU |
CapAdd |
ADD DOCU |
CapDrop |
ADD DOCU |
RestartPolicy |
ADD DOCU |
SecurityOpt |
ADD DOCU |
1 2 3 4 | ## Not run:
hostConfig()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.