Skip to content

Getting started docker example fails due to relative path #308

@m-adams

Description

@m-adams

Bug Description

Following the Docker getting started in the Readme fails.
The Docker error relates to the mounting of the configuration fail.

This is on MacOS

The error message is
docker: Error response from daemon: create ./crawl-config.yml: "./crawl-config.yml" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

I fixed the error using
docker run \
-v "$(pwd)"/crawl-config.yml:/crawl-config.yml \
-it docker.elastic.co/integrations/crawler:latest jruby bin/crawler crawl /crawl-config.yml

To Reproduce

Steps to reproduce the behavior:

  1. Run
    open-crawler % docker run
    -v ./crawl-config.yml:/crawl-config.yml
    -it docker.elastic.co/integrations/crawler:latest jruby bin/crawler crawl /crawl-config.yml

Expected behavior

getting started examples need to be robust and work

Environment

MacOS, Docker Desktop

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions