Are you running Ubuntu on bare metal, or inside a virtual machine or something? It seems strange that Docker would impose a memory limit to any container when running the OS on bare metal (however, if you run Docker on macOS, it will run inside a virtual machine that is, by default, limited to using 50% of available RAM, but that’s configurable).