Docker Community Forums

Share and learn in the Docker community.

Question about docker-compose and macvlan

hi there,
i have a container with a own ip, realized by macvlan mode. Works perfect.

The only problem i have is that from host i cannot access the ip of the container (192.168.178.210). What can i do here?

THANKS

version: '2.1'
services:
  iobroker:
    restart: always
image: buanet/iobroker:latest
container_name: iobroker
hostname: iobroker
ports:
  - "8081:8081"
  - "8087:8087"
volumes:
  - ./my-datas/iobroker/iobrokerdata:/opt/iobroker
networks:
  public:
    ipv4_address: 192.168.178.210
networks:
  public:
driver: macvlan
driver_opts:
  parent: eno1
ipam:
  config:
    - subnet: 192.168.178.0/24
      gateway: 192.168.178.1
      ip_range: 192.168.178.210/32
'