diff --git a/website/docs/migrating-from-docker/using-podman-mac-helper.md b/website/docs/migrating-from-docker/using-podman-mac-helper.md index 0a4f9b9e86577..a19c2e85e6388 100644 --- a/website/docs/migrating-from-docker/using-podman-mac-helper.md +++ b/website/docs/migrating-from-docker/using-podman-mac-helper.md @@ -25,32 +25,31 @@ The service redirects `/var/run/docker` to the fixed user-assigned UNIX socket l #### Procedure -- Set up the `podman-mac-helper` service for each user. - Run the command: +1. To set up the `podman-mac-helper` service: run the command in a terminal: - ```sh - sudo podman-mac-helper install - ``` - - For additional install options please run the command: + ```shell-session + sudo podman-mac-helper install + ``` - ```sh - sudo podman-mac-helper install --help - ``` +1. To restart your Podman machine: go to ** Settings > Resources**, and in the Podman tile, click . #### Verification -1. Your tools communicating to the Docker socket, such as [Maven](https://maven.apache.org/) or [Testcontainers](https://www.testcontainers.org/), communicate with Podman without reconfiguration. +1. The Docker socket is a symbolic link for the Podman socket: -2. Use the `podman-mac-helper` tool to run commands. - To run a command with Podman by using the `podman-mac-helper` tool, prefix the command with `podman-mac-helper`. + ```shell-session + $ ls -la /var/run/docker.sock + ``` - Example: +2. The `docker` CLI communicates with the Podman socket. + Therefore this command outputs Podman version rather that Docker version: ```shell-session - $ podman-mac-helper run -it bash + $ DOCKER_HOST=unix:///var/run/docker.sock docker info --format=json | jq -r .ServerVersion ``` +3. Your tools communicating to the Docker socket, such as [Maven](https://maven.apache.org/) or [Testcontainers](https://www.testcontainers.org/), communicate with Podman without reconfiguration. + #### Additional resources - [`podman-mac-helper` source](https://github.com/containers/podman/tree/main/cmd/podman-mac-helper)