Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JasonMadeSomething opened this issue Aug 7, 2021 · 4 comments
Assignees

Comments

@JasonMadeSomething
Copy link

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

@dmuth dmuth self-assigned this Aug 8, 2021
@dmuth
Copy link
Owner

dmuth commented Aug 8, 2021

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

@np-trivial
Copy link

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
!

@dmuth
Copy link
Owner

dmuth commented Aug 20, 2021

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

@np-trivial
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants