setup:
docker swarm 3 raspberry pi 3b+, hypriot
docker version 18.09.0, build 4d60db4
host network : 192.168.3.0/24
creating networks:
docker network create --config-only --subnet="192.168.3.0/24" --ip-range="192.168.3.2/24" -o parent=eth0 conf_net
docker network create -d macvlan --scope swarm --config-from conf_net oh_vlan
test_net1.yml
version: '3'
services:
test1:
image: nginx:stable-alpine
networks:
- oh_vlan
test2:
image: nginx:stable-alpine
networks:
- oh_vlan
networks:
oh_vlan:
external:
name: oh_vlan
deploying the services
$ docker stack deploy -c test_net1.yml net_test1
Creating service net_test1_test1
Creating service net_test1_test2
when I look at my router/dns/dhcp server (Fritzbox) I see following entries:
Is there any way to control names which are entered there, as these are the names for accessing the service from the host network.