Learn use the Cockpit GUI to your first container with this transient tutorial from professional Jack Wallen.
In a current TechRepublic video, Jack Wallen reveals deploy your first container utilizing the Cockpit GUI that ships with Red Hat Enterprise Linux, AlmaLinux and Rocky Linux. The following is an edited transcript of his tutorial.
First, log in to Cockpit by pointing a browser to the IP deal with of the internet hosting server with port 9090 and utilizing credentials with sudo privilege. Click Podman containers within the left navigation.
In the ensuing window, click on Create Container. A pop-up will seem with a randomly generated title. You can use that title or kind a brand new title.
Next, kind the picture you want to use for the container, reminiscent of nginx. You can then choose which model of the picture to make use of, reminiscent of newest.
To map the ports for the container, click on Integration. In this tab, click on Add Port Mapping. Type the IP deal with of the internet hosting machine, the port you want to be seen outdoors of the container, adopted by the inner port for nginx. Once you’ve accomplished that, click on Create and run. The container will deploy, and you must see it listed as Running.
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. Select the host path from the dropdown, after which kind the container path. For instance, for MongoDB, it could be /knowledge/db. Select 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.