now many docker ui can remotely call docker"s rest API to operate the container, and use exec to execute commands inside the running container. Suppose I call the exec API in the following way:
POST hostid:port/containers/ {id} / exec
Parameter:
AttachStderr: true
AttachStdin: true
AttachStdout: true
Cmd: ["bash"]
Tty: true
id: "xxxxxx"
after I have successfully created an exec instance, what should I do to add commands, such as ls, to bash shell?
I hope the bosses passing by will not hesitate to give us advice.