docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See ‘docker run --help’.
Error: execution error at (conjur-oss/templates/secrets.yaml:36:11): ‘dataKey’ has no value, it must be provided!
NAME: conjur-oss
LAST DEPLOYED: Thu Mar 19 06:28:37 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URLs. These should match the configured SSL values:
- https://conjur.myorg.com
Any comments/guidance what am i missing?
Thanks,
Alex
Hi @Alex, the important part of your error message is here:
This happens when you install Docker without adding your user to the Docker group (see here for more details) which is relatively uncommon (it also only affects Linux). The setup you are currently using is more secure so your approach can be used fine but you have to split that command into two parts where you invoke the key generator with sudo first:
Is this a recommended method ? or should i use a different method?
We will need to test this out to make sure that this is the case (this is why there is an open issue for it). I think in some circumstances, the sudo operation may fail or request a password in a subshell without letting the user know so the two0line method approach is definitely less likely to result in failures.
It also would be helpful to have some next steps after a successful deployment.
If helm chart succeeds, it should in theory print this template to the CLI which should be adequate. If it’s not it might be a good idea to open an issue for it in the relevant repo.