Docker & daml

Anything specific I need to to run the SDK/sandbox using docker?

1 Like

Hi @perbergman, there shouldn’t be any specific requirements. We have a docker image that provides the full SDK installation at https://hub.docker.com/r/digitalasset/daml-sdk. That image is mainly intended for development. For production usecases, I would recommend using a more slimmed down image built around the standalone JARs for DAML for PostgreSQL and the JSON API that you can find on GH releases.

One thing to keep in mind is that our tools default to listening on localhost. If you run them inside a docker container you need to change that to allow accessing them from the outside. The JSON API and DAML on SQL provide a --address option so you can run daml json-api --address 0.0.0.0 … to make it listen on all interfaces and expose it outside (of course you still need to expose the port in docker)

3 Likes