You can’t execute commands on the host from a container. This is the point of containers. There was an other topic where I explained it and suggested some solutions:
rimelek
(Ákos Takács)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Start/stop Linux host services from Docker container | 16 | 6033 | August 31, 2023 | |
| Call from inside a docker container commands in the host bash. Possible? | 3 | 1308 | October 23, 2019 | |
| Controlling a container from another container | 0 | 670 | October 14, 2019 | |
| Call host's executable from inside the docker container | 0 | 1046 | January 3, 2019 | |
| Execute command from a container to another container? | 5 | 95689 | September 1, 2020 |