How to Update Graylog version in docker How to Update Graylog version in docker elasticsearch elasticsearch

How to Update Graylog version in docker


To use the latest version change the tag of the graylog image from 2.4.0-1 to 2.4 or 2.4.6-1

Seems like the documentation you found is not completely in line with the documentation on docker hub:

If you simply want to checkout Graylog without any further customization, you can run the following three commands to create the necessary environment:

docker run --name mongo -d mongo:3

docker run --name elasticsearch \ -e "http.host=0.0.0.0" -e "xpack.security.enabled=false" \ -d docker.elastic.co/elasticsearch/elasticsearch:5.6.12

docker run --link mongo --link elasticsearch \ -p 9000:9000 -p 12201:12201 -p 514:514 \ -e GRAYLOG_WEB_ENDPOINT_URI="http://127.0.0.1:9000/api" \ -d graylog/graylog:2.4


First i have installed graylog with my own volumes

docker run --link mongo --link elasticsearch \           -p 9000:9000 -p 12201:12201 -p 514:514 \           -e GRAYLOG_WEB_ENDPOINT_URI="http://127.0.0.1:9000/api" \           -d graylog/graylog:2.4.0-1

Now stop graylog using

docker stop [graylog Container ID]

Now remove container from docker

docker rm [graylog Container ID]

Now Remove docker image

docker rmi [graylog Image ID]

Now again install graylog by changing the graylog version

docker run --link mongo --link elasticsearch \           -p 9000:9000 -p 12201:12201 -p 514:514 \           -e GRAYLOG_WEB_ENDPOINT_URI="http://127.0.0.1:9000/api" \           -d graylog/graylog:2.4.6-1

Note: Only remove graylog not mongoDB/Elasticsearch. Then you won't loose any data.