victorious-doctor-10562
05/27/2024, 2:23 PMdocker run -d
--name <container_name>
-v /Applications/SplunkForwarder/etc/apps/<custom splunk app>/:/opt/splunk/etc/apps/<custom splunk app>
-v /Applications/SplunkForwarder/etc/apps/<custom splunk app>/test:/opt/splunk/etc/apps/test
-p ${PORT:=8001}:8000
-e "SPLUNK_START_ARGS=--accept-license"
-e 'SPLUNK_PASSWORD=changeme'
-e 'SPLUNK_HOME_OWNERSHIP_ENFORCEMENT=false'
-e 'SPLUNK_USER=root'
splunk/splunk:latest
fast-garage-66093
05/27/2024, 3:28 PM/Applications
directory is not mounted into the VM, so /Applications/SplunkForwarder
does not exist in the guest, so cannot be bound to the container. This gives a list of all mounted host directories (assuming you use reverse_sshfs
):
$ rdctl shell mount | grep fuse | awk '{print $3}' | sort
/Applications/Rancher\<http://040Desktop.app/Contents/Resources/resources|040Desktop.app/Contents/Resources/resources>
/Users/jan
/Volumes
/private/tmp
/private/var/folders
/tmp/rancher-desktop
/var/folders
fast-garage-66093
05/27/2024, 3:30 PM~/Applications
instead of /Applications
. Otherwise you would need to use a Lima override to mount the additional directory into the VM, but that is more fragile (e.g. will be deleted by a factory-reset).victorious-doctor-10562
05/28/2024, 5:27 AM