IPTables and UFW problems

Docker does stuff that breaks IP tables. You should Google that, I think.