Redis :Temporary failure in name resolution

I am working with the container in vs code. Here I need to debug for which I need API calls to be made. But because my docker is not connecting to the external server like redis I wasn’t able to debug. Can anyone have any idea regarding this. also when i try to pull image it pops up error response from daemon, repository not found even though it is a local image.

Thanks