Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot execute command" popup from IntelliJ when launching Docker Desktop

I'm getting a strange error popup I suspect it has something to do with a built in integration of Docker in IntelliJ.

I'm running the following:

  • Mac OS Big Sur 11.4
  • IntelliJ 21.1.3
  • Docker Desktop 3.5.2.18
  • Docker version 20.10.7, build f0df350

When I launch Docker Desktop, it launches IntelliJ for some reason and I get an error popup immediately:

Title: Cannot execute command

Body: Can not open file /Users/myuser/Library/Containers/com.docker.docker/Data/--list-extensions

I've tried reinstalling both several times and used the Clear cache and clear data options in the Docker settings. I should also note that i've tried removing all projects from IntelliJ and docker and have even disabled the "Docker" plugin in IntelliJ but still get the same error.

Does anyone have any ideas on how to prevent this popup on launch? It is more of an annoyance than a blocker as I can simply close it and then use the tools without problems but its odd that this would happen. Originally I dismissed it as some random system specific configuration but today found that it is not specific to my environment as I got it on a fresh install on a new machine with new user.

like image 838
nofunatall Avatar asked Jul 26 '21 17:07

nofunatall


People also ask

How do I connect to Docker in Intellij?

Make sure the Docker plugin is installed and enabled To enable Docker support in IntelliJ IDEA Community Edition or IntelliJ IDEA Edu, install the Docker plugin from the Marketplace. Press Ctrl+Alt+S to open the IDE settings and select Plugins. Find the Docker plugin and make sure it is installed and enabled.

Does IntelliJ support Docker testing?

Docker enables developers to deploy applications inside containers for testing code in an environment identical to production. IntelliJ IDEA provides Docker support using the Docker plugin. The plugin is bundled and enabled by default in IntelliJ IDEA Ultimate Edition.

How do I push an image from IntelliJ IDEA to Docker?

IntelliJ IDEA runs the docker build command. Push an image to a Docker registry In the Services tool window, select the image that you want to upload and click or select Push Image from the context menu.

What are pop-ups in IntelliJ?

The IntelliJ Platform user interface makes extensive use of popups - semi-modal windows that have no chrome (explicit closing buttons) and disappear automatically on focus loss. Making use of these controls in your plugin ensures a consistent user experience between your plugin and the rest of the IDE.

How do I install Docker desktop on Windows?

After downloading Docker Desktop Installer.exe, run the following command in a terminal to install Docker Desktop: Start-Process '.\win\build\Docker Desktop Installer.exe' -Wait install --quiet: suppresses information output when running the installer


1 Answers

It seems a bug of Docker Development Environments Preview. The IntelliJ IDEA is opened by this process.

/Applications/Docker.app/Contents/MacOS/com.docker.dev-envs

You can degrade the Docker Desktop to version 3.4.0 to temporarily fix this problem.

like image 104
cizezsy Avatar answered Oct 13 '22 09:10

cizezsy