Skip to content

Commit b0a0aa4

Browse files
committed
update doc for apt
1 parent ceafe3f commit b0a0aa4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/manuals/engine/install/ubuntu.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ conflicts with the versions bundled with Docker Engine.
8888
Run the following command to uninstall all conflicting packages:
8989

9090
```console
91-
$ for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
91+
$ for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt remove $pkg; done
9292
```
9393

94-
`apt-get` might report that you have none of these packages installed.
94+
`apt` might report that you have none of these packages installed.
9595

9696
Images, containers, volumes, and networks stored in `/var/lib/docker/` aren't
9797
automatically removed when you uninstall Docker. If you want to start with a
@@ -124,8 +124,8 @@ Docker from the repository.
124124

125125
```bash
126126
# Add Docker's official GPG key:
127-
sudo apt-get update
128-
sudo apt-get install ca-certificates curl
127+
sudo apt update
128+
sudo apt install ca-certificates curl
129129
sudo install -m 0755 -d /etc/apt/keyrings
130130
sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
131131
sudo chmod a+r /etc/apt/keyrings/docker.asc
@@ -135,7 +135,7 @@ Docker from the repository.
135135
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
136136
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
137137
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
138-
sudo apt-get update
138+
sudo apt update
139139
```
140140

141141
2. Install the Docker packages.
@@ -146,7 +146,7 @@ Docker from the repository.
146146
To install the latest version, run:
147147

148148
```console
149-
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
149+
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
150150
```
151151

152152
{{< /tab >}}
@@ -168,7 +168,7 @@ Docker from the repository.
168168

169169
```console
170170
$ VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~ubuntu.24.04~noble
171-
$ sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
171+
$ sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
172172
```
173173

174174
{{< /tab >}}
@@ -255,7 +255,7 @@ To upgrade Docker Engine, download the newer package files and repeat the
255255
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
256256

257257
```console
258-
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
258+
$ sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
259259
```
260260

261261
2. Images, containers, volumes, or custom configuration files on your host

0 commit comments

Comments
 (0)