1 xargs
https://shengyu7697.github.io/linux-xargs/
2.kill commad
https://stackoverflow.com/questions/27757405/how-to-kill-process-inside-container-docker-top-command
https://stackoverflow.com/questions/34552232/cant-kill-processes-originating-in-a-docker-container
docker exec -it tadeu_debian ps aux | grep ping | awk '{ print $2 }' | xargs -I{} docker exec -i tadeu_debian kill -9
3. docker command
https://docs.docker.com/engine/reference/commandline/exec/
https://devconnected.com/docker-exec-command-with-examples/
COMMAND should be an executable, a chained or a quoted command will not work. Example: docker exec -ti my_container "echo a && echo b"
will not work, but docker exec -ti my_container sh -c "echo a && echo b"
will