Add Docker Setup
parent
12637a78f7
commit
648837174b
1 changed files with 31 additions and 0 deletions
31
Docker-Setup.md
Normal file
31
Docker-Setup.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
## Dependencies
|
||||
|
||||
1. Install the required dependencies with the following apt command:
|
||||
|
||||
```bash
|
||||
sudo apt install ca-certificates curl gnupg lsb-release
|
||||
```
|
||||
|
||||
2. Create key directory --if-not-exists
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /etc/apt/keyrings
|
||||
```
|
||||
|
||||
3. Download and add Docker's official GPG key:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
```
|
||||
|
||||
4. Add Docker's APT repository with:
|
||||
|
||||
```bash
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
```
|
||||
|
||||
5. Update the package list:
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue