In my DigitalOcean (DO) droplet I installed this image: Ubuntu Docker 17.12.0~ce on 16.04 (which is available on ** DO website > droplet> destroy> rebuild dropl
Alternative solution: Drop UFW and instead use Network Firewall available in digital ocean control panel (on website).