I am seeing the following logs when I try to start a tentacle container (running in Kubernetes):
===============================================
Configuring Octopus Deploy Tentacle
- server endpoint 'http://iiswebdeploy/'
- api key '##########'
- communication mode 'Polling' (Active)
- server port 10943
- worker pool 'KubernetesNonProdWorkerPool'
- host 'ComputerName'
- space 'IT Kubernetes'
===============================================
/scripts/configure-tentacle.sh: line 109: 11 Killed tentacle create-instance --instance "$instanceName" --config "$configurationDirectory/tentacle.config"
+ [[ N == \Y ]]
+ echo 'Starting Docker-in-Docker daemon. This requires that this container be run in privileged mode.'
Starting Docker-in-Docker daemon. This requires that this container be run in privileged mode.
+ tentacle agent --instance Tentacle --noninteractive
+ nohup /usr/local/bin/dockerd-entrypoint.sh dockerd
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and --privileged mode might break.
mount: /tmp: permission denied.
/scripts/run-tentacle.sh: line 11: 39 Killed tentacle agent --instance Tentacle --noninteractive
It seems to be saying that I need to run in privileged mode. But that is confusing to me because I have run this container in my cluster just like this before, with no issues.
The only difference is that I am passing in the API Key as an environment variable parameter instead of having it be hard coded into the container.
But, as I understand it, that should not be any different. (The env vars should be set prior to the container being started.)
Any ideas on what I can do to troubleshoot this issue?
Sorry to hear you’re having issues getting this container running in your cluster.
Privileged mode is only required when making use of Docker-in-docker functionality, which seems strange if the only change was your API key - is it possible that the Docker-In-Docker env var was changed as well for this deployment? This functionality is modified by the DISABLE_DIND environment variable.
Thanks for trying that. I’m not sure what’s causing the script to be killed, but would you be willing to send through the docker logs for that container so we can see what might be causing the tentacle installation to fail?
You can use the following link to send this through to us securely:
That’s great news and I’m glad you were able to figure out what was causing it! Also, thank you for sharing the resolution details as they go a long way toward helping others in the community.