<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in running a command in splunk hosted in docker in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problem-in-running-a-command-in-splunk-hosted-in-docker/m-p/455881#M56103</link>
    <description>&lt;P&gt;All you need to do is connect to the console:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker exec -it &amp;lt;image_id&amp;gt; /bin/bash
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, you can pass in the full command you want to run with the same syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker exec -it &amp;lt;image_id&amp;gt; /opt/splunk/bin/splunk &amp;lt;your_command_here&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 May 2019 20:33:16 GMT</pubDate>
    <dc:creator>codebuilder</dc:creator>
    <dc:date>2019-05-17T20:33:16Z</dc:date>
    <item>
      <title>Problem in running a command in splunk hosted in docker</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problem-in-running-a-command-in-splunk-hosted-in-docker/m-p/455880#M56102</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Hello ,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am trying to run an instance of splunk on docker-composite.&lt;BR /&gt;
Everything seems working , But I need to run  splunk command to add a user, I don't know how to do it via docker-composer. &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;So my problem is "How to configure docker-compose to&lt;BR /&gt;
run "?&lt;/P&gt;

&lt;H1&gt;splunk add user test -role Admin -password testpassword -full-name "TEST"&lt;/H1&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;My Config docker-compose :&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;version: "2"&lt;/P&gt;

&lt;P&gt;services:&lt;BR /&gt;
  splunk:&lt;BR /&gt;
    #build: .&lt;BR /&gt;
    hostname: splunk&lt;BR /&gt;
    image: splunk/splunk:7.2&lt;BR /&gt;
    environment:&lt;BR /&gt;
      SPLUNK_START_ARGS: --accept-license --answer-yes&lt;BR /&gt;
      SPLUNK_ENABLE_LISTEN: 9997&lt;BR /&gt;
      SPLUNK_ADD: tcp 1514&lt;BR /&gt;
      SPLUNK_PASSWORD: "test12345"&lt;BR /&gt;
volumes:&lt;BR /&gt;
      - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;BR /&gt;
    ports:&lt;BR /&gt;
      - "8000:8000"&lt;BR /&gt;
      - "9997:9997"&lt;BR /&gt;
      - "8088:8088"&lt;BR /&gt;
      - "1514:1514"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;THANK YOU IN ADVANCE !!!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problem-in-running-a-command-in-splunk-hosted-in-docker/m-p/455880#M56102</guid>
      <dc:creator>virtuosoo</dc:creator>
      <dc:date>2020-09-30T00:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in running a command in splunk hosted in docker</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problem-in-running-a-command-in-splunk-hosted-in-docker/m-p/455881#M56103</link>
      <description>&lt;P&gt;All you need to do is connect to the console:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker exec -it &amp;lt;image_id&amp;gt; /bin/bash
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, you can pass in the full command you want to run with the same syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker exec -it &amp;lt;image_id&amp;gt; /opt/splunk/bin/splunk &amp;lt;your_command_here&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 20:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problem-in-running-a-command-in-splunk-hosted-in-docker/m-p/455881#M56103</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2019-05-17T20:33:16Z</dc:date>
    </item>
  </channel>
</rss>

