Problem
Dockerfile
FROM public.ecr.aws/lambda/python:3.9
- Build the image with docker build -t foo .
- Create a new Docker interpreter >> Pull >> Image tag = foo:latest >> Next
The process is stuck on the following message:
Connecting to Docker daemon…Connected
Waiting for pull operation…
Error response from daemon: pull access denied for foo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Pull completed
Launching introspection container…
Done, container launched: c4ae9500e054
Introspecting image environment variables…
Done, 13 variables found in the inspect results
Introspecting $HOME: not found
Introspection completed with error: com.github.dockerjava.api.exception.ConflictException: Status 409: {"message":"Container c4ae9500e054ab074ac9b7c9260ce925d3d5d743f719a11f7076a0a3a470c294 is not running"}
Removing introspection container
idea.log
Not reproducible with targets disabled.
Resolve
I contacted PyCharm customer support and they provided this workaround, which resolved the issue for me. It reverts the interpreter set-up to the previous logic and I was able to use a local image as the remote interpreter again.
You can try disabling Help | Find Action | Registry... | python.use.targets.api
as a workaround.