订阅内容

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.

Read full bio
UI_Icon-Red_Hat-Close-A-Black-RGB

按频道浏览

automation icon

自动化

有关技术、团队和环境 IT 自动化的最新信息

AI icon

人工智能

平台更新使客户可以在任何地方运行人工智能工作负载

open hybrid cloud icon

开放混合云

了解我们如何利用混合云构建更灵活的未来

security icon

安全防护

有关我们如何跨环境和技术减少风险的最新信息

edge icon

边缘计算

简化边缘运维的平台更新

Infrastructure icon

基础架构

全球领先企业 Linux 平台的最新动态

application development icon

应用领域

我们针对最严峻的应用挑战的解决方案

Original series icon

原创节目

关于企业技术领域的创客和领导者们有趣的故事