After I deploy a docker application using docker-swarm, the application is accessible from $mac-host-ip:8481, and then I noticed the following from my host (Mac),
$ sudo lsof -PiTCP -sTCP:LISTEN |grep 8481
dockerd 1882 root 97u IPv6 287775 0t0 TCP *:8481 (LISTEN)
$ docker ps --filter publish=8481
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker ps --filter expose=8481
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
is this expected for compose applications?
thanks!