App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.docker.containers.Container Class Reference
Inheritance diagram for google.appengine.tools.docker.containers.Container:

Public Member Functions

def __init__
 
def Start
 
def Stop
 
def PortBinding
 
def host
 
def port
 
def addr
 
def id
 
def container_addr
 
def name
 
def __enter__
 
def __exit__
 
def __del__
 

Detailed Description

Docker Container.

Constructor & Destructor Documentation

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.

Member Function Documentation

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: