This fragment (from the docs) doesn't compile:
(for {
container <- docker.containers.create("captain/ship")()
run <- docker.containers.get(container.id).start.bind(
tugboat.Port.Tcp(80), tugboat.PortBinding.local(80)
)()
} yield container.id).foreach(println)
I suspect it uses the old API?
This fragment (from the docs) doesn't compile:
(for {
container <- docker.containers.create("captain/ship")()
run <- docker.containers.get(container.id).start.bind(
tugboat.Port.Tcp(80), tugboat.PortBinding.local(80)
)()
} yield container.id).foreach(println)
I suspect it uses the old API?