Can't access internet after installing docker in a fresh ubuntu 18.04 machine

So I was not understanding your answer, and I’m sorry about that. I fixed my problem with the answer in Stackoverflow, which is the same you suggest but with a different approach.

Thanks!