Skip to content

Commit

Permalink
vault backup: 2024-06-11 17:58:05
Browse files Browse the repository at this point in the history
Affected files:
content/.obsidian/plugins/recent-files-obsidian/data.json
content/.obsidian/workspace.json
content/attachments/how-docker-works.png
content/docker/Docker Container.md
content/docker/Docker.md
content/docker/Install Docker on Windows WSL 2.md
  • Loading branch information
windsuzu committed Jun 11, 2024
1 parent 436a529 commit 380a652
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 29 deletions.
24 changes: 12 additions & 12 deletions content/.obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"recentFiles": [
{
"basename": "Docker Container",
"path": "docker/Docker Container.md"
},
{
"basename": "Docker",
"path": "docker/Docker.md"
},
{
"basename": "how-docker-works",
"path": "attachments/how-docker-works.png"
},
{
"basename": "Install Docker on Windows WSL 2",
"path": "docker/Install Docker on Windows WSL 2.md"
},
{
"basename": "Full Route Cache",
"path": "react/next-cache/Full Route Cache.md"
Expand Down Expand Up @@ -187,18 +199,6 @@
{
"basename": "PostgreSQL Sequence and UUID",
"path": "postgresql/PostgreSQL Sequence and UUID.md"
},
{
"basename": "Connect PostgreSQL on WSL 2 (Ubuntu)",
"path": "postgresql/Connect PostgreSQL on WSL 2 (Ubuntu).md"
},
{
"basename": "PostgreSQL Database",
"path": "postgresql/PostgreSQL Database.md"
},
{
"basename": "PostgreSQL Table",
"path": "postgresql/PostgreSQL Table.md"
}
],
"omittedPaths": [],
Expand Down
39 changes: 26 additions & 13 deletions content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,21 @@
"source": false
}
}
},
{
"id": "51af5d0db36e132f",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "docker/Docker Container.md",
"mode": "source",
"source": false
}
}
}
]
],
"currentTab": 1
}
],
"direction": "vertical"
Expand Down Expand Up @@ -102,7 +115,7 @@
"state": {
"type": "localgraph",
"state": {
"file": "docker/Docker.md",
"file": "docker/Docker Container.md",
"options": {
"collapse-filter": true,
"search": "",
Expand Down Expand Up @@ -152,7 +165,7 @@
"state": {
"type": "outline",
"state": {
"file": "docker/Docker.md"
"file": "docker/Docker Container.md"
}
}
},
Expand Down Expand Up @@ -193,7 +206,7 @@
"state": {
"type": "file-properties",
"state": {
"file": "docker/Docker.md"
"file": "docker/Docker Container.md"
}
}
}
Expand All @@ -202,15 +215,15 @@
{
"id": "664c38c8bd525c44",
"type": "tabs",
"dimension": 23.039690222652467,
"dimension": 30.300096805421106,
"children": [
{
"id": "94751ef195017213",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "docker/Docker.md",
"file": "docker/Docker Container.md",
"linksCollapsed": false,
"unlinkedCollapsed": false
}
Expand All @@ -221,15 +234,15 @@
{
"id": "ac5e343256989119",
"type": "tabs",
"dimension": 33.88189738625363,
"dimension": 26.621490803484992,
"children": [
{
"id": "d73c6d045a2bcd47",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "docker/Docker.md",
"file": "docker/Docker Container.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand Down Expand Up @@ -259,10 +272,13 @@
"cmdr:Obsidian Git: Create backup": false
}
},
"active": "94dafe9c731fce38",
"active": "51af5d0db36e132f",
"lastOpenFiles": [
"react/next-cache/Full Route Cache.md",
"docker/Docker.md",
"docker/Docker Container.md",
"attachments/how-docker-works.png",
"docker/Install Docker on Windows WSL 2.md",
"react/next-cache/Full Route Cache.md",
"docker",
"mocs/React MOC.md",
"react/next-cache/Router Cache.md",
Expand Down Expand Up @@ -298,15 +314,12 @@
"prettier/Prettier.md",
"prettier",
"fish-shell/Fish Shell.md",
"_templates/example callout.md",
"resume/Keywords on resume.md",
"postgresql",
"prisma",
"fish-shell",
"attachments/avatar-jay.jpeg",
"attachments/prepositions-of-place.png",
"attachments/prepositions-of-time.png",
"attachments/reported-speech-imperatives.png",
"Untitled.canvas"
]
}
Binary file added content/attachments/how-docker-works.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions content/docker/Docker Container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
draft: false
date: 2024-06-11 17:28
tags:
- docker
---




> [!info] References
> - [Docker and Kubernetes: The Complete Guide](https://www.udemy.com/course/docker-and-kubernetes-the-complete-guide)
8 changes: 4 additions & 4 deletions content/docker/Docker.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
draft: false
date: 2024-06-09 23:59
date: 2024-06-11 17:27
tags:
- docker
---

Docker is an ecosystem comprising the Docker Client, Docker Daemon, Docker Hub, Docker Images, and Docker Compose, all working together to achieve ==containerization==. Containerization involves encapsulating the necessary steps, dependencies, and configurations for setting up software or executing an application into a single container instance.


Docker is an ecosystem comprising the Docker Client (CLI), Docker Daemon (Server), Docker Hub, Docker Images, and Docker Compose, all working together to achieve ==containerization==. Containerization involves encapsulating the necessary steps, dependencies, and configurations for setting up software or executing an application into a single [[Docker Container|container]] instance.

![[how-docker-works.png]]

When you run `docker run hello-world` for the first time, the Docker Client asks the Docker Server to run this command. The Docker Server first looks for the `hello-world` image in the **image cache** on your machine. If there's no such image on your machine, it then pulls it from the Docker Hub over the Internet and caches it. Finally, the Docker server takes the image, loads it into memory, creates a [[Docker Container|container]] from it, and runs the program inside it.


> [!info] References
Expand Down
18 changes: 18 additions & 0 deletions content/docker/Install Docker on Windows WSL 2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
draft: false
date: 2024-06-11 17:09
tags:
- docker
---

This note assumes that you already have WSL 2 installed on Windows 10 or 11 before you install [[Docker]].

1. Register for a [DockerHub](https://hub.docker.com/) account
2. Install Docker Desktop from [DockerHub](https://hub.docker.com/)
3. Ensure `Enable Integration with my default WSL distro` is checked in the Docker Desktop
- `Settings` -> `Resources` -> `WSL Integration`
4. Run the `docker login` command in your WSL terminal


> [!info] References
> - [Docker and Kubernetes: The Complete Guide](https://www.udemy.com/course/docker-and-kubernetes-the-complete-guide)

0 comments on commit 380a652

Please sign in to comment.