Docker "Could not find or load main class org.elasticsearch.launcher.CliToolLauncher"

Hello! Please help me solve the problem:

I'm trying to run ElasticSearch using Docker on Centos7.

docker network create elastic
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.13.2

When I try to start I get an error:

docker run --name es01 --net elastic -p 9208:9200 -it -m 3GB docker.elastic.co/elasticsearch/elasticsearch:8.13.2
Error: Could not find or load main class org.elasticsearch.launcher.CliToolLauncher
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.launcher.CliToolLauncher

What do you recommend?

Weird. I tried to reproduce on MacOS and can't reproduce it as the image starts well.

Is there any volume that could have been cached? Not sure where to look at though...

I installed Docker and installed Elasticsearch on it. Theoretically, the cache has nowhere to come from.

Problem solved!
Doker was installed from the ISPmanager repository. I uninstalled Doker and reinstalled it from the correct repository, after which the image began to run.

1 Like