Hi,
Technically, you can.However, it is important to note that any changes in the container are volatile and all changes will be lost on re-creation of the pod.
If you need this method for anything other than debugging or investigation purposes, I think you are probably on the wrong way for your purpose.
$ sudo /usr/local/bin/k3s ctr task exec -t --exec-id <unique-name> --user 0 <container-id> bash
e.g.
$ sudo /usr/local/bin/k3s ctr task exec -t --exec-id bash-example --user 0 c2db413be4684979c9055c788f751c676b8c898d33582c5fa7dbeeef8ec8fb22 bash
You can get <container-id> by "kubectl -n awx describe pod <pod-name>";
$ kubectl -n awx describe pod awx-76445c946f-btfzz
...
awx-task:
Container ID: containerd://c2db413be4684979c9055c788f751c676b8c898d33582c5fa7dbeeef8ec8fb22
...
--
@kurokobo
------- Original Message -------