Wednesday, March 1, 2023
HomeCloud ComputingHow one can deploy your first container with the Cockpit GUI

How one can deploy your first container with the Cockpit GUI

Learn to use the Cockpit GUI in your first container with this temporary tutorial from skilled Jack Wallen.

In a latest TechRepublic video, Jack Wallen reveals tips on how to deploy your first container utilizing the Cockpit GUI that ships with Crimson Hat Enterprise Linux, AlmaLinux and Rocky Linux. The next is an edited transcript of his tutorial.

First, log in to Cockpit by pointing a browser to the IP handle of the internet hosting server with port 9090 and utilizing credentials with sudo privilege. Click on Podman containers within the left navigation.

Within the ensuing window, click on Create Container. A pop-up will seem with a randomly generated identify. You need to use that identify or sort a brand new identify.

Subsequent, sort the picture you want to use for the container, corresponding to nginx. You may then choose which model of the picture to make use of, corresponding to newest.

To map the ports for the container, click on Integration. On this tab, click on Add Port Mapping. Sort the IP handle of the internet hosting machine, the port you want to be seen outdoors of the container, adopted by the interior port for nginx. When you’ve performed that, click on Create and run. The container will deploy, and it is best to see it listed as Operating.

Let’s say you’re deploying a database and wish to add a quantity for persistent storage. For this, you might go to the Integration tab and click on Add quantity. Choose the host path from the dropdown, after which sort the container path. For instance, for MongoDB, it might be /information/db. Choose an SELinux label, if relevant, after which click on Create and run.

For extra tutorials from Jack Wallen, subscribe to TechRepublic’s YouTube channel How To Make Tech Work — and bear in mind to love this video.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments