(String name)
| 56 | } |
| 57 | |
| 58 | public Image getImage(String name) { |
| 59 | Require.nonNull("Image name to get", name); |
| 60 | |
| 61 | LOG.info("Obtaining image: " + name); |
| 62 | |
| 63 | return getDocker() |
| 64 | .map(protocol -> protocol.getImage(name)) |
| 65 | .orElseThrow(() -> new DockerException("Unable to get image " + name)); |
| 66 | } |
| 67 | |
| 68 | public Container create(ContainerConfig config) { |
| 69 | Require.nonNull("Container config", config); |