In this docker article, we will be looking how to start a internal process in a running container from host in Linux.
With Following command we can start a internal process in a running container from host.
docker exec -d ... container name ... ... command ...
Lets see it in ubuntu linux shell example.
In above example, we check our container first. It sour containers, we got a running ubuntu container with name "stargateD1". We used "touch" command from our host to create a file inside that container without we enter interactive mode with following command.
docker exec -d stargateD1 touch /home/1.txt
After we used "touch", we enter to interactive mode inside our ubuntu container, and check if file is created.