templates icon indicating copy to clipboard operation
templates copied to clipboard

Error: Conflicting options: port publishing and the container type network mode with IntelliJ

Open dieter-medium opened this issue 7 months ago • 2 comments

I encountered an error with port publishing and the container type network mode while using IntelliJ. It seems to be related to the network mode setting.

Error: conflicting options: port publishing and the container type network mode

The issue seems to occur due to the network mode configuration in the docker-compose.yml. Specifically, in javascript-node-postgres and simalar.

The error is resolved if the network_mode setting is switched between app and db services. For instance, instead of using network_mode: service:db within the app, using network_mode: service:app within db resolves the error.

References:

[YouTrack Issue](https://youtrack.jetbrains.com/issue/IJPL-65932/Devcontainers-Error-response-from-daemon-conflicting-options-port-publishing-and-the-container-type-network-mode)

dieter-medium avatar Aug 01 '24 14:08 dieter-medium