# Install Elasticsearch with Docker

**URL:** <https://discuss.elastic.co/t/install-elasticsearch-with-docker/342271>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 4, 2023, 2:31pm UTC](https://discuss.elastic.co/t/install-elasticsearch-with-docker/342271 "2023-09-04T14:31:15Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [September 4, 2023, 6:15pm UTC](https://discuss.elastic.co/t/install-elasticsearch-with-docker/342271/12 "2023-09-04T18:15:28Z")

</div>

hi @stephenb , thanks for looking into my thread 😉

i did follow directions exactly and even included steps that i took for completely cleaning up an environment before re-running it again and was able to replicate same undesirable behavior every single time and at this point not sure what to do other then ask my question here..

```auto
root@dos:/opt/elk# docker system prune --all
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
root@dos:/opt/elk# docker-compose up -d
[+] Running 27/27
 ✔ es01 Pulled 19.2s
 ✔ es03 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 19.2s
   ✔ f9175e7b73a4 Already exists 0.0s
   ✔ 7ceecf917bdd Already exists 0.6s
   ✔ 5722447c4365 Already exists 0.6s
   ✔ 89732bc75041 Pull complete 1.6s
   ✔ 77b7fd63f55a Pull complete 16.1s
   ✔ 6fd9ea970a54 Pull complete 16.1s
   ✔ 9c46f3874f5e Pull complete 16.1s
   ✔ ae01b9c7dd90 Pull complete 16.2s
   ✔ 7d8705bc5737 Pull complete 16.2s
   ✔ a3fa5ac7ea3d Pull complete 16.2s
 ✔ es02 Pulled 19.2s
 ✔ kibana 12 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 35.2s
   ✔ a297b0532e1f Pull complete 0.7s
   ✔ 2fc7c1dcd340 Pull complete 0.8s
   ✔ 45499b53179a Pull complete 0.8s
   ✔ 1244a55fe4a1 Pull complete 1.0s
   ✔ b029c938ed5e Pull complete 1.1s
   ✔ b1c3fe59723a Pull complete 31.4s
   ✔ 196aaf0e5615 Pull complete 31.5s
   ✔ d5a0d11fa9ac Pull complete 31.5s
   ✔ ef8c18a35f06 Pull complete 31.5s
   ✔ 79fddc393150 Pull complete 31.5s
   ✔ 79b85d016c68 Pull complete 31.6s
   ✔ 337c99c19bfb Pull complete 31.6s
 ✔ setup Pulled 19.2s
[+] Running 6/6
 ✔ Network elk_default Created 0.1s
 ✔ Container elk-setup-1 Healthy 7.0s
 ✔ Container elk-es01-1 Healthy 64.9s
 ✔ Container elk-es02-1 Healthy 55.3s
 ✔ Container elk-es03-1 Healthy 46.3s
 ✔ Container elk-kibana-1 Started 65.6s
root@dos:/opt/elk# docker-compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
root@dos:/opt/elk# docker ps -a | grep docker.elastic.co
5e8b7f3b850a docker.elastic.co/kibana/kibana:8.9.1 "/bin/tini -- /usr/l…" 9 minutes ago Exited (1) About a minute ago elk-kibana-1
4db677726300 docker.elastic.co/elasticsearch/elasticsearch:8.9.1 "/bin/tini -- /usr/l…" 9 minutes ago Exited (137) 57 seconds ago elk-es03-1
19657df10c7b docker.elastic.co/elasticsearch/elasticsearch:8.9.1 "/bin/tini -- /usr/l…" 9 minutes ago Exited (137) 7 minutes ago elk-es02-1
7e022a4dab84 docker.elastic.co/elasticsearch/elasticsearch:8.9.1 "/bin/tini -- /usr/l…" 9 minutes ago Exited (137) 7 minutes ago elk-es01-1
5a5c07cc1e3f docker.elastic.co/elasticsearch/elasticsearch:8.9.1 "/bin/tini -- /usr/l…" 9 minutes ago Exited (0) 8 minutes ago elk-setup-1
root@dos:/opt/elk#

```

---

_[View the full topic](https://discuss.elastic.co/t/install-elasticsearch-with-docker/342271)._
