@@ -224,7 +224,9 @@ Racker
224224The ``racker `` program aims to resemble the semantics of Docker by providing a
225225command line interface compatible with the ``docker `` command.
226226
227- Linux examples::
227+ Linux
228+ -----
229+ ::
228230
229231 # Invoke the vanilla Docker `hello-world` image.
230232 # FIXME: Does not work yet.
@@ -256,47 +258,19 @@ Linux examples::
256258 time echo "hello world" | racker run -it --rm fedora:37 cat /dev/stdin > hello
257259 cat hello
258260
259- Windows examples::
260-
261- # Windows OS images, mostly LTSC (Long-Term Servicing Channel).
262- # Please note the download sizes.
263- # Nanoserver: 250 MB, Servercore: 6 GB, Servercore with Java: 7 GB, Windows: 15 GB
264-
265- # Launch an interactive command prompt (cmd, PowerShell or Bash).
266- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2016-amd64 cmd
267- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2019-amd64 powershell
268- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2022-amd64 bash
269-
270- # Launch a single command.
271- racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2019-amd64 -- 'powershell -Command {echo "Hello, world."}'
272- racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2019-amd64 'sh -c "echo Hello, world."'
273-
274- # Inquire system information.
275- racker run --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2019-amd64 wmic os get caption
276- racker run --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2019-amd64 'powershell -Command Get-ComputerInfo'
277-
278- # Use stdin and stdout, with time keeping.
279- time racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/nanoserver:1809-amd64 cmd /C echo "Hello, world." > hello
280- cat hello
261+ Windows
262+ -------
281263
282- # Invoke a Java command prompt (JShell) with different Java versions.
283- racker run -it --rm --platform=windows/amd64 openjdk:18-windowsservercore-1809 jshell
284- racker run -it --rm --platform=windows/amd64 openjdk:19-windowsservercore-ltsc2022 jshell
285- racker run -it --rm --platform=windows/amd64 eclipse-temurin:18-jdk jshell
286- System.out.println("OS: " + System.getProperty("os.name") + ", version " + System.getProperty("os.version"))
287- System.out.println("Java: " + System.getProperty("java.vendor") + ", version " + System.getProperty("java.version"))
288- /exit
264+ An example of a basic command line invocation should get you started,
265+ especially if you are familiar with the ``docker `` command::
289266
290- # Windows Nano Server.
291- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows/nanoserver:1809-amd64 cmd
292- racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/nanoserver:1809-amd64 cmd /C echo Hello, world.
293- racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/nanoserver:ltsc2022-amd64 cmd /C echo Hello, world.
294- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/powershell:nanoserver-ltsc2022 pwsh
267+ racker --verbose run --rm --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2022 -- wmic os get caption
295268
296- # Full Windows.
297- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows:1809-amd64 cmd
298- racker --verbose run -it --rm --platform=windows/amd64 mcr.microsoft.com/windows:ltsc2022-amd64 cmd
269+ Caption
270+ Microsoft Windows Server 2022 Datacenter
299271
272+ More extensive information, including many examples, can be found at the
273+ `Racker Windows backend `_ documentation.
300274
301275
302276Postroj
@@ -483,6 +457,7 @@ Troubleshooting
483457.. _Packer : https://www.packer.io/
484458.. _Podman : https://podman.io/
485459.. _Racker sandbox installation : https://github.com/cicerops/racker/blob/main/doc/sandbox.rst
460+ .. _Racker Windows backend : https://github.com/cicerops/racker/blob/main/doc/winrunner.rst
486461.. _skopeo : https://github.com/containers/skopeo
487462.. _systemd : https://www.freedesktop.org/wiki/Software/systemd/
488463.. _systemd-nspawn : https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
0 commit comments