Find out ip address of docker task container

hi i am trying to find out IP of task container.So when I am searching around I asked chatgpt to find out IP of tasks container here is thing. Is this true is there any meta variable we can use to get IP address of container when task has been allocated

let me know if this is true or correct me if i am wrong