docker - 使用 docker-compose 的 Pycharm 远程解释器无法在调试模式下工作
问题描述
我有一个使用 docker-compose 的 Pycharm 远程解释器设置,我能够正常运行该项目,但是在尝试调试时出现此错误:
ERROR: for e21cea317159_my_proj Cannot create container for service myproj: conflicting options: port publishing and the container type network mode
我的码头工人撰写文件:
version: '1.0'
services:
my-router:
image: testimage:latest
dns: 10.10.10.10
dns_search:
- testwebsite.com
et:
build:
context: ""
dockerfile: Dockerfile
volumes:
- .:/workarea
depends_on:
- "my-router"
environment:
- WAIT_FOR_PORTS=my-router:12345
network_mode: service:my-router
谢谢您的帮助!
解决方案
推荐阅读
- android - Android CameraX API 的 ImageCapture 初始化
- python - 不同子序列的记忆问题,任何人都可以请记忆(缓存)以下代码吗?
- flutter - 在脚手架底部显示 Flutter 容器
- node.js - 如何修复盲目的 SQL 注入,在搜索数组时,可能会根据用户输入而改变
- java - 已传递主参数“desc”,但未定义主参数
- github - Github 上的 Markdown 意外行为
- javascript - Uncaught (in promise) ReferenceError: topojson is not defined
- reactjs - 如何在 IonButton 中将 href 与 onClick() 一起使用?
- python - 绘制一系列二进制数组
- python - 相当于 defusedxml 中的 lxml.objectify cleanup_namespaces