anyone can explain to me how to use : ContainerExecLibpod
According to document the api has :
- AttachStderr
- AttachStdin
- AttachStdout
I want to know how to use that api parameters .
the podman api service started with this command :
> podman system service -t 0 tcp://localhost:9091
I create container :
> podman run -it --name=ubuntu -h ubuntu-container ubuntu:latest /bin/bash
now i test api with this command :
> curl -X POST 'http://localhost:9091/v5/libpod/containers/ubuntu/exec' -H "Content-Type: application/json" --data '{"AttachStderr": true,"AttachStdin": true,"AttachStdout": true,"Cmd" : ["ls"],"Tty": true}'
{"Id":"154a611f39691c7e76d1aceef28759c701ea0854422d07ff663f4f75faf7af44"}
the curl only result the simple json contain Id ,
how to use stdIn , stdOut , stdErr ?