Update README.md
This commit is contained in:
13
README.md
13
README.md
@@ -37,12 +37,12 @@ First, update your existing list of packages to ensure you are getting the lates
|
||||
```bash
|
||||
sudo apt update
|
||||
```
|
||||
2. Install Dependencies
|
||||
### 2. Install Dependencies
|
||||
Install the prerequisite packages that allow apt to use packages over HTTPS.
|
||||
```Bash
|
||||
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||||
```
|
||||
3. Add Docker Repository
|
||||
### 3. Add Docker Repository
|
||||
Add the GPG key for the official Docker repository to your system to ensure downloads are valid.
|
||||
```Bash
|
||||
curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
@@ -51,7 +51,7 @@ Add the Docker repository to your APT sources.
|
||||
```Bash
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
```
|
||||
4. Install Docker Engine
|
||||
### 4. Install Docker Engine
|
||||
Update the package database again with the Docker packages from the newly added repo.
|
||||
```Bash
|
||||
sudo apt update
|
||||
@@ -61,7 +61,7 @@ Finally, install Docker.
|
||||
```
|
||||
sudo apt install docker-ce
|
||||
```
|
||||
⚙ Post-Installation Configuration
|
||||
### ⚙ Post-Installation Configuration
|
||||
Run Docker Without Sudo (Optional)
|
||||
By default, the docker command can only be run by the root user or by a user in the docker group. To avoid typing sudo for every command, add your current user to the docker group.
|
||||
|
||||
@@ -80,7 +80,7 @@ groups
|
||||
```
|
||||
Output should look like: sammy sudo docker
|
||||
|
||||
✅ Verification
|
||||
### ✅ Verification
|
||||
Check that Docker is running correctly.
|
||||
|
||||
```Bash
|
||||
@@ -93,7 +93,6 @@ docker run hello-world
|
||||
|
||||
If successful, you will see a message indicating that your installation appears to be working correctly.
|
||||
|
||||
📚 Resources
|
||||
### 📚 Resources
|
||||
Official Docker Documentation
|
||||
|
||||
DigitalOcean Docker Tutorial
|
||||
Reference in New Issue
Block a user