Graylog Docker Install Issue

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!

1. Describe your incident:
Ran the docker install
docker run --link mongo --link elasticsearch -p 9000:9000 -p 12201:12201 -p 1514:1514 -p 5555:5555 -e GRAYLOG_HTTP_EXTERNAL_URI=“” -d graylog/graylog:5.0

and got this:
Unable to find image ‘graylog/graylog:5.0’ locally
5.0: Pulling from graylog/graylog
707e32e9fc56: Pull complete
8e560b9ae2a6: Pull complete
15ee7ce1b141: Pull complete
c1beaa7a6288: Pull complete
4d724d23e7c3: Pull complete
883962c6785a: Pull complete
4f4fb700ef54: Pull complete
3246b6a08775: Pull complete
cdfe5137694f: Pull complete
0c794e7408d3: Pull complete
Digest: sha256:b6f59860512fabf658051acdc906fe5b122a01717c2eb5a5f3f695ac69e299fe
Status: Downloaded newer image for graylog/graylog:5.0
docker: Error response from daemon: could not get container for mongo: No such container: mongo.
See ‘docker run --help’.

2. Describe your environment:

  • OS Information:
    Ubuntu 22.04

  • Package Version:

4. How can the community help?
Is there a different way I need to install Mongo?

Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]

Hello @eric859

Graylog relies on both Mongo and Opensearch to launch during a pre-flight check. In your above example you are attempting to create a container for Graylog and linking it to containers for Mongo and Opensearch without first creating those instances.

If you read further down this page to the example of the docker compose file you should notice it accounts for Mongo, Opensearch and Graylog. Instead of using the command you tried, utilise this this compose file for a complete setup.

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