Office 365 Installation inside docker container

R, Renjith 6 Reputation points
2021-05-08T05:46:00.473+00:00

I have installed the excel.exe (Office365) via ODT in my docker container.

I have followed the step in the below link.

I can see the app got installed.

But I am not able to run the app. Tried to execute the following via powershell. But it is not recognizing the application

$ol = New-Object -ComObject Excel.Application

https://learn.microsoft.com/en-us/deployoffice/overview-office-deployment-tool
Following are the download and install configs.

  • download-config.xml

<Configuration>

<Add SourcePath="C:\excel\office"

   OfficeClientEdition="64"  

   Channel="SemiAnnual" AllowCdnFallback="True"     OfficeMgmtCOM="True">  

<Product ID="O365ProPlusRetail">  

  <Language ID="en-us" />  

  <ExcludeApp ID="Publisher" />  

<ExcludeApp ID="Access" />

<ExcludeApp ID="Groove" />

<ExcludeApp ID="Lync" />

<ExcludeApp ID="OneDrive" />

<ExcludeApp ID="OneNote" />

<ExcludeApp ID="Outlook" />

<ExcludeApp ID="PowerPoint" />

  <ExcludeApp ID="Teams" />  

<ExcludeApp ID="Word" />

</Product>  

</Add>

<Display Level="None" AcceptEULA="TRUE" />

</Configuration>

  • install-config.xml

<Configuration>

<Add SourcePath="C:\excel\office" OfficeClientEdition="64">

<Product ID="O365ProPlusRetail" >   

  <Language ID="en-us" />          

  <ExcludeApp ID="Publisher" />  

  <ExcludeApp ID="Access" />  

<ExcludeApp ID="Groove" />

<ExcludeApp ID="Lync" />

<ExcludeApp ID="OneDrive" />

<ExcludeApp ID="OneNote" />

<ExcludeApp ID="Outlook" />

<ExcludeApp ID="PowerPoint" />

  <ExcludeApp ID="Teams" />  

<ExcludeApp ID="Word" />

</Product>   

</Add>

<Display Level="None" AcceptEULA="TRUE" />

</Configuration>

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
635 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
1,999 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 21,626 Reputation points Microsoft Vendor
    2021-05-11T06:06:51.877+00:00

    Hi @R, Renjith ,
    I suggest you refer to this support article and check if you can get any help:

    https://www.ntweekly.com/2019/09/26/manage-office-365-using-powershell-from-a-docker-container/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.