website: migration: Fix 2 macOS issues (#7205)

* website: migrating: Use /bin/sh instead of /usr/bin/sh

On macOS, only /bin/sh exists.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>

* 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 <cfergeau@redhat.com>

---------

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Christophe Fergeau 2024-05-14 14:11:50 +02:00 committed by GitHub
parent cfeb275467
commit d4e0dfdb3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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 "$@"

View file

@ -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>