gpt4 book ai didi

docker - 在AWS ec2实例中Docker上的Splunk安装失败

转载 作者:行者123 更新时间:2023-12-02 19:24:06 25 4
gpt4 key购买 nike

我正在尝试使用以下命令在AWS ec2实例中的Docker之上安装Splunk。

docker run -it -e DEBUG=true -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=<password> splunk/splunk:latest

并且出现以下错误。
TASK [splunk_common : Create .ui_login] ****************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "msg": "Source /var/tmp/ansible-tmp-1566408647.18-207818394602441/source not found"}

PLAY RECAP *********************************************************************
localhost : ok=18 changed=1 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0

Wednesday 21 August 2019 17:30:47 +0000 (0:00:00.377) 0:00:04.605 ******
===============================================================================
splunk_common : Update Splunk directory owner --------------------------- 1.04s
Gathering Facts --------------------------------------------------------- 0.74s
splunk_common : Update /opt/splunk/etc ---------------------------------- 0.52s
splunk_common : Create .ui_login ---------------------------------------- 0.38s
splunk_common : Check for existing installation ------------------------- 0.30s
splunk_common : Find manifests ------------------------------------------ 0.29s
splunk_common : Check if /sbin/updateetc.sh exists ---------------------- 0.15s
splunk_common : Check for existing splunk secret ------------------------ 0.13s
Provision role ---------------------------------------------------------- 0.13s
splunk_common : Check if we are in a docker ----------------------------- 0.13s
splunk_common : include_tasks ------------------------------------------- 0.08s
splunk_common : include_tasks ------------------------------------------- 0.08s
splunk_common : include_tasks ------------------------------------------- 0.07s
splunk_common : include_tasks ------------------------------------------- 0.07s
splunk_common : Set current version fact -------------------------------- 0.04s
splunk_common : include_tasks ------------------------------------------- 0.04s
Determine captaincy ----------------------------------------------------- 0.04s
Execute pre-setup playbooks --------------------------------------------- 0.04s
splunk_common : Setting upgrade fact ------------------------------------ 0.04s
splunk_common : Set first run fact -------------------------------------- 0.04s
ERROR: Couldn't read "/opt/splunk/etc/splunk-launch.conf" -- maybe $SPLUNK_HOME or $SPLUNK_ETC is set wrong?


但是,相同的命令也可以在笔记本电脑上的Ubuntu计算机上使用。我想念什么吗?

最佳答案

似乎与latest标记有关。从splunk/splunk:latest降级为splunk/splunk:7.2.1,现在可以使用。

关于docker - 在AWS ec2实例中Docker上的Splunk安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57596841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com