Docker Community Forums

Share and learn in the Docker community.

Able to connect to containers but not services


(Neptunejmp) #1

I am running docker ee on Windows server 2016
When I run a container, e.g
docker run -d -p 83:80 --name {name} {image}
I am able to access this from another machine on the same local network through the local IP.

When I try to create a container. e.g
docker service create --name {name} -p 83:80 --replicas 3 {image}
I instead just get a request timeout.
The containers all appear to be running correctly, though I cannot connect to them even locally (on the server using the IP from docker container exec {containerID} ipconfig).

Since I am using the same ports for both I cannot see it being a firewall issue. Can anyone see any reasons why this would be happening?

For reference my docker version:
Client:
Version: 18.03.1-ee-2
API version: 1.37
Go version: go1.10.2
Git commit: ebbcd7e
Built: Tue Jul 10 21:32:32 2018
OS/Arch: windows/amd64
Experimental: false

Server:
Engine:
Version: 18.03.1-ee-2
API version: 1.37 (minimum version 1.24)
Go version: go1.10.2
Git commit: ebbcd7e
Built: Tue Jul 10 21:49:06 2018
OS/Arch: windows/amd64
Experimental: false`

My docker info
`Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 5
Server Version: 18.03.1-ee-2
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: active
NodeID: y4my8cpuj7ofre2zv0nogmqma
Is Manager: true
ClusterID: 05tg4ubhkkba037juuy4qanbq
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 10.0.105.84
Manager Addresses:
10.0.105.84:2377
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2551.amd64fre.rs1_release.181004-1309)
Operating System: Windows Server 2016 Standard Version 1607 (OS Build 14393.2551)
OSType: windows
Architecture: x86_64
CPUs: 6
Total Memory: 9.999GiB
Name: docker-ld-sw
ID: LHYU:PNQC:A2JH:5HCL:FDJV:Z2IV:SF74:RVOE:3GYI:N4JN:UWJZ:I5CM
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): false
Username: neptunejmp
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false