Skip to content

README instructions to run docs-builder #1544

@ketkee-aryamane

Description

@ketkee-aryamane

Context: I was trying to run docs-builder locally by following the README. I have set up the Docker account, but when I run the cmd
docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" \ ghcr.io/elastic/docs-builder:edge, I get the following error. What is this access I am missing?

error::Program               :: System.UnauthorizedAccessException: Access to the path '/app/elastic' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateParentsAndDirectory(String, UnixFileMode) + 0x291
   at System.IO.FileSystem.CreateDirectory(String, UnixFileMode) + 0xad
   at System.IO.Directory.CreateDirectory(String) + 0x32
   at Documentation.Builder.Cli.CheckForUpdatesFilter.<GetLatestVersion>d__4.MoveNext() + 0x276
--- End of stack trace from previous location ---
   at Documentation.Builder.Cli.CheckForUpdatesFilter.<InvokeAsync>d__2.MoveNext() + 0x22f
--- End of stack trace from previous location ---
   at Elastic.Documentation.Tooling.Filters.CatchExceptionFilter.<InvokeAsync>d__2.MoveNext() + 0x16a
--- End of stack trace from previous location ---
   at Elastic.Documentation.Tooling.Filters.StopwatchFilter.<InvokeAsync>d__2.MoveNext() + 0x177
--- End of stack trace from previous location ---
   at ConsoleAppFramework.ConsoleApp.<RunWithFilterAsync>d__37.MoveNext() + 0xf5```

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-triagedIssue received an initial assessment through AI-powered current code and architecture checks.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions