The command below will register interpreters to run binaries belonging to specific architecture.

docker run --rm --privileged multiarch/qemu-user-static:register

Verify.

cat /proc/sys/fs/binfmt_misc/ppc64le

Any ppc64le binary (magic - 7f454c460....) will be executed with /usr/bin/qemu-ppc64le-static.

Step 2 - Multiarch Base Image

Since 'docker build' cannot mount host volumes, we'll be using multiarch images from Dockerhub
which packages qemu-ppc64le-static along with the base image.
More details on multiarch docker images is available here - https://eyskens.me/multiarch-docker-images/

The below command will run the multiarch image for ppc64le and display /usr/bin/qemu-ppc64le-static

Debugging Scenarios

Help

Katacoda offerings an Interactive Learning Environment for Developers. This course uses a command line and a pre-configured sandboxed environment for you to use. Below are useful commands when working with the environment.

cd <directory>

Change directory

ls

List directory

echo 'contents' > <file>

Write contents to a file

cat <file>

Output contents of file

Vim

In the case of certain exercises you will be required to edit files or text. The best approach is with Vim. Vim has two different modes, one for entering commands (Command Mode) and the other for entering text (Insert Mode). You need to switch between these two modes based on what you want to do. The basic commands are: