I’m a Mac user, but I use Docker, Kubernetes, and remote Linux servers a lot. However many commands and C functions are available on Linux, but not on Mac/Darwin/BSD, and having access to the Linux documentation directly from the Mac terminal would be very convenient.
My preferred method to install Docker on Mac is to run: https://brew.sh install docker.
Then, use Docker to copy the man pages of the latest version of Ubuntu Linux to your host: docker run -v $HOME/ubuntu-man:/host-ubuntu-man ubuntu:latest bash -c 'echo y | unminimize ; DEBIAN_FRONTEND=noninteractive apt install manpages manpages-dev manpages-posix manpages-posix-dev net-tools; cp -Rf /usr/share/man/* /host-ubuntu-man'
This registers a new alias, lman, which uses the built-in macOS man command, but has access to the Ubuntu man pages we copied earlier!