Docker

Docker is a container runtime environment.

To use the Docker testbed the Docker software needs to be installed, see Install Docker and complete Post-installation steps for Linux.

class rumba.testbeds.dockertb.Testbed(base_image=None, exp_name='foo', pull_image=True, use_ovs=False)[source]

Bases: rumba.elements.experimentation.Testbed

Represents a docker testbed.

Initializes the testbed class.

Parameters:
  • exp_name – The experiment name.
  • base_image – The docker base image.
  • pull_image – Retrieve the docker image from the Docker hub?
  • use_ovs – Use the OVS switch instead of the Linux bridge?

Note

In case no base image is provided, Rumba will automatically download the latest version available from docker hub.

swap_in(experiment)[source]

Swaps experiment in on the testbed.

Parameters:experiment – The experiment.
swap_out(experiment)[source]

Swaps experiment out of the testbed.

Parameters:experiment – The experiment.