You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started my java application in the startup windows server and registered it with nacos, but the host cannot access the java service started in my windows container. How do I expose the port of the java service? I added java server port 81 exposure in docker-compose.yml, but access denied: curl 192.168.1.1:81
Operating system
RockyLinux 8.7
Description
I started my java application in the startup windows server and registered it with nacos, but the host cannot access the java service started in my windows container. How do I expose the port of the java service? I added java server port 81 exposure in docker-compose.yml, but access denied: curl 192.168.1.1:81
Docker compose
version: "3"
services:
windows:
image: dockurr/windows:latest
container_name: windows
devices:
- /dev/kvm:/dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 81:81
- 3389:3389/tcp
- 3389:3389/udp
volumes:
- ./storage:/storage # 假设本地 ISO 文件位于当前目录下的 storage 文件夹内
- /data/work_pkg:/data
environment:
VERSION: "file:///storage/custom.iso" # 使用本地 ISO 文件
RAM_SIZE: "8G" # 分配 8GB 内存
CPU_CORES: "4" # 分配 4 个 CPU 核心
DISK_SIZE: "256G" # 设置硬盘大小为 256GB
stop_grace_period: 2m
restart: on-failure
Docker log
curl: (7) Failed to connect to 192.168.1.1 port 81: Connection refused
Screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: