docker-apps/_instructions/to copy file from truenas k3s container .txt
2025-04-15 22:40:04 +02:00

13 lines
669 B
Plaintext

To copy file from truenas k3s container
---------------------------------------
# get fullname of pod:
# Option 1:
# go to Apps can click on the relevant app
# under Workloads, click the shell icon and in the Choose pod window, select and copy the name of the relevant pod appearing in the first textbox to clipboard
# Option 2:
# list pods in the app's namespace:
k3s kubectl get pods -n ix-<appname>
# select and copy the relevant pod's name to clipboard
# use the following command to copy the a file from the container (container = appname)
k3s kubectl cp -c <container> <namespace>/<podname>:/path/to/file/in/container/filename.ext /local/path/and/filename.ext