diff --git a/README.md b/README.md index 6067c1a..7522c60 100644 --- a/README.md +++ b/README.md @@ -79,24 +79,19 @@ specifying different package names. ### Docker -Users wishing to use Eland without installing it, in order to just run the available scripts, can build the Docker -container: +If you want to use Eland without installing it just to run the available scripts, use the Docker +image. +It can be used interactively: ```bash -$ docker build -t elastic/eland . -``` - -The container can now be used interactively: - -```bash -$ docker run -it --rm --network host elastic/eland +$ docker run -it --rm --network host docker.elastic.co/eland/eland ``` Running installed scripts is also possible without an interactive shell, e.g.: ```bash $ docker run -it --rm --network host \ - elastic/eland \ + docker.elastic.co/eland/eland \ eland_import_hub_model \ --url http://host.docker.internal:9200/ \ --hub-model-id elastic/distilbert-base-cased-finetuned-conll03-english \ diff --git a/docs/guide/machine-learning.asciidoc b/docs/guide/machine-learning.asciidoc index d8b1307..5c944d1 100644 --- a/docs/guide/machine-learning.asciidoc +++ b/docs/guide/machine-learning.asciidoc @@ -68,22 +68,18 @@ $ eland_import_hub_model \ <1> IMPORTANT: To use the Docker container, you need to clone the Eland repository: https://github.com/elastic/eland -If you want to use Eland without installing it, you can build the Docker container to run the available scripts: +If you want to use Eland without installing it, you can use the Docker image: + +You can use the container interactively: ```bash -$ docker build -t elastic/eland . -``` - -You can now use the container interactively: - -```bash -$ docker run -it --rm --network host elastic/eland +$ docker run -it --rm --network host docker.elastic.co/eland/eland ``` Running installed scripts is also possible without an interactive shell, for example: ```bash -docker run -it --rm elastic/eland \ +docker run -it --rm docker.elastic.co/eland/eland \ eland_import_hub_model \ --url $ELASTICSEARCH_URL \ --hub-model-id elastic/distilbert-base-uncased-finetuned-conll03-english \ @@ -138,7 +134,7 @@ the model directory, so the container can read the files: [source,bash] ---- -docker run --mount type=bind,source=/PATH/TO/MODELS,destination=/models,readonly -it --rm elastic/eland \ +docker run --mount type=bind,source=/PATH/TO/MODELS,destination=/models,readonly -it --rm docker.elastic.co/eland/eland \ eland_import_hub_model \ --url 'XXXX' \ --hub-model-id /models/bert-base-NER \