Options for creating and running Docker Containers.
def google.appengine.tools.docker.containers.ContainerOptions.__new__ |
( |
|
cls, |
|
|
|
image_opts = None , |
|
|
|
port = None , |
|
|
|
port_bindings = None , |
|
|
|
environment = None , |
|
|
|
volumes = None , |
|
|
|
volumes_from = None , |
|
|
|
name = None |
|
) |
| |
This method is redefined to provide default values for namedtuple.
Args:
image_opts: ImageOptions, properties of underlying Docker Image.
port: int, Primary port that the process inside of a container is
listening on. If this port is not part of the port bindings
specified, a default binding will be added for this port.
port_bindings: dict, Port bindings for exposing multiple ports. If the
only binding needed is the default binding of just one port this
can be None.
environment: dict, Environment variables.
volumes: dict, Volumes to mount from the host system.
volumes_from: list, Volumes from the specified container(s).
name: str, Name of a container. Needed for data containers.
Returns:
ContainerOptions object.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/docker/containers.py