atunnecliffe/splunkThis is a Dockerfile for Splunk, currently running version 9.0.3 - [***]
Default admin password is changeme2019.
It is based on Alpine Linux and supports OpenShift and unRAID.
It is designed to deploy Splunk Enterprise quickly and easily. The web interface is exposed on port HTTP/8000, data ingest on TCP/9997, and API on HTTPS/8089.
If you run the Dockerfile with no arguments you will get a single instance of Splunk with the user admin:changeme2019.
Compatible with Splunk 7.1.0 and newer.
Be careful with your volumes as this container can get BIG. Make sure you make (at minimum) /splunkdata a volume to alleviate this if you're using the container for any extended amount of time.
Single instance with no persistence
docker run -d -p 8000:8000 -p 8089:8089 -p 9997:9997 --name splunk atunnecliffe/splunk
Single instance with indexed data and config/app persistence in unRAID
docker run -d -p 8000:8000 -p 8089:8089 -p 9997:9997 -v '/mnt/user/appdata/splunk/splunkdata':'/splunkdata':'rw' -v '/mnt/user/appdata/splunk/etc/apps':'/opt/splunk/etc/apps':'rw' --name splunk atunnecliffe/splunk
Install an older version (7.2.6) and change admin password
docker run -d -p 8000:8000 -p 8089:8089 -p 9997:9997 -e ADMIN_PASSWORD="mynewpassword" -e DOWNLOAD_URL="[***]" -p 8000:8000 --name splunk atunnecliffe/splunk
SPLUNK_CLI_ARGS
What args do you want Splunk to start with every time it opens? Defaults to --accept-license --no-prompt, without both of these Splunk will fail to start automatically as it will be waiting for user input.
ADMIN_PASSWORD
Sets the default "admin" user account password. Defaults to changeme2019. You can change this through the web interface once the container is running.
8000
HTTP Splunk web interface. Log in with the username admin and the value of ADMIN_PASSWORD, which defaults to changeme2019.
9997
SplunkTCP data stream, for receiving Splunk indexed data from Splunk Forwarders.
8089
HTTPS management API, if you require external API access such as for Deployment Server functionality.
8088
Splunk HTTP Event Collector default port, for receiving Splunk HEC events (such as those sent by Splunk Stream).
514
Default Syslog port, if you decide to syslog directly to Splunk rather than the preferred method of monitoring files written by syslog-ng or similar.
/splunkdata
Contains Splunk's indexed data. This is configured in Splunk using the SPLUNK_DB directive in splunk-launch.conf, as written in the gosplunk.sh script.
/opt/splunk/etc/apps
Contains Splunk's apps and most customisations made in the GUI.
For unRAID users you can swap between :latest and (:<version> such as :8.0.2) branches to force a redownload of the base image. Every version from 8.0.0 has a corresponding version available by directly hard-coding a branch.
You probably don't have to do all these things, but I've found it works consistently.
Sometimes unable to run apps that contain binary modular inputs (like Splunk_TA_Stream) when my $SPLUNK_HOME/etc/apps directory is a volume. Executable shell scripts still work though.
This is due to the use of the SYS_RAWIO capability that is natively disallowed by Docker as a security measure. To get around this, you can run the container in "privileged mode", --privileged or there's a checkbox in your unRAID update container screen. The alternative would be only volumising the /local subdirectories of your apps.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务