cyberark / KubiScan

A tool to scan Kubernetes cluster for risky permissions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'docker_run.sh' script returning permission denied error when trying to copy into the container

2niknatan opened this issue · comments

Summary

When running 'docker_run.sh' script, the 'docker cp' command is returning an error as such:
ERRO[0000] Can't add file /root/.minikube/profiles/minikube/client.crt to tar: open /root/.minikube/profiles/minikube/client.crt: permission denied

Steps to Reproduce

  1. Running 'docker_run.sh' script

Expected Results

All files are copied

Actual Results

Getting 'When running 'docker_run.sh' script, the 'docker cp' command is returning an error as such:
ERRO[0000] Can't add file /root/.minikube/profiles/minikube/client.crt to tar: open /root/.minikube/profiles/minikube/client.crt: permission denied' error

Reproducible

  • [* ] Always
  • Sometimes
  • Non-Reproducible

Environment setup

Ubuntu