Run executable from hosting machine in a container

Hi all, how can I run a command from the machine host, inside the container/pod?
For example the hosting machine has curl and the container doesn’t.
So I want to execute the curl inside the container, using the existing curl from the hosting machine.

Thank you.

What’s the are you trying to solve with this request? You can’t run curl inside the container unless the curl utility is already installed inside the container. What’s preventing you from installing curl inside the container?

Some of my customers have no internet connection on their environment.
But thanks, I found a way to run it with nsenter command.

1 Like