Docker Community Forums

Share and learn in the Docker community.

Docker auf VirtualBox laufen lassen

`Hallo zusammen,

Ich habe Docker auf einer Virtual Maschiene (VirtualBox Debian Image ) installiiert. Danach habe ich docker-Compose installiert und ausgeführt.
Habe keine Internet verbindung zum Iobroker
Nach einem Restart kann ich die Admin oberfläsche auch nicht mehr erreichen.

Fehler Log: Iobroker

root@5d84b836d60c:/opt/iobroker# iobroker update
Used repository: default
Cannot download json from http://download.iobroker.net/sources-dist-hash.json. Error: Error: ETIMEDOUT
Cannot download json from http://download.iobroker.net/sources-dist.json. Error: Error: ETIMEDOUT
update done
2019-07-24 00:04:28.154  - e[32minfoe[39m: host.703b668338bd instance system.adapter.dwd.0 started with pid 25260
2019-07-24 00:04:29.452  - e[32minfoe[39m: dwd.0 starting. Version 2.4.3 in /opt/iobroker/node_modules/iobroker.dwd, node: v8.16.0
2019-07-24 00:04:39.727  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:04:49.735  - e[31merrore[39m: dwd.0 Empty or invalid JSON: Cannot read JSON file: Error: getaddrinfo EAI_AGAIN www.dwd.de:80
2019-07-24 00:04:50.278  - e[32minfoe[39m: host.703b668338bd instance system.adapter.dwd.0 terminated with code 0 (OK)
2019-07-24 00:07:23.644  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:07:23.666  - e[32minfoe[39m: host.703b668338bd instance system.adapter.dwd.0 started with pid 25472
2019-07-24 00:07:25.125  - e[32minfoe[39m: dwd.0 starting. Version 2.4.3 in /opt/iobroker/node_modules/iobroker.dwd, node: v8.16.0
2019-07-24 00:07:25.992  - e[32minfoe[39m: cloud.0 Trying to connect as system.user.admin
2019-07-24 00:07:35.992  - e[31merrore[39m: cloud.0 Error while connecting to cloud: Error: websocket error
2019-07-24 00:07:43.985  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:07:45.412  - e[31merrore[39m: dwd.0 Empty or invalid JSON: Cannot read JSON file: Error: getaddrinfo EAI_AGAIN www.dwd.de:80
2019-07-24 00:07:45.953  - e[32minfoe[39m: host.703b668338bd instance system.adapter.dwd.0 terminated with code 0 (OK)
2019-07-24 00:09:34.606  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:11:48.690  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:11:50.058  - e[32minfoe[39m: cloud.0 Trying to connect as system.user.admin
2019-07-24 00:12:00.055  - e[31merrore[39m: cloud.0 Error while connecting to cloud: Error: websocket error
2019-07-24 00:12:09.034  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:30:32.105  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:30:46.120  - e[31merrore[39m: cloud.0 Error while connecting to cloud: Error: websocket error
2019-07-24 00:30:52.435  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443
2019-07-24 00:30:52.818  - e[32minfoe[39m: cloud.0 Trying to connect as system.user.admin
2019-07-24 00:32:35.647  - e[31merrore[39m: cloud.0 Error while connecting to cloud: Error: websocket error
2019-07-24 00:32:45.623  - e[31merrore[39m: telegram.0 polling_error:EFATAL, EFATAL: Error: getaddrinfo EAI_AGAIN api.telegram.org:443

Docker-Compose.yml


version: '2.4'

services:


  
  mysql:
    restart: always
    ports:
      - "3306:3306"
      - "33060:33060"
    image: mysql/mysql-server:5.7
    volumes:
      - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
      - ./mysql/data:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
    networks:
      fhem-network: {}

  mqtt:
   restart: always
   ports:
     - "1883:1883"
     - "9001:9001"
   image: toke/mosquitto
   networks:
      fhem-network: {}
   volumes:
     - ./mqtt/config/:/mqtt/config/
     - ./mqtt/log/:/mqtt/log/
     - ./mqtt/data/:/mqtt/data/

  nodered:
    restart: always
    ports:
      - "1880:1880"
    image: nodered/node-red-docker:0.18.4
    volumes:
      - ./nodered/data/:/root/data/
    networks:
      fhem-network: {}
    depends_on:
      - "mqtt"

  

  portainer:
    restart: always
    image: portainer/portainer:1.21.0
    volumes:
      - ./portainer/:/data
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "9000:9000"

  magic_mirror:
    restart: always
    image: bastilimbach/docker-magicmirror
    ports:
      - "8080:8080"
    volumes:
      - ./magic_mirror/config:/opt/magic_mirror/config \
      - ./magic_mirror/modules:/opt/magic_mirror/modules \
      - ./magic_mirror/css:/opt/magic_mirror/css/custom.css \
    networks:
      fhem-network: {}

 
    

  iobroker:
    restart: always      
    image: buanet/iobroker:latest
    privileged: true
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/intelnuc/fhem-docker/iobroker:/opt/iobroker
      
    
    networks:
      macvlan0:
        ipv4_address: 192.168.200.17
      

networks:

  fhem-network:
    driver: bridge

  macvlan0:
    driver: macvlan
    driver_opts:
      parent: enp0s3
    ipam:
      config:
      - subnet: 192.168.200.100/24
        gateway: 192.168.200.1
        ip_range: 192.168.200.17/32


Netzwerk wurde erstellt:

In der Fritzbox taucht die Ip Adresse auf. 192.168.200.17
Intelnuc = Virtualmaschine
Iobroker = iobroker über die Ip 192.168.200.17 soll das Admin Webinterface geöffnet werden.

Virtualbox einstellungen netzwerk: Promiscuous Modus

13

root@intelnuc:/home/intelnuc# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:53
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:53
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:67
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:67
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:67
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:67
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:443
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            192.168.122.0/24     ctstate RELATED,ESTABLISHED
ACCEPT     all  --  192.168.122.0/24     0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
DOCKER-USER  all  --  0.0.0.0/0            0.0.0.0/0           
DOCKER-ISOLATION-STAGE-1  all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
DOCKER     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
DOCKER     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
DOCKER     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:68
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED

Chain DOCKER (3 references)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            172.18.0.2           tcp dpt:9000
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.3           tcp dpt:9001
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.3           tcp dpt:1883
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.4           tcp dpt:8080
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.5           tcp dpt:33060
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.6           tcp dpt:1880
ACCEPT     tcp  --  0.0.0.0/0            172.19.0.5           tcp dpt:3306

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target     prot opt source               destination         
DOCKER-ISOLATION-STAGE-2  all  --  0.0.0.0/0            0.0.0.0/0           
DOCKER-ISOLATION-STAGE-2  all  --  0.0.0.0/0            0.0.0.0/0           
DOCKER-ISOLATION-STAGE-2  all  --  0.0.0.0/0            0.0.0.0/0           
RETURN     all  --  0.0.0.0/0            0.0.0.0/0           

Chain DOCKER-ISOLATION-STAGE-2 (3 references)
target     prot opt source               destination         
DROP       all  --  0.0.0.0/0            0.0.0.0/0           
DROP       all  --  0.0.0.0/0            0.0.0.0/0           
DROP       all  --  0.0.0.0/0            0.0.0.0/0           
RETURN     all  --  0.0.0.0/0            0.0.0.0/0           

Chain DOCKER-USER (1 references)
target     prot opt source               destination         
RETURN     all  --  0.0.0.0/0            0.0.0.0/0           
root@intelnuc:/home/intelnuc# 

root@intelnuc:/home/intelnuc# route -v
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
default         fritz.box       0.0.0.0         UG    0      0        0 enp0s3
172.17.0.0      *               255.255.0.0     U     0      0        0 docker0
172.18.0.0      *               255.255.0.0     U     0      0        0 br-8d1efcf7d034
172.19.0.0      *               255.255.0.0     U     0      0        0 br-85c06ead6298
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
192.168.200.0   *               255.255.255.0   U     0      0        0 enp0s3

Das habe ich auch schon probiert.

https://tots.1o24.org/how-to-check-if-promiscuous-mode-is-enabled-on-network-interface-in-linux/