Docker Community Forums

Share and learn in the Docker community.

GET /events is not working

(Vishnu Bharathi) #1

GET /events API endpoint is not working.

My requirement is getting events with a combination of until and filter ( by label ) parameters.

Is it available on Docker Remote API v1.22 ?

(Vivek Saraswat) #2

Hi Vishnu,

Are you referring to the Docker Remote API for Engine or UCP? UCP is at v1.0.4…

(Vishnu Bharathi) #3

Oops sorry ! I was referring to Docker Remote API v 1.22 . I had setup my UCP and I can create , start ,stop containers using Docker Remote API. But , I am not able to get the events from the API.

(Vivek Saraswat) #4

Not a problem. Can you show the errors you are getting?

(Vishnu Bharathi) #5

Apologies for late reply.

I have a small doubt that we are constructing the query correctly. So , It would be helpful if you could tell me the query for following case:

Running a container with a Label set as secretId=1234 and I would like to query the events of container with label secretId and I want the events till now.

If I construct the query and send a request via Postman app , its not responding with anything back. I am not sure whats going on here, but its definitely not an unauthorized call. because other endpoints are working as expected.

Our query looks like