For some reason, when I run the following code using dagger run, after successfully printing the result, the tool never exist - it just hangs there, counting seconds, until it receives a kill signal:
# dagger-simple.exs
Mix.install([{:dagger, github: "dagger/dagger", sparse: "sdk/elixir"}])
client = Dagger.connect!()
client
|> Dagger.Query.container()
|> Dagger.Container.pipeline("Pipeline", description: "A simple pipeline")
|> Dagger.Container.from("alpine:3.18.2")
|> Dagger.Container.with_exec(~w(echo Example!))
|> Dagger.Container.stdout()
|> IO.inspect()
Dagger.close(client)
I run the above code like this:
DOCKER_HOST=ssh://local-linux-box dagger run elixir dagger-simple.exs
Why would this hang? What am I missing?
Trivia:
dagger v0.6.3 darwin/amd64