Kubernetes tipsΒΆ
tar: removing leading β/β from member namesΒΆ
The problem is solved by removing the leading slash after the podname colon separator:
brent@BC:~/test/$ kubectl cp hello-wold:/usr/share/nginx/html/index.html /tmp/index.html
# ^ This slash causes this error
tar: removing leading '/' from member names
# Here the command works as we remove the leading slash:
brent@BC:~/test/$ kubectl cp hello-wold:usr/share/nginx/html/index.html /tmp/index.html
Comments
comments powered by Disqus