splunk-lab icon indicating copy to clipboard operation
splunk-lab copied to clipboard

Script fails when docker image is started with SPLUNK_START_ARGS=--accept-license

Open JasonMadeSomething opened this issue 4 years ago • 4 comments
trafficstars

Starting the docker image in bash with the command "docker run -d -p 8000:8000 -e "SPLUNK_START_ARGS=--accept-license" -e "SPLUNK_PASSWORD=" --name splunk splunk/splunk:latest"

and the download script says I need to set splunk start args. Docker Inspect confirms the setting docker

JasonMadeSomething avatar Aug 07 '21 14:08 JasonMadeSomething

I know what the problem is--you're not running Splunk Lab, you're running what looks like an official Splunk image. :-)

What I see you're using is splunk/splunk:latest, and my image is dmuth1/splunk-lab.

-- Doug

dmuth avatar Aug 08 '21 21:08 dmuth

I have this issue, also:

$ bash <(curl -Ls https://bit.ly/splunklab)
!
! You need to accept the Splunk License in order to continue.
! Please restart this container with SPLUNK_START_ARGS set to "--accept-license"
! as follows:
!
! SPLUNK_START_ARGS=--accept-license
!

np-trivial avatar Aug 20 '21 20:08 np-trivial

Hey @np-trivial, that's the script doing what it's supposed to--asking you to agree to the Splunk license. :-)

If you're unfamiliar with environment variables, there's some documentation here: https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-linux

-- Doug

dmuth avatar Aug 20 '21 21:08 dmuth

I'm familiar with environment variables, and I run Splunk using Docker frequently. I interpreted that your script took care of it. I find the instructions misleading. They indicate that I can just run that one command line and be up and running, but it appears that I cannot. Your explanation "Splunk has its own license. Please abide by it." doesn't actually help me run this script.

Could you please add more verbose instructions to the README indicating that users will need to accept the license? I understand why your script does not do this already (because that would be like you accepting the license on my behalf, which is improper), but as is, it makes it seem like this is a bug, not a necessary user intervention.

np-trivial avatar Aug 23 '21 14:08 np-trivial