SplunkUDA Docker For Splunk Cheat Sheet
SplunkUDA Docker For Splunk Cheat Sheet
COMMAND REFERENCE
CHEAT SHEET
THIS REFERENCE GUIDE HAS BEEN TAKEN FROM THE BOOK
"BEGINNING SPLUNK WITH DOCKER" BY VINCENT SESTO
FIRST STEPS
Display the Version of Docker running on
your system. If you need to instal Docker docker --version
go to https://www.docker.com/get-docker
Access the bash shell of a running container. docker exec -it <
cont_id> /bin/bash
CREATING DOCKERFILES
To help streamline the process of creating and running our Docker containers,
we can use a Dockerfile to specify all the details for the container we are
wanting to run. Below is an example Dockerfile.
FROM splunk/splunk:latest
MAINTAINER [email protected]
The command below will allow you to clean up your environment. It will kill
all running containers, then remove all stopped containers, finally it will the
delete any docker images.
version: '3'
services:
splunkserver:
image: splunk/splunk
hostname: splunkserver
environment:
SPLUNK_START_ARGS: --accept-license --answer-yes
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_USER: root
ports:
- "8000:8000"
- "9997:9997"
- "8088:8088"