How can you make a docker container inside whonix workstation connect to the internet?

Duplicate of DNS Docker Temporary failure resolving Whonix 17.3 - same answers apply.