Skip to content

Creating a container hangs #2

@crooke

Description

@crooke

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions