Does anyone know a practical way to run a pre-365 version of Microsoft Office inside a Docker container? The host system could be Linux or Windows; I'm mainly interested in whether this is feasible and what setup would be most reliable. I'd prefer a container-based approach, but a virtual machine or compatibility layer such as Wine would also be worth considering if Docker isn't suitable.
4 Answers
The most reliable approach on a Linux host is usually a Windows virtual machine rather than a container. You can install Office inside the VM and access it normally, with VMware Workstation Pro or another desktop virtualization tool making the setup fairly straightforward. If you specifically need Docker, projects such as dockur/windows can launch a Windows environment in a container-like setup, and you could install Office inside that environment, but it’s still effectively running a full Windows system.
Another option is WinBoat, which packages a Windows virtual machine in a Docker-oriented workflow. It may be convenient, but keep in mind that this doesn’t make Office a native Linux container application—it still relies on a Windows environment underneath.
Before choosing a setup, it helps to clarify whether the host is Linux or Windows and whether the goal is isolation, automation, remote access, or simply running Office on a Linux desktop. For ordinary desktop use, a Windows VM is generally safer and better supported than trying to force Office into a Docker container.
Wine or CrossOver may be a better fit if you only need the Office programs and don’t want to run a complete Windows environment. They provide compatibility layers for Windows software, and you could put a Wine-based setup in a container and expose the graphical session through VNC or RDP. Compatibility will depend heavily on the Office version and the specific applications you need.

That’s the approach I use for Office applications on Linux, and it works well enough for my needs.