docker exec and docker logs
Select an icon to see what it is.
Step 1 of 6
exec first creates an exec instance
The CLI sends POST /containers/{id}/exec with the command to run. dockerd stores it and answers 201 with an exec Id. Nothing runs yet.
$ docker exec web ls /usr/share/nginx/html PrevNext
POST /v1.45/containers/e5f6a7b8c9d0e1f2e5f6a7b8c9d0e1f2e5f6a7b8c9d0e1f2e5f6a7b8c9d0e1f2/exec
{"AttachStdout": true"AttachStderr": true"Cmd": ["ls""/usr/share/nginx/html"]}