Skip to content

update docs with example for local-only usage #164

@sam-goodwin

Description

@sam-goodwin

I am trying to run the getting started command within my repo. I don't want to pull from git, I just want to build the image from my local file system with a locally cloned repository.

Have tried this:

docker run -it --rm \
  -v /tmp/envbuilder:/workspaces \
  -e DEVCONTAINER_DIR=.devcontainer \
  -e DEVCONTAINER_JSON_PATH=.devcontainer/devcontainer.json \
  ghcr.io/coder/envbuilder

No matter what I do, I get this error:

error: no Dockerfile or devcontainer.json found: no fallback image has been specified
error: no Dockerfile or devcontainer.json found: no fallback image has been specified

From the docs, it is not clear how to use this tool from a local git repository. It always assumes a hosted repo which is not what I am trying to do.

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions