{"id":25317,"date":"2024-02-27T06:57:19","date_gmt":"2024-02-27T06:57:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=25317"},"modified":"2024-02-27T06:58:21","modified_gmt":"2024-02-27T06:58:21","slug":"install-docker-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/install-docker-kali-linux\/","title":{"rendered":"How to Install Docker on Kali Linux | 4 Ways"},"content":{"rendered":"<p><strong>Docker <\/strong>is a popular opens-source containerization platform that has become an invaluable tool for developers and security professionals. It has the ability to package applications with all their dependencies into a lightweight and portable container, thus helps streamline the development workflows as well as simplifies the complex environments. Installing <strong>docker <\/strong>on the Kali Linux system offers several advantages, such as resource constraints, enabling quick and easy deployment, portability, simplified vulnerability management and more.<\/p>\n<p>In this guide, you will learn:<\/p>\n<ul>\n<li><a href=\"#post-25317-_dgm2ae8mvl1u\"><strong>How to Install Docker on Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-25317-_uoe1dhrlc7gx\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-25317-_dgm2ae8mvl1u\"><\/a><strong>How to Install Docker on Kali Linux<\/strong><\/h2>\n<p>You can install <strong>docker <\/strong>on Kali Linux from:<\/p>\n<ul>\n<li><a href=\"#post-25317-_7qix6o2eeutz\"><strong>Apt Source Repository<\/strong><\/a><\/li>\n<li><a href=\"#post-25317-_zh8h2sd3uce\"><strong>docker-ce Repository<\/strong><\/a><\/li>\n<li><a href=\"#post-25317-_p99vlp4pvrg\"><strong>Script<\/strong><\/a><\/li>\n<li><a href=\"#post-25317-_3iqhj8z9yf7y\"><strong>Snap Store<\/strong><\/a><\/li>\n<\/ul>\n<h3><a id=\"post-25317-_7qix6o2eeutz\"><\/a><strong>How to Install Docker on Kali Linux from Apt Source Repository<\/strong><\/h3>\n<p>The Kali Linux official apt repository includes the <strong>docker.io<\/strong> package provided by Debian that installs the <strong>docker utility<\/strong> on the system. However, the <strong>docker <\/strong>package installed from the apt source repository won\u2019t be the update to date version. If you wish to use <strong>docker <\/strong>related commands on Kali Linux, you can install the <strong>docker.io <\/strong>on your system from below-given 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.io <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"337\" class=\"wp-image-25337\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-1.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-1-300x132.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/p>\n<p>Once installed, check the <strong>docker <\/strong>installation on Kali Linux from the below-given command to ensure it is successfully installed on the system.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"150\" class=\"wp-image-25342\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-2.png 772w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-2-300x58.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-2-768x149.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<p><strong>Note: <\/strong>If you wish to remove <strong>docker<\/strong> from Kali Linux, simply use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove docker.io <span class=\"re5\">-y<\/span><\/div><\/div>\n<h3><a id=\"post-25317-_b0jhcip33zet\"><\/a><strong><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"334\" class=\"wp-image-25353\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-3.png 773w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-3-300x130.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-3-768x332.png 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/strong><\/h3>\n<h3><a id=\"post-25317-_zh8h2sd3uce\"><\/a><strong>How to Install Docker on Kali Linux by from docker-ce Repository <\/strong><\/h3>\n<p>You can also add a <strong>docker<\/strong> repository for <strong>docker-ce<\/strong> package on your Kali Linux system and install the latest version of <strong>docker <\/strong>on your system. Follow the below-given steps to install <strong>docker<\/strong> from the <strong>docker-ce<\/strong> repository on Kali Linux:<\/p>\n<h3><a id=\"post-25317-_yend6wz9jt29\"><\/a><strong>Step 1: Add GPG Key<\/strong><\/h3>\n<p>First, you have to add the GPG key to Kali Linux system to ensure the authenticity of <strong>docker-ce <\/strong>repository, it can be done from the following command:<\/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>debian<span class=\"sy0\">\/<\/span>gpg <span class=\"sy0\">|<\/span><br \/>\n<br \/>\n<span class=\"kw2\">sudo<\/span> gpg <span class=\"re5\">--dearmor<\/span> <span class=\"re5\">-o<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>trusted.gpg.d<span class=\"sy0\">\/<\/span>docker-ce-archive-keyring.gpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"157\" class=\"wp-image-25361\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-4.png 772w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-4-300x61.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-4-768x156.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<h3><a id=\"post-25317-_p8e4lnnoczbu\"><\/a><strong>Step 2: Add docker-ce Repository <\/strong><\/h3>\n<p>Now, add the <strong>docker-ce<\/strong> repository to Kali Linux apt repository list using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">printf<\/span> <span class=\"st_h\">'%s\\n'<\/span> <span class=\"st0\">&quot;deb https:\/\/download.docker.com\/linux\/debian bullseye stable&quot;<\/span> <span class=\"sy0\">|<\/span><br \/>\n<br \/>\n<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-ce.list<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"182\" class=\"wp-image-25372\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-5.png 773w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-5-300x71.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-5-768x181.png 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/strong><\/p>\n<h3><a id=\"post-25317-_be0oy3o799nr\"><\/a><strong>Step 3: Update Kali Linux Repository<\/strong><\/h3>\n<p>You must update Kali Linux repository using the following<strong> update<\/strong> command so that the<strong> docker-ce <\/strong>repository will be added to the repository list successfully:<\/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=\"769\" height=\"266\" class=\"wp-image-25389\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-6.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-6-300x104.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<h3><a id=\"post-25317-_fet1pysh7v84\"><\/a><strong>Step 4: Install docker-ce Packages on Kali Linux<\/strong><\/h3>\n<p>After updating the Kali Linux repository, you can install <strong>docker-ce<\/strong> on your system with related packages for <strong>docker<\/strong> installation through command provided below:<\/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 docker-ce-cli containerd.io <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"278\" class=\"wp-image-25407\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-7.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-7-300x108.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/strong><\/p>\n<h3><a id=\"post-25317-_65pz16ci0w2s\"><\/a><strong>Step 5: Confirm Docker Installation on Kali Linux<\/strong><\/h3>\n<p>To ensure <strong>docker<\/strong> latest version is installed on Kali Linux, use the below-mentioned command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"147\" class=\"wp-image-25415\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-8.png 772w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-8-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-8-768x146.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<p><strong>Note:<\/strong> You can remove <strong>docker <\/strong>from Kali Linux installed through <strong>docker-ce<\/strong> repository by running the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove docker-ce docker-ce-cli containerd.io <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>Further, you can also remove the<strong> docker-ce<\/strong> repository by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list.d<span class=\"sy0\">\/<\/span>docker-ce.list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"148\" class=\"wp-image-25422\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-9.png 775w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-9-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-9-768x147.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\n<h3><a id=\"post-25317-_p99vlp4pvrg\"><\/a><strong>How to Install Docker on Kali Linux from Script<\/strong><\/h3>\n<p>There is also a built-in <strong>docker <\/strong>script for Kali Linux on GitHub that makes the <strong>docker<\/strong> installation simple and straightforward. The above two methods are recommended to install <strong>docker <\/strong>on Kali Linux, however, if you don\u2019t like those methods, you can use the script to install <strong>docker <\/strong>on Kali Linux. For installing <strong>docker <\/strong>on Kali Linux from script, use the following steps:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 1: Download Docker on Kali Source File<\/strong><\/p>\n<p>First, download the <strong>docker <\/strong>on Kali source file from GitHub website using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git clone<\/span> https:<span class=\"sy0\">\/\/<\/span>github.com<span class=\"sy0\">\/<\/span>zfpsystems<span class=\"sy0\">\/<\/span>docker-on-kali<\/div><\/div>\n<h3><a id=\"post-25317-_ln220wux9xwe\"><\/a><strong><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"160\" class=\"wp-image-25432\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-10.png 714w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-10-300x67.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/strong><\/h3>\n<h3><a id=\"post-25317-_4zi2auhw62z5\"><\/a><strong>Step 2: Open Docker on Kali Directory<\/strong><\/h3>\n<p>Now, navigate to the docker on Kali source directory using the cd command followed by the directory name, which is <strong>docker-on-kal<\/strong>i:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">cd<\/span> docker-on-kali<\/div><\/div>\n<h3><a id=\"post-25317-_2juyw0pns8ou\"><\/a><strong>Step 3: Run Docker Script File<\/strong><\/h3>\n<p>Within this directory, run the script file on Kali Linux using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>install-docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"279\" class=\"wp-image-25437\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-11.png 704w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-11-300x119.png 300w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/p>\n<p>The script file will run and install <strong>docker<\/strong> with requires dependencies and libraries needed to run <strong>docker <\/strong>on your Kali Linux system.<\/p>\n<h3><a id=\"post-25317-_8mnfs35z8hwi\"><\/a><strong>Step 4: Confirm Docker Installation<\/strong><\/h3>\n<p>After completing the<strong> docker<\/strong> installation, you can confirm whether it is successfully installed on Kali Linux by running the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--version<\/span><\/div><\/div>\n<h3><a id=\"post-25317-_gz1he5jyjpfq\"><\/a><strong><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"96\" class=\"wp-image-25443\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-12.png 702w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-12-300x41.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/strong><\/h3>\n<p><a id=\"post-25317-_osmd41ldcjvk\"><\/a><strong>Note: <\/strong>You can remove <strong>docker <\/strong>from Kali Linux installed through the script method by removing the installation folder of<strong> docker <\/strong>using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"123\" class=\"wp-image-25448\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-13.png 708w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-13-300x52.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<h3><a id=\"post-25317-_3iqhj8z9yf7y\"><\/a><strong>How to Install Docker on Kali Linux from Snap Store<\/strong><\/h3>\n<p>You can also install <strong>docker<\/strong> on Kali Linux from Snap Store (an independent package manager), it can be done from the following steps:<\/p>\n<h3><a id=\"post-25317-_yswk03e0bjff\"><\/a><strong>Step 1: Install Snap Daemon on Kali Linux<\/strong><\/h3>\n<p>First, install Snap daemon on Kali Linux from the apt command provided below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> snapd -y<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"298\" class=\"wp-image-25453\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-14.png 709w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-14-300x126.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/p>\n<h3><a id=\"post-25317-_acbo8mvbe59m\"><\/a><strong>Step 2: Enable Snap Daemon and its Services<\/strong><\/h3>\n<p>Now, enable the Snap daemon and its associated service called <strong>snapd.apparmor <\/strong>on Kali Linux using the command given below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> <span class=\"re5\">--now<\/span> snapd snapd.apparmor<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"103\" class=\"wp-image-25459\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-15.png 708w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-15-300x44.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p><strong>Note: <\/strong>The <strong>snapd.apparmor <\/strong>service will allow you to start the Snap applications on your system.<\/p>\n<h3><a id=\"post-25317-_qjiwigdnq2wc\"><\/a><strong>Step 3: Install Docker on Kali Linux<\/strong><\/h3>\n<p>You can now install <strong>docker <\/strong>on Kali Linux from the Snap Store using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw2\">install<\/span> docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"87\" class=\"wp-image-25463\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-16.png 703w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-16-300x37.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/p>\n<h3><a id=\"post-25317-_mvgisxsrze6k\"><\/a><strong>Step 4: Run docker from Snap Store on Kali Linux<\/strong><\/h3>\n<p>If you want to run <strong>docker<\/strong> from Snap Store on Kali Linux, simply use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap run docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"392\" class=\"wp-image-25473\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-17.png 708w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-17-300x166.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p><strong>Note: <\/strong>To remove <strong>docker<\/strong> from Snap Store on Kali Linux, execute the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap remove docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"87\" class=\"wp-image-25481\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-18.png 704w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25317-18-300x37.png 300w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/p>\n<h2><a id=\"post-25317-_2j3k6wze700n\"><\/a><strong>Bonus Method: Installing Docker on Kali Linux from Docker Desktop Application<\/strong><\/h2>\n<p>The <strong>docker <\/strong>official has also introduced a <strong>Docker Desktop<\/strong> application that can be installed on systems like Windows, Mac or Linux. Once you manage to install this desktop application, it will automatically install <strong>docker <\/strong>on your system. However, installing <strong>Docker Desktop <\/strong>on Linux may require additional configuration, which might not be recommended, and easier for a beginner or normal users. If you still wish to go with installing <strong>Docker Desktop <\/strong>application, you can follow the <a href=\"https:\/\/docs.docker.com\/desktop\/install\/linux-install\/\"><strong>official guide<\/strong><\/a>.<\/p>\n<h2><a id=\"post-25317-_uoe1dhrlc7gx\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p><strong>Docker <\/strong>is a useful tool for running the applications inside the container, and it can be installed on Kali Linux from the <strong>apt repository, docker-ce repository, GitHub source file<\/strong> or <strong>Snap Store<\/strong>. The <strong>official apt source repository<\/strong> method is simple, that installs the <strong>docker <\/strong>on Kali Linux through a single command. For the <strong>docker repository<\/strong>, you have to add GPG key and <strong>docker-ce<\/strong> repository, then update the apt repository and install the <strong>docker <\/strong>latest version from the apt command. The <strong>GitHub source file <\/strong>method requires downloading the source file from <strong>git <\/strong>command, navigating to the source file and running the script to perform the <strong>docker<\/strong> installation. For the <strong>Snap Store<\/strong> method, first install snap daemon, then enable the <strong>snapd <\/strong>services and install the <strong>docker<\/strong> on Kali Linux from the snap command.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can install docker on Kali Linux from the apt repository, docker-ce repository, GitHub source file or Snap Store.<\/p>","protected":false},"author":116,"featured_media":25577,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-25317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25317","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\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=25317"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/25577"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=25317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=25317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=25317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}