{"id":22010,"date":"2023-10-01T15:25:46","date_gmt":"2023-10-01T15:25:46","guid":{"rendered":"https:\/\/linuxways.net\/?p=22010"},"modified":"2023-10-01T15:25:46","modified_gmt":"2023-10-01T15:25:46","slug":"how-to-install-and-use-docker-containers-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-and-use-docker-containers-on-ubuntu-22-04\/","title":{"rendered":"How to Install and Use Docker Containers on Ubuntu 22.04"},"content":{"rendered":"<p>With Docker, you can build applications, test the applications, and then deploy the applications easily and efficiently. The docker image executes code in a container. The code is encapsulated in a container along with packages and libraries for the code to run in any environment. With dockers in Ubuntu, new software versions and features can be added to production easily and efficiently.<\/p>\n<p>This article explains how you can install and use Docker Containers on Ubuntu.<\/p>\n<h2><strong>Pre-requisites<\/strong><\/h2>\n<ul>\n<li>4GB RAM for Virtual Machines<\/li>\n<li>64-bit Kernel<\/li>\n<li>GNOME Desktop Environment<\/li>\n<\/ul>\n<h2><strong>How to Install and Use Docker Containers on Ubuntu 22.04<\/strong><\/h2>\n<p>Docker containers can be used on Ubuntu for deploying, scaling, and testing applications. With the terminal in Ubuntu, Docker can easily be installed by following the steps explained below.<\/p>\n<h3><strong>Step 1: Update &amp; Upgrade Existing Packages<\/strong><\/h3>\n<p>Use the Update and Upgrade Commands to make your Ubuntu system Up-to-date with the latest packages. The update command will check for available updates:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get update<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"211\" class=\"wp-image-22011\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-1.png 647w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-1-300x98.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>To upgrade the packages, the command used is:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get upgrade<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"269\" class=\"wp-image-22012\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-2.png 654w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-2-300x123.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/p>\n<h3><strong>Step 2: Download Docker<\/strong><\/h3>\n<p>Before installing Docker, ensure the \u201c<strong>ca-certificates<\/strong>\u201d, \u201c<strong>curl<\/strong>\u201d, and \u201c<strong>software-properties-common<\/strong>\u201d packages are already installed using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> apt-transport-https ca-certificates curl software-properties-common<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"395\" class=\"wp-image-22013\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-3.png 1008w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-3-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-3-768x301.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/p>\n<p>Now, add the Docker <strong>GPG Key <\/strong>to your system. The GPG Key will ensure the authenticity of the Docker Packages when being installed.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-fsSL<\/span> https:<span class=\"sy0\">\/\/<\/span>download.docker.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>ubuntu<span class=\"sy0\">\/<\/span>gpg <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> gpg <span class=\"re5\">--dearmor<\/span> <span class=\"re5\">-o<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>docker-archive-keyring.gpg<\/div><\/div>\n<p>The command line moves to the next line indicating the GPG Key was added:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"63\" class=\"wp-image-22014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-4.png 1009w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-4-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-4-768x48.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/p>\n<p>After adding the GPG Key, add the Docker Repository using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">echo<\/span> \\ <span class=\"st0\">&quot;deb [arch=<span class=\"es4\">$(dpkg --print-architecture)<\/span> signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\ <span class=\"es4\">$(lsb_release -cs)<\/span> stable&quot;<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list.d<span class=\"sy0\">\/<\/span>docker.list <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>null<\/div><\/div>\n<p>The command line moves to the next line indicating the repository was added:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"78\" class=\"wp-image-22015\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-5.png 1007w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-5-300x23.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-5-768x59.png 768w\" sizes=\"auto, (max-width: 1007px) 100vw, 1007px\" \/><\/p>\n<p>Update the Ubuntu system again to add the changes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"257\" class=\"wp-image-22016\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-6.png 1018w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-6-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-6-768x194.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p>Once the system updates, verify the available Docker Versions using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">apt-cache policy<\/span> docker-ce<\/div><\/div>\n<p>As you can see the Docker is not installed yet:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"242\" class=\"wp-image-22017\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-7.png 1004w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-7-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-7-768x185.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/p>\n<p>Now install Docker using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> docker-ce<\/div><\/div>\n<p>Confirmation will be asked during the installation, Continue by entering \u201cY\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"403\" class=\"wp-image-22018\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-8.png 1003w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-8-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-8-768x309.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/p>\n<p>Once downloaded, check if the Docker is running using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl status docker<\/div><\/div>\n<p>You will see the Docker is active and is Running:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"421\" class=\"wp-image-22019\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-9.png 1009w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-9-300x125.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-9-768x320.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/p>\n<p>Now, to view information about Docker installed on your Ubuntu system, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker info<\/div><\/div>\n<p>This will display the version and additional information about the Docker installed on your Ubuntu system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"333\" class=\"wp-image-22020\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-10.png 1006w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-10-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-10-768x254.png 768w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/p>\n<h3><strong>Step 3: Using Docker Images<\/strong><\/h3>\n<p>Docker containers are made of Docker Images and you can use Docker by running commands with arguments having the syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"sy0\">&lt;&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span>option<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;&gt;<\/span> <span class=\"sy0\">&lt;&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw3\">command<\/span><span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;&gt;<\/span> <span class=\"sy0\">&lt;&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span>arguments<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;&gt;<\/span><\/div><\/div>\n<p>The Docker Images are available on Docker Hub and by using the \u201csearch\u201d command with docker, images can be searched on the Docker Hub. In our case, to search for \u201cubuntu\u201d related images, the command used is:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> docker search ubuntu<\/div><\/div>\n<p>The Official Column with \u201c[OK]\u201d means the images are made officially by the company:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"396\" class=\"wp-image-22021\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-11.png 1004w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-11-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-11-768x303.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/p>\n<p>The \u201cubuntu\u201d image is present and can now be downloaded using the \u201cpull\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> docker pull ubuntu<\/div><\/div>\n<p>This will download the \u201cubuntu\u201d image from the Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"93\" class=\"wp-image-22022\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-12.png 1148w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-12-300x24.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-12-1024x83.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-12-768x62.png 768w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/p>\n<p>Once downloaded, the image will be extracted and can be verified using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> docker images<\/div><\/div>\n<p>The images downloaded and extracted will be shown, in our case, \u201cubuntu\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"76\" class=\"wp-image-22023\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-13.png 1144w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-13-300x20.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-13-1024x68.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-13-768x51.png 768w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/p>\n<h3><strong>Step 4: Running Docker Container<\/strong><\/h3>\n<p>To run a Docker Container, the \u201crun\u201d command is used and the container should be accessed before running it. The \u201ci\u201d and \u201ct\u201d switches in combination provide us the ability to access containers. Considering our previous steps where we installed the \u201cubuntu\u201d docker image, can be used as a container. To use the \u201cubuntu\u201d image as a container, the command used is:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> docker run <span class=\"re5\">-it<\/span> ubuntu<\/div><\/div>\n<p>The command line will change to the container ID:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1142\" height=\"41\" class=\"wp-image-22024\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-14.png 1142w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-14-300x11.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-14-1024x37.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-14-768x28.png 768w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/p>\n<p>The \u201cc9a64 a410738\u201d is the Container ID of the \u201cubuntu\u201d container. Inside the container, any command can be executed as well and any program can be installed. Before installing any packages inside the container, ensure to update the container using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1140\" height=\"416\" class=\"wp-image-22025\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-15.png 1140w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-15-300x109.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-15-1024x374.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-15-768x280.png 768w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p>To install \u201cvlc\u201d inside the container, the command used will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt <span class=\"kw2\">install<\/span> vlc<\/div><\/div>\n<p>This will start downloading \u201cvlc\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1143\" height=\"451\" class=\"wp-image-22026\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-16.png 1143w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-16-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-16-1024x404.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-16-768x303.png 768w\" sizes=\"auto, (max-width: 1143px) 100vw, 1143px\" \/><\/p>\n<p>Once downloaded and installed, the command prompt or terminal will inform the successful installation:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"324\" class=\"wp-image-22027\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-17.png 1144w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-17-300x85.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-17-1024x290.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-17-768x218.png 768w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/p>\n<p>To exit from the Container, use the \u201cexit\u201d command in the command line:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">exit<\/span><\/div><\/div>\n<p>This will exit the container and the command line will confirm by showing the regular user in the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1149\" height=\"63\" class=\"wp-image-22028\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-18.png 1149w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-18-300x16.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-18-1024x56.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-18-768x42.png 768w\" sizes=\"auto, (max-width: 1149px) 100vw, 1149px\" \/><\/p>\n<h2><strong>Bonus Step: Managing Docker Containers<\/strong><\/h2>\n<p>To view the active and inactive docker containers running on your Ubuntu system, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> docker <span class=\"kw2\">ps<\/span> <span class=\"re5\">-a<\/span><\/div><\/div>\n<p>All containers are displayed in the CLI, the status column displays if the container is active or inactive:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1137\" height=\"101\" class=\"wp-image-22029\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-19.png 1137w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-19-300x27.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-19-1024x91.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22010-19-768x68.png 768w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/p>\n<p>This is how you can install, create, and manage a Docket Container on Ubuntu.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Docker Containers can deliver efficient software in Ubuntu and can be installed by adding the Docker GPG Key, adding the Docker Repository, and then installing the Docker Engine. Once installed the status can be checked and with the \u201crun\u201d command, Containers can be used. This article explained the installation and creation of a Docker Image Container.<\/p>","protected":false},"excerpt":{"rendered":"<p>Docker can be installed by adding the Docker GPG Key, adding the Docker Repository, downloading the Image, and then installing the Docker Engine. <\/p>","protected":false},"author":110,"featured_media":22030,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=22010"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/22030"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=22010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=22010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=22010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}