I started container with java process and -d switch (detached). Now I want to send command to that running java process (as if I would run this container without -d interactively and print command manually). If I use
docker exec -it my_container set a=1
where “set a=1” is the command, than I get error:
rpc error: code = 2 desc = oci runtime error: exec failed: exec: “set”: executable file not found in $PATH
So I suppose that docker is trying to run this command not in the process in foreground but on the container os command line (bash?). So the question is how can I send commands to the process in the foreground inside running container?