# Bash: line 1: yum: command not found

**URL:** <https://discuss.elastic.co/t/bash-line-1-yum-command-not-found/306492>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 6, 2022, 7:38pm UTC](https://discuss.elastic.co/t/bash-line-1-yum-command-not-found/306492 "2022-06-06T19:38:48Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [June 6, 2022, 7:38pm UTC](https://discuss.elastic.co/t/bash-line-1-yum-command-not-found/306492/1 "2022-06-06T19:38:48Z")

</div>

Hello World!

I'm trying to get started with Elastic Stack 7.17 by following: [Running the Elastic Stack on Docker](https://www.elastic.co/guide/en/elastic-stack-get-started/7.17/get-started-docker.html#get-started-docker), yet running into this:

```auto
% docker-compose -f create-certs.yml run --rm create_certs

[+] Running 2/0
 ⠿ Network es_elastic Created 0.0s
 ⠿ Volume "es_certs" Created 0.0s
[+] Running 10/10
 ⠿ create_certs Pulled 45.8s
   ⠿ 1885934a00e5 Pull complete 8.4s
   ⠿ 4b9204bb1a76 Pull complete 9.3s
   ⠿ 7137590c5e4f Pull complete 9.4s
   ⠿ e40f9b6550d5 Pull complete 43.0s
   ⠿ b278129515bd Pull complete 43.0s
   ⠿ 09507fbf7e62 Pull complete 43.1s
   ⠿ 9e94c980013f Pull complete 43.2s
   ⠿ 484a9e501a41 Pull complete 43.2s
   ⠿ b596c840dae4 Pull complete 43.3s
bash: line 1: yum: command not found
Archive: /certs/bundle.zip
   creating: /certs/ca/
  inflating: /certs/ca/ca.crt        
%

```

Also, the link to [elastic/stack-docs repository on GitHub](https://github.com/elastic/stack-docs/blob/main/docs/en/getting-started/docker) is broken (404)

Please advise.

---

<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:** [June 6, 2022, 7:55pm UTC](https://discuss.elastic.co/t/bash-line-1-yum-command-not-found/306492/2 "2022-06-06T19:55:37Z")

</div>

I've noticed that image that being used is Debian based (`apt`), rather CentOS based (`yum`)

fix:

```auto
% grep apt-get create-certs.yml 
        apt-get install -y -q unzip;
%

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 4, 2022, 7:56pm UTC](https://discuss.elastic.co/t/bash-line-1-yum-command-not-found/306492/3 "2022-07-04T19:56:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
