Difference between revisions of "Docker tutorial"

From rbachwiki
Jump to navigation Jump to search
Line 6: Line 6:


'''Images, containers, volumes, and networks stored in /var/lib/docker/ aren't automatically removed when you uninstall Docker. If you want to start with a clean installation, and prefer to clean up any existing data, read the uninstall Docker Engine section [https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine].'''
'''Images, containers, volumes, and networks stored in /var/lib/docker/ aren't automatically removed when you uninstall Docker. If you want to start with a clean installation, and prefer to clean up any existing data, read the uninstall Docker Engine section [https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine].'''
===Install using the apt repository===
'''Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker apt repository. Afterward, you can install and update Docker from the repository.'''
==[[Docker]]==
==[[Docker]]==

Revision as of 17:35, 5 November 2026

Installing Docker on Ubuntu =

Uninstall old version first

sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc | cut -f1)

apt might report that you have none of these packages installed.

Images, containers, volumes, and networks stored in /var/lib/docker/ aren't automatically removed when you uninstall Docker. If you want to start with a clean installation, and prefer to clean up any existing data, read the uninstall Docker Engine section [1].

Install using the apt repository

Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker apt repository. Afterward, you can install and update Docker from the repository.

Docker