When attempting to build an image from a Dockerfile in PyCharm the following error is shown
Deploying 'test1 Dockerfile: Dockerfile'...
Building image...
Failed to deploy 'test1 Dockerfile: Dockerfile': com.github.dockerjava.api.exception.DockerClientException: Failed to parse docker configuration file<br/>caused by: java.io.IOException: Failed to parse docker config.json
Building outside of PyCharm from the command line works fine.
I assume I'm meant to set the location of the .docker/config.json file, but I don't see where in PyCharm to do that.
Versions
Something could have tempered with ~/.docker/config.json. Try deleting it and restarting the docker service afterwards.
You might want to docker login again in case you were logged in to some private registries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With