Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker build image not working in PyCharm

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

  • PyCharm Community 2018.2.1
  • PyCharm Docker plugin 182.3684.90
  • Docker version 18.03.1-ce, build 9ee9f40
  • Ubuntu 16.04
like image 298
user3188040 Avatar asked Feb 03 '26 15:02

user3188040


1 Answers

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.

like image 157
Nour Wolf Avatar answered Feb 06 '26 06:02

Nour Wolf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!