19 Jun
2023
19 Jun
'23
4:29 a.m.
On 19/06/2023 07:55, Valentin Rothberg wrote:
On Sun, Jun 18, 2023 at 10:59 AM lejeczek via Podman <podman@lists.podman.io> wrote:
Hi guys.
How do you 'exec' your container shell functions without going into shell interactively?
You can run, for instance, `podman exec $container -s "$functions"`.
I was looking at a few websites which suggest docker exec this way: -> $ docker exec 123456789abc bash -c "{command 1} ; {command 2}" which does not work, but this does, with/in podman: -> $ podman container exec freeipa.mine.priv bash -c "source /root/.bashrc; __ipaCollectBits" thanks, L.