forked from Fascinated/docs
cleanup docker install guide and add sudo to cmds
This commit is contained in:
parent
2aa822665d
commit
8e7d0717ea
@ -23,7 +23,7 @@ This guide provides step-by-step instructions for installing Docker Community Ed
|
||||
- Begin by updating your apt repository to ensure you have the latest package information and dependencies. Open a terminal and run the following command:
|
||||
|
||||
```bash
|
||||
apt update
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
This command will refresh the package lists and update any outdated packages on your system.
|
||||
@ -31,7 +31,7 @@ This command will refresh the package lists and update any outdated packages on
|
||||
- Next, you need to ensure that the curl utility is installed. This tool is used to transfer data to or from a server using various protocols. If you already have curl installed, you can skip this step. Otherwise, execute the following command in the terminal to install it:
|
||||
|
||||
```bash
|
||||
apt install curl
|
||||
sudo apt install curl
|
||||
```
|
||||
|
||||
This command will download and install curl from the Ubuntu repositories.
|
||||
@ -47,13 +47,13 @@ This command downloads the Docker installation script and pipes it to the bash s
|
||||
- Once the installation process is complete, you can verify that Docker is working correctly. Run the following command in the terminal:
|
||||
|
||||
```bash
|
||||
docker --version
|
||||
sudo docker --version
|
||||
```
|
||||
|
||||
This command displays the version of Docker installed on your system. You should see an output similar to the following:
|
||||
|
||||
```bash
|
||||
➜ ~ docker --version
|
||||
➜ ~ sudo docker --version
|
||||
Docker version 23.0.6, build ef23cbc
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user