Problem scenario
You want to run Splunk from a Docker container. What do you do?
Solution
Prerequisites
Install Docker. If you need assistance, see this posting.
Procedures
1. Run this command: docker pull splunk/splunk:latest
2. Run this command, but replace "simpleword" with the password that you want the administrator account for the web UI to have:
docker run -d -p 8000:8000 -e 'SPLUNK_START_ARGS=--accept-license' -e 'SPLUNK_PASSWORD=simpleword' splunk/splunk:latest
3. Run this command, but replace abcd1234 with the container ID that was created above: docker ps -a -f id=abcd1234
4. Open a web browser and go to this URL, but replace x.x.x.x with the external IP address of the Docker host above: http://x.x.x.x:8000