Skip to content

How to obtain a secret when using docker? #246

@lesha-co

Description

@lesha-co

I'm reading a readme now and it says:

$ mtg generate-secret --hex google.com
ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d

this implies that I need to attach a shell to container and run mtg from there right?

I run docker run -d --name mtg mtg, it starts, spits configuration in logs and after some time, silently terminates:

{
  "level": "debug",
  "configuration": {
    // whatever 
  },
  "logger": "",
  "timestamp": 1646386068599,
  "message": "configuration"
}

How am I supposed to run mtg generate-secret?

I tried running docker attach mtg, it just hangs and doesn't do anything

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