Skip to content

Commit

Permalink
website: migration: Fix 2 macOS issues (podman-desktop#7205)
Browse files Browse the repository at this point in the history
* website: migrating: Use /bin/sh instead of /usr/bin/sh

On macOS, only /bin/sh exists.

Signed-off-by: Christophe Fergeau <[email protected]>

* website: migration: Fix CONTAINER_HOST value

This needs an unix:// URI scheme, this is documented in
https://docs.podman.io/en/latest/markdown/podman-remote.1.html#url-value

Signed-off-by: Christophe Fergeau <[email protected]>

---------

Signed-off-by: Christophe Fergeau <[email protected]>
  • Loading branch information
cfergeau authored May 14, 2024
1 parent cfeb275 commit d4e0dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Consider emulating Docker CLI with Podman to migrate transparently to Podman.
1. Create a `/usr/local/bin/docker` script:

```shell
#!/usr/bin/sh
#!/bin/sh
[ -e /etc/containers/nodocker ] || \
echo "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg." >&2
exec podman "$@"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ When you have configured your host to use Podman rather then Docker, consider ve
<TabItem value="mac" label="macOS">

```shell-session
$ CONTAINER_HOST=/var/run/docker.sock podman ps
$ CONTAINER_HOST=unix:///var/run/docker.sock podman ps
```

</TabItem>
<TabItem value="linux" label="Linux">

```shell-session
$ CONTAINER_HOST=/var/run/docker.sock podman ps
$ CONTAINER_HOST=unix:///var/run/docker.sock podman ps
```

</TabItem>
Expand Down

0 comments on commit d4e0dfd

Please sign in to comment.