Skip to content

Detect if c mk docker-env has been run. #19

Description

@allanchau

We should warn the user if c mk docker-env hasn't been run yet.

Something like this could be added as part of the checks the cli does before running a command. Alternatively we could automate it and run c mk docker-env instead of displaying an error?

if (!process.env.DOCKER_HOST) {
    console.error(chalk.red('\nCould not find $DOCKER_HOST, have you run "c mk docker-env" yet?'));
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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