{"id":3254,"date":"2026-02-10T05:51:11","date_gmt":"2026-02-10T05:51:11","guid":{"rendered":"https:\/\/muhammadsoliman.com\/?p=3254"},"modified":"2026-02-10T05:53:11","modified_gmt":"2026-02-10T05:53:11","slug":"how-to-install-docker-and-docker-composer-on-almalinux-linux","status":"publish","type":"post","link":"https:\/\/muhammadsoliman.com\/index.php\/2026\/02\/10\/how-to-install-docker-and-docker-composer-on-almalinux-linux\/","title":{"rendered":"How to install Docker and docker composer on almalinux \/ linux"},"content":{"rendered":"\n<p>Here is a great tutorial to install docker on your linux server (Almalinux)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0e 1. Confirm OS (optional but good)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/os-release\n<\/code><\/pre>\n\n\n\n<p>You should see:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AlmaLinux\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf9 2. Remove Any Old Docker Versions (Safe)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf remove -y docker \\\n  docker-client \\\n  docker-client-latest \\\n  docker-common \\\n  docker-latest \\\n  docker-latest-logrotate \\\n  docker-logrotate \\\n  docker-engine\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce6 3. Install Required Tools<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf -y install dnf-plugins-core curl\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd10 4. Add Docker\u2019s Official Repository (RHEL-Compatible)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf config-manager \\\n  --add-repo \\\n  https:&#47;&#47;download.docker.com\/linux\/centos\/docker-ce.repo\n<\/code><\/pre>\n\n\n\n<p>\u2714\ufe0f This repo <strong>officially supports AlmaLinux<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udc33 5. Install Docker Engine + Compose Plugin<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y \\\n  docker-ce \\\n  docker-ce-cli \\\n  containerd.io \\\n  docker-buildx-plugin \\\n  docker-compose-plugin\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u25b6\ufe0f 6. Start &amp; Enable Docker<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start docker\nsudo systemctl enable docker\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea 7. Verify Installation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Docker version<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>docker -v\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Docker Compose (correct command)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>docker compose version\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Runtime test<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run hello-world\n<\/code><\/pre>\n\n\n\n<p>\u2714\ufe0f If you see <em>Hello from Docker!<\/em> \u2014 it\u2019s working.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udc64 8. Run Docker Without <code>sudo<\/code> (Recommended)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -aG docker $USER\nnewgrp docker\n<\/code><\/pre>\n\n\n\n<p>(Log out &amp; back in if needed)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"cleaning-up\">Cleaning Up<a href=\"https:\/\/technotim.com\/posts\/docker-compose-install\/#cleaning-up\" target=\"_blank\" rel=\"noopener\"><\/a><\/h2>\n\n\n\n<p>If you need to uninstall Docker, run the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a great tutorial to install docker on your linux server (Almalinux) \ud83d\udd0e 1. Confirm&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3255,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"taxonomy_info":{"category":[{"value":1,"label":"Uncategorized"}]},"featured_image_src_large":["https:\/\/muhammadsoliman.com\/wp-content\/uploads\/2026\/02\/image-1024x1024-1.png",1024,1024,false],"author_info":{"display_name":"Muhammad Soliman","author_link":"https:\/\/muhammadsoliman.com\/author\/muhmmad-soliman\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Uncategorized","slug":"uncategorized","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":2,"filter":"raw","cat_ID":1,"category_count":2,"category_description":"","cat_name":"Uncategorized","category_nicename":"uncategorized","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts\/3254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/comments?post=3254"}],"version-history":[{"count":0,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/posts\/3254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/media\/3255"}],"wp:attachment":[{"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/media?parent=3254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/categories?post=3254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muhammadsoliman.com\/index.php\/wp-json\/wp\/v2\/tags?post=3254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}