Skip to content

Commit 6ad8af5

Browse files
authored
Merge pull request #121 from infosiftr/win2025
Add Windows (Nano) Server 2025 variants
2 parents 2cd5514 + 08987c7 commit 6ad8af5

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $(C_TARGETS): hello.c $(MUSL_GCC)
3131
$(STRIP) --strip-all --remove-section=.comment '$@'
3232
@if [ '$(TARGET_ARCH)' = 'amd64' ]; then \
3333
for winVariant in \
34+
nanoserver-ltsc2025 \
3435
nanoserver-ltsc2022 \
3536
nanoserver-1809 \
3637
; do \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
2+
COPY hello.txt C:
3+
CMD ["cmd", "/C", "type C:\\hello.txt"]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Hello from Docker!
3+
This message shows that your installation appears to be working correctly.
4+
5+
To generate this message, Docker took the following steps:
6+
1. The Docker client contacted the Docker daemon.
7+
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
8+
(windows-amd64, nanoserver-ltsc2025)
9+
3. The Docker daemon created a new container from that image which runs the
10+
executable that produces the output you are currently reading.
11+
4. The Docker daemon streamed that output to the Docker client, which sent it
12+
to your terminal.
13+
14+
To try something more ambitious, you can run a Windows Server container with:
15+
PS C:\> docker run -it mcr.microsoft.com/windows/servercore:ltsc2025 powershell
16+
17+
Share images, automate workflows, and more with a free Docker ID:
18+
https://hub.docker.com/
19+
20+
For more examples and ideas, visit:
21+
https://docs.docker.com/get-started/
22+

generate-stackbrew-library.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ for arch in "${arches[@]}"; do
6363
done
6464

6565
for winVariant in \
66+
nanoserver-ltsc2025 \
6667
nanoserver-ltsc2022 \
6768
nanoserver-1809 \
6869
; do

0 commit comments

Comments
 (0)