Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c authored Nov 7, 2024
1 parent 7424dbb commit 9da5ce2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ and ``--tmp-outdir-prefix`` to somewhere under ``/Users``::
Docker default platform on macOS with Apple Silicon
===================================================

If macOS cwltool users want to run tools/workflows that reference software containers that only support amd64 (64-bit x86), but they have an Apple Silicon (aarch64/arm64) CPU,
If macOS users want to run CWL tools/workflows using ``cwltool`` with Docker and their software containers only have support for amd64 (64-bit x86) CPUs, but they have an Apple Silicon (aarch64/arm64) CPU,
they run into the error:

``WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested``.
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested.

To circumvent this, export the following environment variable before executing the `cwltool`:
To fix this, export the following environment variable before executing `cwltool`:

``export DOCKER_DEFAULT_PLATFORM=linux/amd64``

To automatically enable this variable in new shells, this can be added to the respective shell profiles (e.g. ``~/.zshrc``, ``~/.bash_profile``).
To automically have this variable set in the future, add the same command to ones respective shell profile (e.g. ``~/.zshrc``, ``~/.bash_profile``).


Using uDocker
Expand Down

0 comments on commit 9da5ce2

Please sign in to comment.