docker:install_docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:install_docker [2025/06/05 21:05] – peter | docker:install_docker [2025/06/07 16:56] (current) – peter | ||
---|---|---|---|
Line 6: | Line 6: | ||
**ALERT: | **ALERT: | ||
- | * It is NOT compatible with **ufw**. | + | * Docker |
+ | * See: https:// | ||
</ | </ | ||
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 | ||
</ | </ | ||
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 | ||
</ | </ | ||
+ | |||
+ | <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. | ||
+ | |||
+ | </ | ||
---- | ---- | ||
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 | ||
+ | </ | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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 | ||
+ | </ | ||
+ | |||
+ | Then, manually remove the following two directories: | ||
+ | |||
+ | <code bash> | ||
+ | sudo rm -rf / | ||
+ | sudo rm -rf / | ||
+ | </ | ||
---- | ---- | ||
Line 126: | Line 157: | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
docker/install_docker.1749157548.txt.gz · Last modified: 2025/06/05 21:05 by peter