You can find one Docker image for Logstash in the docker hub. You just need to pull that image from the docker hub and run in your local system. Use the below-given command to launch a Logstash container.
$ docker pull logstash
$ docker run -itd --name logstash logstash:7.7.1