Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: Uninstall Docker

RSS

Uninstalling and Installing Docker

This document records the complete process of thoroughly uninstalling and reinstalling Docker on CentOS and Ubuntu systems. First, before proceeding with any operations, it is essential to confirm that no other users are currently using the Docker service to avoid disrupting business operations. For CentOS, simply use the `yum` command to remove the relevant component packages. For Ubuntu, use `apt-get` to delete dependency packages such as `docker.io`. In the reinstallation phase, if the server has access to the external network, the most convenient approach is to directly execute the official script or add the official GPG key and repository source. If the environment is an internal network, it is recommended to configure the Tsinghua mirror source to accelerate downloads, which can be achieved by modifying environment variables or replacing the repository address. Finally, after installation is complete, start the Docker service, run the `hello-world` image, and check the `docker compose` version to verify that the installation was successful. The entire process emphasizes the importance of selecting the correct package manager commands based on the system type and flexibly switching mirror sources according to network conditions.

Views 103
Docker Compose Uninstall Docker centos devops docker ubuntu