17 Apr
2024
17 Apr
'24
9:49 p.m.
Hi Eugen,
If I enter the opensearch container I don't have any sudo permissions. If you have any tip how to do that in a running environment, I would greatly appreciate it!
You can try to exec bash on a running container as root user like in the following example: $ sudo docker exec -u root -ti elasticsearch bash (elasticsearch)[root@control01 /]# id uid=0(root) gid=0(root) groups=0(root) (elasticsearch)[root@control01 /]# exit $ sudo docker exec -ti elasticsearch bash (elasticsearch)[elasticsearch@ control01 /]$ id uid=42412(elasticsearch) gid=42412(elasticsearch) groups=42412(elasticsearch),42400(kolla) Best, Matteo