Error installing docker


(rPr0x) #1

Hi, I want to see if you can help me. I’m installing graylog on Debian 9 via Docker.

I am installing following the guidelines of this link:

https://hub.docker.com/r/graylog/graylog/

But when I give the following command:

docker run --link mongo --link elasticsearch
-p 9000: 9000 -p 12201: 12201 -p 514:514
-e GRAYLOG_PASSWORD_SECRET = password
-e GRAYLOG_ROOT_PASSWORD_SHA2 = 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
-e GRAYLOG_WEB_ENDPOINT_URI = “http://127.0.0.1:9000/api
-d graylog / graylog: 2.4.3-1

Returns the following error:

docker: Error response from daemon: Can not link to non running container: /elasticsearch AS /relaxed_bohr /elasticsearch.

Can someone help me?


(Jochen) #2

Please post all Docker commands you’ve been executing and their complete output.

Alternatively, you can use the working docker-compose.yml files from the README of the official Graylog Docker image.


(rPr0x) #3

These were the commands:

root@ramage:/home# docker run --name mongo -d mongo:3
Unable to find image 'mongo:3' locally
3: Pulling from library/mongo
b0568b191983: Pull complete 
1e8b5b4e67a0: Pull complete 
a87b29dbb553: Pull complete 
908c259a6a99: Pull complete 
2fdec16e62a3: Pull complete 
e233c6c476cb: Pull complete 
671c302f3b40: Pull complete 
207ff3c88601: Pull complete 
3a7998bea9fd: Pull complete 
18d605d67f26: Pull complete 
Digest: sha256:d969194a7c4dcd817cae5dc726b1493547a3ad3f1b30f7f58857adc9ae6a4483
Status: Downloaded newer image for mongo:3
07acc79152d135df6343ec899f13c1d9788871c0965b6250d58ddf25ade4cbbd
root@ramage:/home# docker run --name elasticsearch \
>     -e "http.host=0.0.0.0" -e "xpack.security.enabled=false" \
>     -d docker.elastic.co/elasticsearch/elasticsearch:5.6.6
Unable to find image 'docker.elastic.co/elasticsearch/elasticsearch:5.6.6' locally
5.6.6: Pulling from elasticsearch/elasticsearch
af4b0a2388c6: Pull complete 
b38bf2a27b60: Pull complete 
6a0ea0f40021: Pull complete 
3e7781a52817: Pull complete 
e0af77f8861b: Pull complete 
a8e193aaf8e5: Pull complete 
dfecfe608622: Pull complete 
6b9e8c0e067e: Pull complete 
3f7a75c77c6c: Pull complete 
50aec1f5a7dc: Pull complete 
Digest: sha256:1c99f43cfd87dd658cfbcba3a8d23a091b1936d1f2ec005710423fee99f05e69
Status: Downloaded newer image for docker.elastic.co/elasticsearch/elasticsearch:5.6.6
0ff4f060c2734c53e6edbffee006e7c6e67999a481d19d2d586e90d5dbc98ec6
root@ramage:/home# docker run --link mongo --link elasticsearch \
>     -p 9000:9000 -p 12201:12201 -p 514:514 \
>     -e GRAYLOG_PASSWORD_SECRET=password \
>     -e GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 \
>     -e GRAYLOG_WEB_ENDPOINT_URI="http://127.0.0.1:9000/api" \
>     -d graylog/graylog:2.4.3-1
Unable to find image 'graylog/graylog:2.4.3-1' locally
2.4.3-1: Pulling from graylog/graylog
723254a2c089: Pull complete 
abe15a44e12f: Pull complete 
409a28e3cc3d: Pull complete 
a9511c68044a: Pull complete 
9d1b16e30bc8: Pull complete 
0fc5a09c9242: Pull complete 
d34976006493: Pull complete 
3b70003f0c10: Pull complete 
a25f0855e208: Pull complete 
669125f8ac69: Pull complete 
520ff2312ccf: Pull complete 
af467cd82ab3: Pull complete 
448b5133f3da: Pull complete 
Digest: sha256:dcdf071e33efcffe2157cadfd5298e92829d4c6e11a97eb46558b2bb722bf04b
Status: Downloaded newer image for graylog/graylog:2.4.3-1
a418801a28e76f7212aa841af92c9db8a2fed613f8ba891574bcfd1cad66f4c3
docker: Error response from daemon: Cannot link to a non running container: /elasticsearch AS /stupefied_stallman/elasticsearch.
root@ramage:/home#

(Jochen) #4

Check the logs of the Elasticsearch container. It looks like the container never started successfully.


(system) #5

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