Does anyone remember the 1999 science fiction action movie, The Matrix?
Well, what about retrieving the mystery and imagination? Interested?

Let's create a container simulating Neo's machine. I'm using Fedora, so if you're not, adjust your actions accordingly.

First, you have to download a package from the Fedora repository and extract the RPM file:

$ wget https://kojipkgs.fedoraproject.org//packages/cmatrix/1.2a/4.fc30/x86_64/cmatrix-1.2a-4.fc30.x86_64.rpm

$ rpm2cpio cmatrix-1.2a-4.fc30.x86_64.rpm | cpio -id

Then you pull the Red Hat Enterprise Linux 8 Universal Base Image and create the new Matrix container:

$ podman pull registry.access.redhat.com/ubi8/ubi

$ podman run --name matrix -it registry.access.redhat.com/ubi8/ubi /usr/bin/bash

# exit

Now copy the binary into the exited container, and then start and attach the container:

$ podman cp usr/bin/cmatrix matrix:/usr/bin/matrix

$ podman start matrix
$ podman attach matrix

Start the animation : # matrix
Show usage options : # matrix -h

Stop the animation : # q
Leave the container : # exit

Cool, isn't it? The same feature (running rootless podman) will be possible on RHEL soon.

The content of this article was originally posted on The Red Hat Universe.


執筆者紹介

I am running the latest editions of CentOS, Fedora, and Red Hat Enterprise Linux server and workstation operating systems on physical and virtual machines (VM).

My dedicated capabilities and interests are backup solutions & disaster recovery, hardware drivers, infrastructure deployment, storage management, and virtualization.

UI_Icon-Red_Hat-Close-A-Black-RGB

チャンネル別に見る

automation icon

自動化

テクノロジー、チームおよび環境に関する IT 自動化の最新情報

AI icon

AI (人工知能)

お客様が AI ワークロードをどこでも自由に実行することを可能にするプラットフォームについてのアップデート

open hybrid cloud icon

オープン・ハイブリッドクラウド

ハイブリッドクラウドで柔軟に未来を築く方法をご確認ください。

security icon

セキュリティ

環境やテクノロジー全体に及ぶリスクを軽減する方法に関する最新情報

edge icon

エッジコンピューティング

エッジでの運用を単純化するプラットフォームのアップデート

Infrastructure icon

インフラストラクチャ

世界有数のエンタープライズ向け Linux プラットフォームの最新情報

application development icon

アプリケーション

アプリケーションの最も困難な課題に対する Red Hat ソリューションの詳細

Virtualization icon

仮想化

オンプレミスまたは複数クラウドでのワークロードに対応するエンタープライズ仮想化の将来についてご覧ください