Example #1
0
 public function testInvalidContainerNameTwo()
 {
     $container = new Container();
     $this->setExpectedException('Exception', 'Name was not correctly formatted.');
     $container->setName('Foo!');
 }
 protected function configureContainer(Container $container, array $config)
 {
     if (!empty($config['name'])) {
         $container->setName($config['name']);
     }
     if (!empty($config['exposed_ports'])) {
         $ports = new PortCollection($config['exposed_ports']);
         $container->setExposedPorts($ports);
     }
     // TODO: Process Tmpfs configuration
 }