Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Installing Optional Fonts Features in Windows Server 2022 Container. #565

Open
mancoba-hub opened this issue Jan 24, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mancoba-hub
Copy link

mancoba-hub commented Jan 24, 2025

Describe the bug
I have a problem installing with Windows Container. I have a file called "InstallFonts.cmd" and when I execute it, these 2 lines would throw an error message.

dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-UAPFonts /Source:C:\WindowsSource\ /LimitAccess
dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-Support /Source:C:\WindowsSource\ /LimitAccess

Error Message:

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

To Reproduce
Steps to reproduce the behaviour:

My powershell script (I have omitted some information...)

docker run --entrypoint C:\DockerDeployment\Common\InstallFonts.cmd

File contents

dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-MinConsoleFonts /Source:C:\WindowsSource\ /LimitAccess
dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-BitmapFonts /Source:C:\WindowsSource\ /LimitAccess
dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-TrueType /Source:C:\WindowsSource\ /LimitAccess
dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-UAPFonts /Source:C:\WindowsSource\ /LimitAccess
dism /online /enable-feature /featurename:ServerCoreFonts-NonCritical-Fonts-Support /Source:C:\WindowsSource\ /LimitAccess

Expected behaviour

Results as below for all five font installation.

Deployment Image Servicing and Management tool
Version: 10.0.20348.681

Image Version: 10.0.20348.2340

Enabling feature(s)
[ 0.1% ]
[ 1.1% ]
[====== 10.8% ]
[======= 12.5% ]
[======== 14.1% ]
[========= 15.8% ]
[========== 17.5% ]
[=========== 19.1% ]
[============ 20.8% ]
[============= 22.5% ]
[============= 24.1% ]
[============== 25.8% ]
[=============== 27.5% ]
[================ 29.1% ]
[================= 30.2% ]
[================== 31.4% ]
[================== 32.5% ]
[==========================100.0%==========================]
The operation completed successfully.

Configuration:
Windows 11 as a host machine.
Base Image : Windows Server 2022
Container Engine : Docker
Docker Version : 27.3.1

Additional context
Is there any alternative way of installing these fonts, perhaps a file I can execute within the container?
ISO is huge and wouldn't be ideal for pipelines to be downloading this in every build.

@mancoba-hub mancoba-hub added bug Something isn't working triage New and needs attention labels Jan 24, 2025
Copy link

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.

@ntrappe-msft
Copy link
Contributor

@mancoba-hub Hey, did you try checking out this resource on adding optional font packages? It's the preferred method.

@ntrappe-msft ntrappe-msft removed the triage New and needs attention label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants