Skip to content

Commit

Permalink
vault backup: 2024-07-02 20:36:59
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/_templates/default-note.md
content/docker/Docker Container Lifecycle.md
content/docker/Docker Image.md
content/docker/Dockerfile.md
content/docker/cli-commands/docker build.md
content/docker/cli-commands/docker commit.md
content/docker/cli-commands/docker container prune.md
  • Loading branch information
windsuzu committed Jul 2, 2024
1 parent 3ce94d2 commit 67e5629
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 82 deletions.
72 changes: 36 additions & 36 deletions content/.obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,24 @@
{
"recentFiles": [
{
"basename": "Docker Image",
"path": "docker/Docker Image.md"
},
{
"basename": "Dockerfile",
"path": "docker/Dockerfile.md"
},
{
"basename": "docker build",
"path": "docker/cli-commands/docker build.md"
},
{
"basename": "default-note",
"path": "_templates/default-note.md"
},
{
"basename": "Get something done, Get someone to do",
"path": "english-grammar/Get something done, Get someone to do.md"
"basename": "Docker Image",
"path": "docker/Docker Image.md"
},
{
"basename": "Gerund",
"path": "english-grammar/Gerund.md"
"basename": "docker build",
"path": "docker/cli-commands/docker build.md"
},
{
"basename": "docker commit",
"path": "docker/cli-commands/docker commit.md"
},
{
"basename": "Measurable metrics on resume",
"path": "resume/Measurable metrics on resume.md"
},
{
"basename": "index",
"path": "index.md"
"basename": "docker ps",
"path": "docker/cli-commands/docker ps.md"
},
{
"basename": "Docker",
Expand All @@ -45,36 +29,52 @@
"path": "docker/Docker Container.md"
},
{
"basename": "Docker -it flags",
"path": "docker/cli-commands/Docker -it flags.md"
"basename": "Docker Container Lifecycle",
"path": "docker/Docker Container Lifecycle.md"
},
{
"basename": "docker container prune",
"path": "docker/cli-commands/docker container prune.md"
},
{
"basename": "Docker Container Lifecycle",
"path": "docker/Docker Container Lifecycle.md"
},
{
"basename": "continer-input-output",
"path": "attachments/continer-input-output.png"
"basename": "docker logs",
"path": "docker/cli-commands/docker logs.md"
},
{
"basename": "docker exec",
"path": "docker/cli-commands/docker exec.md"
},
{
"basename": "docker run, create, start",
"path": "docker/cli-commands/docker run, create, start.md"
"basename": "default-note",
"path": "_templates/default-note.md"
},
{
"basename": "docker ps",
"path": "docker/cli-commands/docker ps.md"
"basename": "Get something done, Get someone to do",
"path": "english-grammar/Get something done, Get someone to do.md"
},
{
"basename": "docker logs",
"path": "docker/cli-commands/docker logs.md"
"basename": "Gerund",
"path": "english-grammar/Gerund.md"
},
{
"basename": "Measurable metrics on resume",
"path": "resume/Measurable metrics on resume.md"
},
{
"basename": "index",
"path": "index.md"
},
{
"basename": "Docker -it flags",
"path": "docker/cli-commands/Docker -it flags.md"
},
{
"basename": "continer-input-output",
"path": "attachments/continer-input-output.png"
},
{
"basename": "docker run, create, start",
"path": "docker/cli-commands/docker run, create, start.md"
},
{
"basename": "docker-exec-redis",
Expand Down
53 changes: 28 additions & 25 deletions content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@
{
"id": "b7f8694dd415798e",
"type": "leaf",
"pinned": true,
"state": {
"type": "markdown",
"state": {
"file": "docker/Docker Image.md",
"mode": "source",
"source": false
}
},
"pinned": true
}
},
{
"id": "a11d1a995593e3de",
"id": "1e7c2b6da6ce4600",
"type": "leaf",
"state": {
"type": "markdown",
Expand All @@ -32,18 +34,19 @@
}
},
{
"id": "33fd153ae857e544",
"id": "14f2cf825ea05773",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "docker/cli-commands/docker commit.md",
"file": "docker/Dockerfile.md",
"mode": "source",
"source": false
}
}
}
]
],
"currentTab": 2
}
],
"direction": "vertical"
Expand Down Expand Up @@ -73,7 +76,7 @@
"state": {
"type": "search",
"state": {
"query": "tag:#tbd",
"query": "tag:#_tbd",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
Expand Down Expand Up @@ -127,7 +130,7 @@
"state": {
"type": "localgraph",
"state": {
"file": "docker/Docker Image.md",
"file": "docker/Dockerfile.md",
"options": {
"collapse-filter": true,
"search": "",
Expand Down Expand Up @@ -169,15 +172,15 @@
{
"id": "884ddd02c3319b96",
"type": "tabs",
"dimension": 19.36108422071636,
"dimension": 21.00677637947725,
"children": [
{
"id": "57f3938ebda4009b",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "docker/Docker Image.md"
"file": "docker/Dockerfile.md"
}
}
},
Expand Down Expand Up @@ -218,7 +221,7 @@
"state": {
"type": "file-properties",
"state": {
"file": "docker/Docker Image.md"
"file": "docker/Dockerfile.md"
}
}
}
Expand All @@ -228,15 +231,15 @@
{
"id": "664c38c8bd525c44",
"type": "tabs",
"dimension": 39.8838334946757,
"dimension": 30.493707647628266,
"children": [
{
"id": "94751ef195017213",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "docker/Docker Image.md",
"file": "docker/Dockerfile.md",
"linksCollapsed": false,
"unlinkedCollapsed": false
}
Expand All @@ -247,15 +250,15 @@
{
"id": "ac5e343256989119",
"type": "tabs",
"dimension": 21.39399806389158,
"dimension": 29.138431752178125,
"children": [
{
"id": "d73c6d045a2bcd47",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "docker/Docker Image.md",
"file": "docker/Dockerfile.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand Down Expand Up @@ -285,27 +288,27 @@
"cmdr:Obsidian Git: Create backup": false
}
},
"active": "99215f4824c66492",
"active": "14f2cf825ea05773",
"lastOpenFiles": [
"docker/Dockerfile.md",
"docker/Docker Image.md",
"docker/cli-commands/docker build.md",
"docker/Dockerfile.md",
"docker/cli-commands/docker commit.md",
"docker/cli-commands/docker ps.md",
"docker/Docker.md",
"docker/Docker Container.md",
"docker/Docker Container Lifecycle.md",
"docker/cli-commands/docker container prune.md",
"docker/cli-commands/docker logs.md",
"docker/cli-commands/docker exec.md",
"_templates/default-note.md",
"docker/Docker Image.md",
"english-grammar/Get something done, Get someone to do.md",
"english-grammar/Gerund.md",
"docker/cli-commands/docker commit.md",
"resume/Measurable metrics on resume.md",
"index.md",
"docker/Docker.md",
"docker/Docker Container.md",
"docker/cli-commands/Docker -it flags.md",
"docker/cli-commands/docker container prune.md",
"docker/Docker Container Lifecycle.md",
"attachments/continer-input-output.png",
"docker/cli-commands/docker exec.md",
"docker/cli-commands/docker run, create, start.md",
"docker/cli-commands/docker ps.md",
"docker/cli-commands/docker logs.md",
"attachments/docker-exec-redis.png",
"docker/cli-commands/docker stop, kill.md",
"docker/Docker CLI Commands.md",
Expand Down
4 changes: 2 additions & 2 deletions content/_templates/default-note.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
draft: false
date: 2023-11-21 23:19
date: 2024-07-02 18:09
tags:
- tbd
- _tbd
---


Expand Down
4 changes: 2 additions & 2 deletions content/docker/Docker Container Lifecycle.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
draft: false
date: 2024-06-24 17:08
date: 2024-07-02 18:11
tags:
- docker
---

![[docker-container-lifecycle.png]]
> Source: [Docker Container Lifecycle Management](https://k21academy.com/docker-kubernetes/docker-container-lifecycle-management/)
When a [[Docker]] container is created with `docker create`, it can be started using `docker start` multiple times (you can also use the `docker run` command to create and start a container simultaneously). The container may run and finish immediately or run for an extended duration, depending on the processes it executes.
When a [[Docker]] [[Docker Container|container]] is created with `docker create`, it can be started using `docker start` multiple times (you can also use the `docker run` command to create and start a container simultaneously). The container may run and finish immediately or run for an extended duration, depending on the processes it executes.

>[!seealso]
>- [[docker run, create, start]]
Expand Down
11 changes: 4 additions & 7 deletions content/docker/Docker Image.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
draft: false
date: 2024-07-02 17:16
date: 2024-07-02 18:11
tags:
- docker
- tbd
---

A [[Docker]] Image can be thought of as a ==filesystem snapshot with a startup command==. When a [[Docker Container|container]] is created from an image, [[Docker]] first sets up a layered filesystem for the [[docker container|container]] based on the image.
Expand All @@ -12,12 +11,10 @@ This filesystem is not loaded entirely into memory but is mounted in a way that

![[docker-image.png]]

There are two ways to
There are two ways to create an image:

Two ways to create an image:

1. Through [[Dockerfile]] and [[docker build]] command
2. Through [[docker commit]] command
1. Creating a [[Dockerfile]] and using the [[docker build]] command
2. Using [[docker commit]] command

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

0 comments on commit 67e5629

Please sign in to comment.