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": {
|
||||
"type": "markdown",
|
||||
"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",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"currentTab": 1
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
@@ -85,7 +98,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Tenmado/Windows.md",
|
||||
"file": "Tenmado/Docker.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@@ -102,7 +115,7 @@
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Tenmado/Windows.md",
|
||||
"file": "Tenmado/Docker.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
@@ -125,7 +138,7 @@
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "Tenmado/Windows.md"
|
||||
"file": "Tenmado/Docker.md"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -154,22 +167,23 @@
|
||||
"command-palette:Open command palette": false
|
||||
}
|
||||
},
|
||||
"active": "fdb1271a159dc168",
|
||||
"active": "fefa48c409cee09f",
|
||||
"lastOpenFiles": [
|
||||
"Tenmado/Quotes.md",
|
||||
"Tenmado/Dotfiles.md",
|
||||
"Tenmado/Docker.md",
|
||||
"Tenmado/Troubleshooting.md",
|
||||
"Tenmado/Windows.md",
|
||||
"Tenmado/Quotes.md",
|
||||
"Untitled",
|
||||
"Files/Screenshots/Money.Manager.EX.png",
|
||||
"Files/Screenshots/Files.App.png",
|
||||
"Files/Screenshots/Alacritty.win.png",
|
||||
"Tenmado/Youtube Channels.md",
|
||||
"Tenmado/Troubleshooting.md",
|
||||
"Tenmado/reMarkable 2.md",
|
||||
"Tenmado/Mac OS.md",
|
||||
"Tenmado/Linux - Android.md",
|
||||
"Tenmado/Keyboards.md",
|
||||
"Tenmado/Linux - Commands & CLI.md",
|
||||
"Tenmado/Dotfiles.md",
|
||||
"Tenmado/Docker Compose.md",
|
||||
"Tenmado/Git.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