Skip to content

How to specify Volumes (map[string]struct{})? #155

Closed
@drnic

Description

@drnic

Sorry for the babygopher question, but cannot find an example in the test cases or docs or google.

containers.go Config defines Volumes map[string]struct{}.

How do I pass in the equivalent to docker run -v /host/path:/inner?

struct{} seems to be the equivalent of "no value" - so I'm not sure how to pass in {"/host/path": "/inner"}

Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions