{"id":88405,"date":"2023-02-28T19:57:54","date_gmt":"2023-02-28T19:57:54","guid":{"rendered":"https:\/\/www.techrepublic.com\/?p=4043867"},"modified":"2023-02-28T19:57:54","modified_gmt":"2023-02-28T19:57:54","slug":"how-to-deploy-your-first-container-with-the-cockpit-gui","status":"publish","type":"post","link":"https:\/\/cloudnewshub.com\/?p=88405","title":{"rendered":"How to deploy your first container with the Cockpit GUI"},"content":{"rendered":"<div id>\n<p> Learn how to use the Cockpit GUI for your first container with this brief tutorial from expert Jack Wallen. <\/p>\n<\/div>\n<div id>\n<figure id=\"attachment_4043871\" aria-describedby=\"caption-attachment-4043871\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-article wp-image-4043871\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2023\/02\/how-to-deploy-your-first-container-with-the-cockpit-gui.png\" alt width=\"770\" height=\"433\"><figcaption id=\"caption-attachment-4043871\" class=\"wp-caption-text\">Image: TechRepublic<\/figcaption><\/figure>\n<p>In a recent TechRepublic video, Jack Wallen shows how to deploy your first container using the Cockpit GUI that ships with Red Hat Enterprise Linux, AlmaLinux and Rocky Linux. The following is an edited transcript of his tutorial.<\/p>\n<p>First, log in to Cockpit by pointing a browser to the IP address of the hosting server with port 9090 and using credentials with sudo privilege. Click Podman containers in the left navigation.<\/p>\n<p>In the resulting window, click Create Container. A pop-up will appear with a randomly generated name. You can use that name or type a new name.<\/p>\n<p>Next, type the image you wish to use for the container, such as nginx. You can then select which version of the image to use, such as latest.<\/p>\n<p>To map the ports for the container, click Integration. In this tab, click Add Port Mapping. Type the IP address of the hosting machine, the port you wish to be visible outside of the container, followed by the internal port for nginx. Once you\u2019ve done that, click Create and run. The container will deploy, and you should see it listed as Running.<\/p>\n<p>Let\u2019s say you\u2019re deploying a database and want to add a volume for persistent storage. For this, you could go to the Integration tab and click Add volume. Select the host path from the dropdown, and then type the container path. For example, for MongoDB, it would be \/data\/db. Select an SELinux label, if applicable, and then click Create and run.<\/p>\n<p>For more tutorials from Jack Wallen, <a href=\"https:\/\/www.youtube.com\/channel\/UCKyMiy1zmJ7aZ8aP6DLZLIA\" target=\"_blank\" rel=\"noopener noreferrer\">subscribe to TechRepublic\u2019s YouTube channel How To Make Tech Work<\/a> \u2014 and remember to like this video.<\/p>\n<p> <!-- default newsletter at the end --> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use the Cockpit GUI for your first container with this brief tutorial from expert Jack Wallen. Image: TechRepublic In a recent TechRepublic video, Jack Wallen shows how to deploy your first container using the Cockpit GUI that ships with Red Hat Enterprise Linux, AlmaLinux and Rocky Linux. The following is an edited [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":88406,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,783,315,177],"tags":[],"class_list":["post-88405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-cloudsync","category-containers","category-open-source"],"_links":{"self":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/88405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88405"}],"version-history":[{"count":0,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/88405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/media\/88406"}],"wp:attachment":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}