Learn how to use the Cockpit GUI for your first container with this short tutorial from expert Jack Wallen.
In a recent TechRepublic video, Jack Wallen demonstrates how to release your very first container utilizing the Cockpit GUI that ships with Red Hat Enterprise Linux, AlmaLinux and Rocky Linux. The following is a modified transcript of his tutorial.
Initially, log in to Cockpit by pointing a browser to the IP address of the hosting server with port 9090 and using qualifications with sudo advantage. Click Podman containers in the left navigation.
In the resulting window, click Develop Container. A pop-up will appear with an arbitrarily generated name. You can utilize that name or type a brand-new name.
Next, type the image you want to utilize for the container, such as nginx. You can then select which variation of the image to utilize, such as most current.
To map the ports for the container, click Combination. In this tab, click Include Port Mapping. Type the IP address of the hosting machine, the port you wish to be noticeable beyond the container, followed by the internal port for nginx. Once you have actually done that, click Create and run. The container will deploy, and you ought to see it noted as Running.
Let’s say you’re releasing a database and wish to include a volume for persistent storage. For this, you might go to the Integration tab and click Add volume. Select the host path from the dropdown, and after that type the container course. For instance, for MongoDB, it would be/ data/db. Select an SELinux label, if appropriate, and after that click Develop and run.
For more tutorials from Jack Wallen, subscribe to TechRepublic’s YouTube channel How To Make Tech Work— and remember to like this video.