I am slowly converting my services on server to docker containers. I have already converted unifi controller and home assistant. I did used LSIO images in both cases. So I deceded to used nextcloud LSIO image too.
here is my compose file
version: "2.1" services: nextcloud: image: ghcr.io/linuxserver/nextcloud container_name: nextcloud environment: - PUID=1000 - PGID=984 - TZ=Europe/Bratislava volumes: - /docker_volumes/nextcloud/config:/config - /docker_volumes/nextcloud/data:/data ports: - 8043:443 restart: unless-stopped
As you can see I want open 8043 port on my server because 443 is occupaid by another service
I was able to start service for first time. But I did update compose file and now I am not able to restart. I did delete all related files and start from scratch. But still getting following error when starting service:
# for first time sudo docker-compose up -d #or after stop sudo docker-compose start
and output is:
Starting nextcloud ... Starting nextcloud ... error ERROR: for nextcloud Cannot start service nextcloud: driver failed programming external connectivity on endpoint nextcloud (dae56d616f028adc55a23e07172e409dcf13dea9847e211f730beee58afef874): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8043 -j DNAT --to-destination 172.19.0.2:443 ! -i br-816d03fea7e9: iptables: No chain/target/match by that name. (exit status 1)) ERROR: No containers to start ERROR: 1
here is output of ip ad command:
5: br-bef332d3e5fe: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:ef:c0:1f:af brd ff:ff:ff:ff:ff:ff inet 172.18.0.1/16 brd 172.18.255.255 scope global br-bef332d3e5fe valid_lft forever preferred_lft forever 6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:c1:d1:17:d4 brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0 valid_lft forever preferred_lft forever 7: br-816d03fea7e9: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:8a:9d:91:1d brd ff:ff:ff:ff:ff:ff inet 172.19.0.1/16 brd 172.19.255.255 scope global br-816d03fea7e9 valid_lft forever preferred_lft forever inet6 fe80::42:8aff:fe9d:911d/64 scope link valid_lft forever preferred_lft forever
My another two docker services (unifi controller and home assistant) are configured network_mode: host because I want expose all ports to my server IP / link. So there should not be br-* network devices. I have not seen those before.
I do not understant where br-* devices come from.
thank you very much for help