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.
About the author
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.
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit