关于docker网络:
容器内访问其他服务 → 必须用服务名(如 ftp:21)
容器内访问自己服务 → 可以用 localhost(如 localhost:5678)
宿主机访问容器服务 → 用 localhost + 映射端口(需 ports 配置)
评论