I'm trying to create a container with host configuration:
require "docker"
client = Docker::Client.new
host_config = {
port_bindings: {
{"8000/tcp": [{host_port: "8000"}]},
},
}
client.containers.create("amazon/dynamodb-local", host_config: host_config)
But when I run crystal run on the file, it hangs indefinitely.
I'm using docker-crystal commit: 898cea2 with crystal 0.34.0.
I may just be doing something wrong. Any help is appreciated. Thanks!
I'm trying to create a container with host configuration:
But when I run
crystal runon the file, it hangs indefinitely.I'm using docker-crystal commit: 898cea2 with crystal 0.34.0.
I may just be doing something wrong. Any help is appreciated. Thanks!