forked from tldr-pages/tldr
-
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.
docker-system, docker-compose: add Japanese translation, update page (t…
…ldr-pages#9828) * docker-system: add Japanese translation * docker-compose: add Japanese translation * Update pages.ja/common/docker-compose.md: add a note that the container is running * Update pages/common/docker-compose.md: exchange short option for long one * Update pages.ja/common/docker-compose.md: exchange short option for long one * docker-compose: update command to long flag --------- Co-authored-by: K.B.Dharun Krishna <[email protected]>
- Loading branch information
1 parent
d6d48e8
commit f9bad72
Showing
9 changed files
with
79 additions
and
7 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
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,36 @@ | ||
# docker compose | ||
|
||
> 複数コンテナを持つDockerアプリケーションの実行と管理をします。 | ||
> 詳しくはこちら: <https://docs.docker.com/compose/reference/>. | ||
- 実行中のコンテナ全てをリスト表示する: | ||
|
||
`docker compose ps` | ||
|
||
- カレントディレクトリにある `docker-compose.yml`ファイルを使用してバックグラウンドで全てのコンテナを作成・起動する: | ||
|
||
`docker compose up --detach` | ||
|
||
- 全てのコンテナを起動し、必要に応じて再ビルドする: | ||
|
||
`docker compose up --build` | ||
|
||
- 代替composeファイルを使って全てのコンテナを起動する: | ||
|
||
`docker compose --file {{ファイルパス}} up` | ||
|
||
- 実行中の全てのコンテナを停止する: | ||
|
||
`docker compose stop` | ||
|
||
- 全てのコンテナ、ネットワーク、イメージ、ボリュームを停止して削除する: | ||
|
||
`docker compose down --rmi all --volumes` | ||
|
||
- 全てのコンテナのログをフォローする(表示し続ける): | ||
|
||
`docker compose logs --follow` | ||
|
||
- 特定コンテナのログをフォローする(表示し続ける): | ||
|
||
`docker compose logs --follow {{コンテナ名}}` |
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,36 @@ | ||
# docker system | ||
|
||
> Dockerのデータ管理とシステム全体に関わる情報の表示をします。 | ||
> 詳しくはこちら: <https://docs.docker.com/engine/reference/commandline/system/>. | ||
- ヘルプの表示をする: | ||
|
||
`docker system` | ||
|
||
- Dockerディスクの使用量を表示する: | ||
|
||
`docker system df` | ||
|
||
- ディスクの使用量に関して詳細な情報を表示する: | ||
|
||
`docker system df --verbose` | ||
|
||
- 不使用データを削除する: | ||
|
||
`docker system prune` | ||
|
||
- 不使用データのうち指定時間より前に作成されたものを削除する: | ||
|
||
`docker system prune --filter="until={{時}}h{{分}}m"` | ||
|
||
- Dockerデーモンからのリアルタイムイベントを表示する: | ||
|
||
`docker system events` | ||
|
||
- コンテナからのリアルタイムイベントを適正なJSON行としてストリーム表示する: | ||
|
||
`docker system events --filter 'type=container' --format '{{json .}}'` | ||
|
||
- システム全体に関わる情報の表示をする: | ||
|
||
`docker system info` |
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
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