Skip to content

How to pass env variables when starting a container? #582

@valovm

Description

@valovm

I triesd:
pass as Hash - it is not working
Docker::Container.create('Image' => image_name, 'Env'=> { 'a' => '123'})

pass as String - it is not working
Docker::Container.create('Image' => image_name, 'Env'=> 'a=123')

What way is correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions