@Test public void should_create_image_id_from_image_name_with_version_chars() { ContainerDsl containerDsl = new ContainerDsl("fedora:10"); final Container container = containerDsl.buildContainer(); assertThat(container.getContainerName()).isEqualTo("fedora_10"); }
Container buildContainer() { this.container = containerBuilder.build(); return this.container; }
ContainerDsl { Container buildContainer() { this.container = containerBuilder.build(); return this.container; } }
ContainerDsl { Container buildContainer() { this.container = containerBuilder.build(); return this.container; } ContainerDsl(File directory, String imageId);  ContainerDsl(Archive<?> buildDirectory, String imageId);  ContainerDsl(String image);  ContainerDsl(String image, String id); }
ContainerDsl { Container buildContainer() { this.container = containerBuilder.build(); return this.container; } ContainerDsl(File directory, String imageId);  ContainerDsl(Archive<?> buildDirectory, String imageId);  ContainerDsl(String image);  ContainerDsl(String image, String id); ContainerDsl withExposedPorts(Integer... ports); ContainerDsl withExposedPorts(String... ports); ContainerDsl withPortBinding(Integer... ports); ContainerDsl withPortBinding(String... ports); ContainerDsl withEnvironment(String key, Object value, Object...keyValues); ContainerDsl withCommand(String command); ContainerDsl withCommand(String... command); ContainerDsl withVolume(String hostPath, String containerPath); ContainerDsl withVolume(String hostPath, String containerPath, BindMode bindMode); ContainerDsl withNetworkMode(String networkMode); ContainerDsl withNetworkMode(NetworkDsl networkMode); ContainerDsl withNetworks(String... networks); ContainerDsl withPriviledgedMode(boolean mode); ContainerDsl withLink(String link); ContainerDsl withLink(String service, String alias); ContainerDsl withAwaitStrategy(Await awaitStrategy); String getIpAddress(); int getBindPort(int exposedPort); String getLog(); CubeOutput exec(String... commands); }
ContainerDsl { Container buildContainer() { this.container = containerBuilder.build(); return this.container; } ContainerDsl(File directory, String imageId);  ContainerDsl(Archive<?> buildDirectory, String imageId);  ContainerDsl(String image);  ContainerDsl(String image, String id); ContainerDsl withExposedPorts(Integer... ports); ContainerDsl withExposedPorts(String... ports); ContainerDsl withPortBinding(Integer... ports); ContainerDsl withPortBinding(String... ports); ContainerDsl withEnvironment(String key, Object value, Object...keyValues); ContainerDsl withCommand(String command); ContainerDsl withCommand(String... command); ContainerDsl withVolume(String hostPath, String containerPath); ContainerDsl withVolume(String hostPath, String containerPath, BindMode bindMode); ContainerDsl withNetworkMode(String networkMode); ContainerDsl withNetworkMode(NetworkDsl networkMode); ContainerDsl withNetworks(String... networks); ContainerDsl withPriviledgedMode(boolean mode); ContainerDsl withLink(String link); ContainerDsl withLink(String service, String alias); ContainerDsl withAwaitStrategy(Await awaitStrategy); String getIpAddress(); int getBindPort(int exposedPort); String getLog(); CubeOutput exec(String... commands);  }