Comments (1)
You need to make sure that the service is actually running in your container instance.
Building the Image 7.6 in that way:
$ docker build -t elasticsearch-alpine-7.6 7.6/.
and than launching the instance with this command:
$ docker run -it elasticsearch-alpine-7.6 bash
bash-5.0# ps
PID USER TIME COMMAND
1 root 0:00 bash
59 root 0:00 ps
The ps
command shows that the service is not running.
But in the combination of docker run -d
and docker exec -it
you will find that the service runs and is responsive:
$ docker run -d -it elasticsearch-alpine-7.6
5e660613d1091290b4f0a32b49e2296765a925312cfdb9f0295b8b26d5cf78dd
$ docker exec -it 5e660613d1091290b4f0a32b49e2296765a925312cfdb9f0295b8b26d5cf78dd bash
bash-5.0# ps
PID USER TIME COMMAND
1 elastics 0:31 /usr/lib/jvm/java-11-openjdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.ne
157 root 0:00 bash
163 root 0:00 ps
bash-5.0# curl -v localhost:9200
bash: curl: command not found
bash-5.0# wget -S -O - localhost:9200
Connecting to localhost:9200 (127.0.0.1:9200)
HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
content-length: 533
{
"name" : "5e660613d109",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "kq61-P4qQJqgAMFWEXLZnw",
"version" : {
"number" : "7.6.2",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
- 100% |****************************************************| 533 0:00:00 ETA
Noticeable is also that the image does not have curl
installed.
So you need to double check that you are on the correct host and the service is actually running.
from docker-elasticsearch-alpine.
Related Issues (20)
- Version 7 images are significantly larger than images for versions 5 and 6 HOT 5
- Add Application Class Data Sharing
- Add ARM support HOT 6
- Why not using OSS version in 7.3 Dockerfile? HOT 1
- 7.3 image is unusable HOT 3
- POST _sql doesn't work HOT 2
- warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME HOT 4
- 7.3 image does not work with overlay2 driver HOT 3
- ElasticSearch x-pack-7.6.1 based on Debian and not on Alpine Linux as expected HOT 1
- Setting password by the ELASTIC_PASSWORD doesn't work
- patch version support (e.g. 7.9.2) HOT 3
- asCompatibleSubstituteFor("docker.elastic.co/elasticsearch/elasticsearch") required in application code HOT 3
- Upgrade images to Alpine 3.13 HOT 1
- not find elasticsearch-users HOT 2
- Elasticsearch 7.16.2 HOT 2
- ARM support on 6.8 HOT 13
- x-pack and tag 6 broken? HOT 7
- Why not make a MySQL image base alpine HOT 3
- Cannot install core ES plugin because of bad Java JDK path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-elasticsearch-alpine.