Hello,
I’m not sure why Mongo container would not run. My procedure shown above is what I did.
Perhaps a clarification on my steps will help.
1.Get container id
root # docker ps
834a83939ca9 graylog/graylog-enterprise:4.3-jre11 "tini -- /docker-ent…" 5 weeks ago Up About a minute (healthy) 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:5044->5044/tcp, :::5044->5044/tcp, 0.0.0.0:5055->5055/tcp, :::5055->5055/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:25->25/udp, :::8443->8443/tcp, :::25->25/udp, 0.0.0.0:8514->8514/tcp, :::8514->8514/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp, 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, 0.0.0.0:8514->8514/udp, :::9300->9300/tcp, :::8514->8514/udp, 0.0.0.0:9515->9515/tcp, :::9515->9515/tcp, 0.0.0.0:9515->9515/udp, :::9515->9515/udp, 0.0.0.0:13301-13302->13301-13302/tcp, :::13301-13302->13301-13302/tcp, 0.0.0.0:49180->1281/tcp, :::49180->1281/tcp, 0.0.0.0:49179->1525/tcp, :::49179->1525/tcp bin_graylog_1
871e601dbe2f docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2-amd64 "/tini -- /usr/local…" 2 months ago Up 4 weeks 9200/tcp, 9300/tcp bin_elasticsearch_1
791ee497f251 b313026e6fbd "/tini -- /usr/local…" 2 months ago Up 6 weeks 9200/tcp, 9300/tcp home_elasticsearch_1
025df2d373ff aa61e4b09cef "docker-entrypoint.s…" 2 months ago Up 6 weeks 27017/tcp home_mongodb_1
040d0a505874 mongo:4.4 "docker-entrypoint.s…" 2 months ago Up 4 weeks 27017/tcp bin_mongodb_1
2.Stop Graylog container
root# docker stop 834a83939ca9
3.Find new image
root# docker images
root@ansible:/usr/local/bin# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
kong latest e457308de474 3 weeks ago 139MB
graylog/graylog-enterprise 4.3-jre11 ec6db44b0465 7 weeks ago 841MB
mongo 4.4 aa61e4b09cef 2 months ago 438MB
postgres 9.6 027ccf656dc1 4 months ago 200MB
docker.elastic.co/elasticsearch/elasticsearch-oss 7.10.2-amd64 b313026e6fbd 18 months ago 699MB
pantsel/konga latest 113950dafdbb 2 years ago 409MB
4.Modify the docker-compose YAML file with new image name as shown above.
graylog:
image: graylog/graylog-enterprise:4.3-jre11
network_mode: bridge
5.Start Graylog container
root# docker start 834a83939ca9
Example of the commands used.
root@ansible:/usr/local/bin# docker stop 834a83939ca9
834a83939ca9
root@ansible:/usr/local/bin# docker start 834a83939ca9
834a83939ca9
root@ansible:/usr/local/bin#
NOTE: Mongo and Elasticsearch should still be active during this time.
6.Tail container logs to insure no issues.
root# docker logs -f 834a83939ca9
Results:
I actually walk through each step above to insure it works. If this was tried already I would look into container logs to find out why.
EDIT: I forgot to mention, if your using the Graylog configuration file ( graylog.conf) within the container you may need to insure its correct.