how to invoke shell script inside docker container using from rest api??

0 votes
Hi ,

I have a shell script . i need to invoke the shell script from the restapi app ,

and restapi app is containerized ,which is running inside docker container. when i tried to invoke the shell script from restapi , shell script is invoking inside the container . but the changes are not affecting in the vm machine.

how to invoke shell script inside docker container using from rest api??

any idea. ??

example: shell script should create the new folder inside the vm , and create a log files.  

commands are running inside the container but its not creating any folder or log files.
May 19 in DevOps and Microservices by anonymous
• 120 points
171 views
Can you share your script?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In DevOps and Microservices

+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,640 points
778 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,100 points
1,269 views
0 votes
1 answer
0 votes
1 answer
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 15,760 views