Here is my problem : I have a docker container that contain a function inside. I need to write on the terminal this commands in order to launch my function :
docker run -p 80:8080 -it custom_docker bin/bash
/home/prog/executable_script -command 'string'
I would like to put this function inside a textarea
in a php script, but how am I suppose to write it correctly in order to make it appear in my localhost
?
I've tried this but it didn't worked:
<html>
<body>
<textarea id="strings" name="chain" style="border: solid 1px #99bb99; width: 100%; margin: 0px; padding: 2px;" rows="25" cols="45">
<?php
echo '<pre>';
$content = system("sudo docker run -it custom_docker /bin/bash -w /home/prog/executable_script -command 'string');
echo '</pre>';
?>
</textarea>
</body>
</html>
Only <pre></pre>
is written as output...
Thanks for helping!
Also sorry for my bad English