chore: Add windows instructions for emulating docker cli (#6066)

* Update emulating-docker-cli-with-podman.md

---------

Signed-off-by: anon <29175880+Moortu@users.noreply.github.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
Co-authored-by: Florent BENOIT <fbenoit@redhat.com>
This commit is contained in:
anon 2024-02-27 10:00:40 +01:00 committed by GitHub
parent daef971467
commit 298b197b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,8 @@ Consider emulating Docker CLI with Podman to migrate transparently to Podman.
- Podman
### Linux / macOS
#### Procedure
1. Create a `/usr/local/bin/docker` script:
@ -49,3 +51,27 @@ Consider emulating Docker CLI with Podman to migrate transparently to Podman.
```shell-session
$ docker run -it docker.io/hello-world
```
### Windows
#### Procedure
1. Create a `C:\Program Files\docker\bin\docker.bat` script:
```batch
@echo off
echo Emulate Docker CLI using podman. <- remove this line to avoid the `Emulate Docker CLI using podman.` message when running the script.
podman %*
```
2. Add C:\Program Files\docker\bin to the SYSTEM/USER environment variable PATH
3. Close all cmd and powershell instances.
#### Verification
- Use the `docker` script to run commands.
Example:
```PowerShell
$ docker run -it docker.io/hello-world
```