Skip to content

Commit

Permalink
vault backup: 2024-06-14 18:11:35
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/docker/Docker CLI Commands.md
content/docker/Docker IT flags.md
  • Loading branch information
windsuzu committed Jun 14, 2024
1 parent a55448c commit 7b2be83
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 15 deletions.
16 changes: 8 additions & 8 deletions content/.obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@
"path": "docker/Docker CLI Commands.md"
},
{
"basename": "Docker",
"path": "docker/Docker.md"
"basename": "Docker IT flags",
"path": "docker/Docker IT flags.md"
},
{
"basename": "Docker Container",
"path": "docker/Docker Container.md"
"basename": "Docker",
"path": "docker/Docker.md"
},
{
"basename": "Docker Image",
"path": "docker/Docker Image.md"
},
{
"basename": "Docker Container",
"path": "docker/Docker Container.md"
},
{
"basename": "docker-image",
"path": "attachments/docker-image.png"
Expand Down Expand Up @@ -195,10 +199,6 @@
{
"basename": "PostgreSQL Conflict",
"path": "postgresql/PostgreSQL Conflict.md"
},
{
"basename": "PostgreSQL Constraints",
"path": "postgresql/PostgreSQL Constraints.md"
}
],
"omittedPaths": [],
Expand Down
17 changes: 15 additions & 2 deletions content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
}
}
},
{
"id": "6075dafee2bafd19",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "docker/Docker IT flags.md",
"mode": "source",
"source": false
}
}
},
{
"id": "720ac84f203cc18f",
"type": "leaf",
Expand Down Expand Up @@ -273,10 +285,11 @@
},
"active": "94dafe9c731fce38",
"lastOpenFiles": [
"docker/Docker.md",
"docker/Docker IT flags.md",
"docker/Docker CLI Commands.md",
"docker/Docker Container.md",
"docker/Docker.md",
"docker/Docker Image.md",
"docker/Docker Container.md",
"attachments/docker-image.png",
"docker/Install Docker on Windows WSL 2.md",
"attachments/docker-container.png",
Expand Down
19 changes: 14 additions & 5 deletions content/docker/Docker CLI Commands.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
---
draft: false
date: 2024-06-12 19:48
date: 2024-06-13 00:01
tags:
- docker
---

## run

The `run` command from the CLI asks the [[Docker]] server to "create" and "start" a container based on the given [[docker image|image]].
The `run` command from the CLI asks the [[Docker]] server to "create" and "start" a container based on the given [[docker image|image]]. If the image is not found on the local machine, server will retrieve it from the [[Docker]] Hub first.

```bash
docker run [options] image_name [command]
```

>[!example]
> The following example pulls the `busybox` image from the [[Docker]] Hub, then creates and starts a container with it. It also specifies a shell to be started inside the container and the `-i` and `-t` [[Docker IT flags|flags]] to interact directly with the shell in the container.
>
>```
>```bash
>docker run -it busybox sh
>```
>
>PS. `busybox` is a tiny (<5Mb) image that combines many common UNIX utilities into a single executable for crafting space-efficient distributions.
## create


## start
## exec
## stop and kill

## container prune

## logs





> [!info] References
> -
> - [Docker and Kubernetes: The Complete Guide](https://www.udemy.com/course/docker-and-kubernetes-the-complete-guide)
> - [busybox - Official Image | Docker Hub](https://hub.docker.com/_/busybox)
12 changes: 12 additions & 0 deletions content/docker/Docker IT flags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
draft: false
date: 2024-06-12 23:55
tags:
- docker
---




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

0 comments on commit 7b2be83

Please sign in to comment.