Skip to content

Commit bd390ff

Browse files
Sync README.en.md with all changes from last two README.md commits (de385d4 and 3aa8640)
Agent-Logs-Url: https://github.com/codeedu/wsl2-docker-quickstart/sessions/2e2d11f7-7c6b-4972-b582-f3eafcbebf9b Co-authored-by: argentinaluiz <4926329+argentinaluiz@users.noreply.github.com>
1 parent 7c68ba3 commit bd390ff

1 file changed

Lines changed: 16 additions & 21 deletions

File tree

README.en.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -505,37 +505,32 @@ Installing Docker on WSL 2 is similar to installing Docker on any Linux distribu
505505
>
506506
> If it does not work, restart WSL with the command `wsl --shutdown` and start Docker service again.
507507
508-
Execute the following commands to install Docker:
508+
> **For other Linux distributions**
509+
>
510+
> If you are using a distribution other than Ubuntu, check the Docker documentation for installation commands: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
511+
512+
Execute the following commands:
509513
510514
```bash
511-
sudo apt-get update
512-
sudo apt-get install ca-certificates curl
515+
sudo apt update
516+
sudo apt install ca-certificates curl
513517
sudo install -m 0755 -d /etc/apt/keyrings
514518
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
515519
sudo chmod a+r /etc/apt/keyrings/docker.asc
516520
517-
echo \
518-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
519-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
520-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
521-
sudo apt-get update
521+
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
522+
Types: deb
523+
URIs: https://download.docker.com/linux/ubuntu
524+
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
525+
Components: stable
526+
Signed-By: /etc/apt/keyrings/docker.asc
527+
EOF
522528
523-
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
524-
```
529+
sudo apt update
525530
526-
Add Docker’s repository to Ubuntu’s sources list:
527-
528-
```bash
529-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
530-
echo \
531-
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
532-
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
531+
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
533532
```
534533
535-
> **For other Linux distributions**
536-
>
537-
> If you are using a distribution other than Ubuntu, check the Docker documentation for installation commands: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
538-
539534
Grant permissions to run Docker with your current user:
540535
541536
```bash

0 commit comments

Comments
 (0)