Scala-Docker
============

Scala client using reactive streams (akka-streams) to communicate with Docker hosts.

Scala-Docker
============

Scala client using reactive streams (akka-streams) to communicate with Docker hosts.

Example
-------

Creating a DockerClient:
```scala
implicit val system = ActorSystem()
implicit val materializer = ActorFlowMaterializer(ActorFlowMaterializerSettings(system))

val docker = DockerClient()
```

If no host is given to the `DockerClient`, then the host is taken from the environment variable `DOCKER_HOST`.
(No TLS support yet)

Running a container

```scala
val imageName = ImageName("fancy-service")

for {
  containerId: ContainerId <- docker.run(ContainerConfig(imageName), HostConfig(portBindings = Some(portBindings)))
  containerInfo: ContainerInfo <- docker.containers.get(containerId)
} yield containerInfo
```

Add an example to readme
Add an example to readme
