> +
> builder.operatingSystem(OperatingSystem.builder().description("linux").family(OsFamily.LINUX).build());
> + return builder.build();
> + }
> +
> + private String cleanUpName(String name) {
> + return name.startsWith("/") ? name.substring(1) : name;
> + }
> +
> + private Iterable<String> getPrivateIpAddresses(Container container) {
> + if (container.getNetworkSettings() == null) return ImmutableList.of();
> + return ImmutableList.of(container.getNetworkSettings().getIpAddress());
> + }
> +
> + private List<String> getPublicIpAddresses() {
> + String dockerIpAddress =
> URI.create(providerMetadata.getEndpoint()).getHost();
> + return ImmutableList.of(dockerIpAddress);
Is this always true? Is the host sip the only valid public ip address? Or is
there any network configuration in Docker that allows the containers to get
their own public IP address?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12936967