nuka.hosts¶
Host¶
Docker¶
-
class
nuka.hosts.DockerCompose(project_name=None, compose_file=None)[source]¶ A HostGroup that use the docker-compose.yml to provide some hosts:
>>> hosts = DockerCompose(project_name='myproject')
-
class
nuka.hosts.DockerContainer(hostname=None, image='bearstech/nukai:latest', **kwargs)[source]¶ By default the image will be
bearstech/nukai:latestwhich is the latest debian with python3 installed but you can use whatever you want. We also provide a bunch of nukai(mages)>>> host = DockerContainer( ... hostname='myhost', ... image='bearstech/nukai:debian-jessie-python3')
-
private_ip¶ return host’s private ip
-
public_ip¶ return host’s private ip
-