def google.appengine.tools.docker.containers.Container.__init__ |
( |
|
self, |
|
|
|
docker_client, |
|
|
|
container_opts |
|
) |
| |
Initializer for Container.
Args:
docker_client: an object of docker.Client class to communicate with a
Docker daemon.
container_opts: an instance of ContainerOptions class.
def google.appengine.tools.docker.containers.Container.__del__ |
( |
|
self | ) |
|
Makes sure that all build and run artifacts are cleaned up.
def google.appengine.tools.docker.containers.Container.__enter__ |
( |
|
self | ) |
|
Makes Container usable with "with" statement.
def google.appengine.tools.docker.containers.Container.__exit__ |
( |
|
self, |
|
|
|
type, |
|
|
|
value, |
|
|
|
traceback |
|
) |
| |
Makes Container usable with "with" statement.
def google.appengine.tools.docker.containers.Container.addr |
( |
|
self | ) |
|
An address the container can be reached at by the host system.
def google.appengine.tools.docker.containers.Container.container_addr |
( |
|
self | ) |
|
An address the container can be reached at by another container.
def google.appengine.tools.docker.containers.Container.host |
( |
|
self | ) |
|
Host the container can be reached at by the host (i.e. client) system.
def google.appengine.tools.docker.containers.Container.id |
( |
|
self | ) |
|
Returns 64 hexadecimal digit string identifying the container.
def google.appengine.tools.docker.containers.Container.name |
( |
|
self | ) |
|
String, identifying a container. Required for data containers.
def google.appengine.tools.docker.containers.Container.port |
( |
|
self | ) |
|
Port (on the host system) mapped to the port inside of the container.
def google.appengine.tools.docker.containers.Container.PortBinding |
( |
|
self, |
|
|
|
port |
|
) |
| |
Get the host binding of a container port.
Args:
port: Port inside container.
Returns:
Port on the host system mapped to the given port inside of
the container.
def google.appengine.tools.docker.containers.Container.Start |
( |
|
self | ) |
|
Builds an image (if necessary) and runs a container.
Raises:
ContainerError: if container_id is already set, i.e. container is already
started.
def google.appengine.tools.docker.containers.Container.Stop |
( |
|
self | ) |
|
Stops a running container, removes it and underlying image if needed.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/docker/containers.py