generated from jackyzha0/quartz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
4 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |