mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
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:
parent
daef971467
commit
298b197b18
1 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue