vault backup: 2024-03-16 00:13:15
This commit is contained in:
32
.obsidian/workspace.json
vendored
32
.obsidian/workspace.json
vendored
@@ -13,13 +13,26 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Tenmado/Windows.md",
|
"file": "Tenmado/Dotfiles.md",
|
||||||
|
"mode": "source",
|
||||||
|
"source": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fefa48c409cee09f",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "Tenmado/Docker.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"currentTab": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
@@ -85,7 +98,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Tenmado/Windows.md",
|
"file": "Tenmado/Docker.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@@ -102,7 +115,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Tenmado/Windows.md",
|
"file": "Tenmado/Docker.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
@@ -125,7 +138,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Tenmado/Windows.md"
|
"file": "Tenmado/Docker.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -154,22 +167,23 @@
|
|||||||
"command-palette:Open command palette": false
|
"command-palette:Open command palette": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "fdb1271a159dc168",
|
"active": "fefa48c409cee09f",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Tenmado/Quotes.md",
|
"Tenmado/Dotfiles.md",
|
||||||
|
"Tenmado/Docker.md",
|
||||||
|
"Tenmado/Troubleshooting.md",
|
||||||
"Tenmado/Windows.md",
|
"Tenmado/Windows.md",
|
||||||
|
"Tenmado/Quotes.md",
|
||||||
"Untitled",
|
"Untitled",
|
||||||
"Files/Screenshots/Money.Manager.EX.png",
|
"Files/Screenshots/Money.Manager.EX.png",
|
||||||
"Files/Screenshots/Files.App.png",
|
"Files/Screenshots/Files.App.png",
|
||||||
"Files/Screenshots/Alacritty.win.png",
|
"Files/Screenshots/Alacritty.win.png",
|
||||||
"Tenmado/Youtube Channels.md",
|
"Tenmado/Youtube Channels.md",
|
||||||
"Tenmado/Troubleshooting.md",
|
|
||||||
"Tenmado/reMarkable 2.md",
|
"Tenmado/reMarkable 2.md",
|
||||||
"Tenmado/Mac OS.md",
|
"Tenmado/Mac OS.md",
|
||||||
"Tenmado/Linux - Android.md",
|
"Tenmado/Linux - Android.md",
|
||||||
"Tenmado/Keyboards.md",
|
"Tenmado/Keyboards.md",
|
||||||
"Tenmado/Linux - Commands & CLI.md",
|
"Tenmado/Linux - Commands & CLI.md",
|
||||||
"Tenmado/Dotfiles.md",
|
|
||||||
"Tenmado/Docker Compose.md",
|
"Tenmado/Docker Compose.md",
|
||||||
"Tenmado/Git.md",
|
"Tenmado/Git.md",
|
||||||
"Tenmado/Linux - Neovim.md",
|
"Tenmado/Linux - Neovim.md",
|
||||||
|
|||||||
49
Tenmado/Docker.md
Normal file
49
Tenmado/Docker.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
## Docker Engine Installation
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
Installing on Linux Systems - Debian Based - [Reference](https://docs.docker.com/engine/install/ubuntu/)
|
||||||
|
```bash
|
||||||
|
# Add Docker's official GPG key:
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install ca-certificates curl
|
||||||
|
sudo install -m 0755 -d /etc/apt/keyrings
|
||||||
|
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||||
|
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||||
|
|
||||||
|
# Add the repository to Apt sources:
|
||||||
|
echo \
|
||||||
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
sudo apt-get update
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE] Note
|
||||||
|
> If you use an Ubuntu derivative distro, such as Linux Mint, you may need to use `UBUNTU_CODENAME` instead of `VERSION_CODENAME` Remeber to replace the `VERSION` from the above command
|
||||||
|
|
||||||
|
To get the `VERSION_CODE` run:
|
||||||
|
```bash
|
||||||
|
lsb_release -a # Prints your installed Ubuntu/Debian Based OS Version
|
||||||
|
lsb_release -cs # Prints only the OS Version ex. jammy
|
||||||
|
|
||||||
|
cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2 # If for some reason "lsb_release" is not available
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the Docker packages:
|
||||||
|
```bash
|
||||||
|
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
```
|
||||||
|
|
||||||
|
Verify that the Docker Engine installation is successful by running the `hello-world` image:
|
||||||
|
```bash
|
||||||
|
sudo docker run hello-world
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
> [!tip] Tip
|
||||||
|
> Receiving errors when trying to run without root?
|
||||||
|
>
|
||||||
|
The `docker` user group exists but contains no users, which is why you’re required to use `sudo` to run Docker commands.
|
||||||
|
|
||||||
|
Follow the following guide to add `docker user` to avoid running `sudo` docker commands - [Manage Docker as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/)
|
||||||
|
|
||||||
Reference in New Issue
Block a user