User Tools

Site Tools


docker:install_docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:install_docker [2025/06/05 21:05] peterdocker:install_docker [2025/06/07 16:56] (current) peter
Line 6: Line 6:
 **ALERT:**  Docker is only compatible with **iptables** and **ip6tables**. **ALERT:**  Docker is only compatible with **iptables** and **ip6tables**.
  
-  * It is NOT compatible with **ufw**.+  * Docker is NOT compatible with **ufw**. 
 +  * See:  https://docs.docker.com/engine/network/packet-filtering-firewalls/
  
 </WRAP> </WRAP>
Line 14: Line 15:
 ===== Uninstall old versions ===== ===== Uninstall old versions =====
  
-<code bash?+<code bash>
 for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt remove $pkg; done for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt remove $pkg; done
 </code> </code>
Line 72: Line 73:
 sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**
 +
 +  * **docker-ce** - The Docker engine itself.
 +  * **docker-ce-cli** - A command line tool that lets you talk to the Docker daemon.
 +  * **containerd.io** - A container runtime that manages the container’s lifecycle.
 +  * **docker-buildx-plugin** - This extension for Docker enhances the capabilities of building images, mainly focusing on multi-platform builds.
 +  * **docker-compose-plugin** - A configuration management plugin that helps manage multi-container Docker applications using a single YAML file.
 +
 +</WRAP>
  
 ---- ----
Line 116: Line 128:
  
   * When the container runs, it prints a confirmation message and exits.   * When the container runs, it prints a confirmation message and exits.
 +
 +  * If the command fails to run, try to restart the docker service, before rerunning this test: <code bash>
 +sudo systemctl restart docker.service
 +</code>
  
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Uninstall Docker Engine =====
 +
 +<code bash>
 +sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
 +</code>
 +
 +Then, manually remove the following two directories:
 +
 +<code bash>
 +sudo rm -rf /var/lib/docker
 +sudo rm -rf /var/lib/containerd
 +</code>
  
 ---- ----
Line 126: Line 157:
  
 https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine
 +
 +https://docs.docker.com/engine/network/packet-filtering-firewalls/
  
docker/install_docker.1749157548.txt.gz · Last modified: 2025/06/05 21:05 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki