Docker-docs-ja

Guides - ガイド

  • Docker 概要
  • Docker の入手
  • 始め方 - Get started
  • Docker Desktop ハンズオン ガイド
  • 言語別ガイド
  • Docker で開発
  • Docker で構築
  • プロダクションでアプリを実行
  • 教育用リソース

Product manuals - マニュアル

  • Docker Desktop
  • Docker Engine
  • Docker Compose
  • Docker Hub
  • Docker Registry

Reference - 参考資料

  • リファレンス・参考資料
  • コマンドライン・リファレンス
  • Dockerfile リファレンス
  • Compose ファイル リファレンス
  • 用語集

Samples - サンプル

  • サンプル

Docker について

  • リリース・ノート
  • 日本語版について
  • Docker ドキュメント逆引きガイド
  • Docker ドキュメント日本語版 PDF ダウンロード

Docs アーカイブ

  • v20.10
  • v19.03
  • v17.06
  • v1.12
  • v1.11
  • v1.10
  • v1.9
Docker-docs-ja
  • Docker 全文検索

Docker ドキュメント 全文検索

advanced help
per page, with , order by , clip by
Results of 1 - 10 of about 55 for target (0.004 sec.)
docker buildx bake 14399
docker buildx bake 目次 説明 ファイルから構築します。 使い方 $ docker buildx bake [ オプション ] [ 対象... ] 補足説明 bake はハイレベルな構築コマンドです。構築時に、それぞれの指定対象を並列実行します。 導入には High-level build options をご ... pull 常にイメージの新しいバージョンの取得を試みる --push --set=*.output=type=registry の簡易形 --set 対象の値を上書き(例: targetpattern.key=value ) --builder ビルダー・インスタンスの設定を上書き 使用例 builder 対象の設定を上書き (--builder) buildx -- ... 2 From git://github.com/docker/cli 1 2 .022 * [ new tag ] v20.10.11 -> v20.10.11 1 DONE 2 .9s { "group" : { "default" : { "targets" : [ "binary" ] } } , "target" : { "binary" : { "context" : "git://github.com/docker/cli#v20.10.11 " dockerfile ": " Dock ... erfile ", " args ": { " BASE_VARIANT ": " alpine ", " GO_STRIP ": "", " VERSION ": "" }, " target ": " binary ", " platforms ": [ " local " ], " output ": [ " build " ] } } } 見ての通り、定義において コンテクストが存在し ...
https://man.mtool.work/docker/24.0/engine/reference/commandline/buildx_bake.html
マウント 12299
マウント 目次 このセクションでは、Docker の構築( docker build )で :ruby:`キャッシュ マウント <cache mount>` と :ruby:`バインド マウント <bind mount>` を使う方法を説明します。 キャッシュマウントでは、構築中に使用する固定されたパッケージのキ ... Dockerfile 内の RUN 命令で --mount フラグと一緒に使います。キャッシュマウントを使うには、フラグの書式は --mount=type=cache,target=<path> であり、 <path> にはコンテナ内にマウントしたいキャッシュディレクトリの場所です。 キャッシュマウントの追加 キャッシュ ... example_go_version }} -alpine AS base WORKDIR /src COPY go.mod go.sum . - RUN go mod download + RUN --mount = type = cache,target = /go/pkg/mod/ \ + go mod download -x COPY . . FROM base AS build-client - RUN go build -o /bin/client ./cmd/client + RUN ... --mount = type = cache,target = /go/pkg/mod/ \ + go build -o /bin/client ./cmd/client FROM base AS build-server - RUN go build -o /bin/server ./cmd/serv ...
https://man.mtool.work/docker/24.0/build/guide/mounts.html
:ruby:`バインド マウント <bind mount>` の使用 11915
:ruby:`バインド マウント <bind mount>` の使用 目次 :ruby:`バインド マウント <bind mount>` は初期の Docker から存在しています。 ボリューム と比較すると、バインド マウントは機能が限定的です。バインド マウントを使う時、「ホストマシン」上のファ ... ination (マウント先)の値は、コンテナ内にマウントされるファイルやディレクトリのパスがどこかを示す。 destination 、 dst 、 target のどれかを指定。 readonly (読み込み専用)オプションがあれば、バインド マウントは 読み込み専用としてコンテナ内にマウント さ ... ィレクトリがあると想定します。ここをソースコードの構築時に使いますが、アーティファクト(構築結果)は他のディレクトリ source/target/ に保存します。アーティファクトをコンテナの /app/ で使いたい場合や、コンテナが新しく構築するたびに、開発ホスト上のバインド ... 元へとアクセスしたい場合があるでしょう。以下のコマンドを使い、 target/ ディレクトリをコンテナの /app/ にバインドマウントします。そして source ディレクトリの中でコマンドを実行します。 $(pwd) サ ...
https://man.mtool.work/docker/24.0/storage/bind-mounts.html
通知 9343
通知 目次 Registry は webhook 通知をサポートしています。レジストリ内で何らかのイベントが発生したら、それに対応して通知を送れます。通知はマニフェストの送受信とレイヤの送受信に対応しています。これらのアクションはイベント後とに処理されます。イ ... ations are sent to endpoints via HTTP requests. Each configured endpoint has isolated queues, retry configuration and http targets within each instance of a registry. When an action happens within the registry, it is converted into an event which is dr ... ue id that can be used to uniquely identify incoming requests, if required. Along with that, an action is provided with a _target, identifying the object mutated during the event. The fields available in an event are described in detail in the godoc. T ... sponse to the push of a manifest: { "id": "asdf-asdf-asdf-asdf-0", "timestamp": "2006-01-02T15:04:05Z", "action": "push", "target": { "mediaType": "application/vnd.docker.distribution.manifest.v1+json", "size": 1, "digest": "sha256:0123456789abcdef0", ...
https://man.mtool.work/docker/24.0/registry/notifications.html
swarm モード・ルーティング・メッシュを使う 8796
swarm モード・ルーティング・メッシュを使う 目次 Docker Engine swarm モードは、swarm の外にあるリソースからサービスが利用できるように、ポートを簡単に公開できるようにします。全ての参加ノードは ingress ルーティング・メッシュ (routing mesh)内 ... す。 サービス用にポートを公開 サービスの作成時にポートを公開するには、 --publish フラグを使います。コンテナ内のポート指定は target を使い、かつ、ルーティング・メッシュ上にバインドするポート指定に published を使います。もしも published ポートの指定がなけ ... タスクの調査(inspect)が必要になります。 $ docker service create \ --name <サービス名> \ --publish published = <公開ポート>,target = <コンテナ側ポート> \ <イメージ> 注釈 旧形式の構文は、 -p 8080:80 のように、まず公開用のポートがあり、次にターゲット用ポー ... スできるのは、そのホストで利用可能な IP アドレスのみです。 $ docker service update \ --publish-add published = <公開ポート>,target = <コンテナ・ポート> \ <サービス> サービスの公開ポートは docker service inspect で調べられます。例: $ docker service inspe ...
https://man.mtool.work/docker/24.0/engine/swarm/ingress.html
:ruby:`バインド マウント <bind mount>` の使用 8796
:ruby:`バインド マウント <bind mount>` の使用 目次 Part 5 ではデータベース内のデータを保持するため、ボリュームのマウントを使いました。アプリケーションのデータをどこかに保持する必要がある場合、ボリュームマウントは良い選択肢です。 :ruby:`バイ ... ド マウント <bind mount>` ホスト上の場所 Docker が選択 自分で決める マウント例( --mount を使用) type=volume,src=my-volume,target=/usr/local/data type=bind,src=/path/to/data,target=/usr/local/data コンテナの内容に新しいボリュームを加える はい いいえ ボ ... ンドマウントした ubuntu コンテナで bash を実行します。 Mac / Linux $ docker run -it --mount type = bind,src = " $( pwd ) " ,target = /src ubuntu bash Windows PowerShell でコマンドを実行します。 $docker run -it --mount "type=bind,src= $pwd ,target=/src" ... バインドマウントの作成を命令します。 src で示す場所は、ホストマシン上の現在の作業ディレクトリ( getting-started/app )です。 target で示す場所は、コンテナ内に現れるディレクトリ( /src )です。 コマンドの実行後、コンテナが持つファイルシステムのルートディレ ...
https://man.mtool.work/docker/24.0/get-started/06_bind_mounts.html
docker image tag 8485
docker image tag 目次 説明 :ruby:`対象イメージ <TARGET_IMAGE>` に :ruby:`元イメージ <SOURCE_IMAGE>` を参照する :ruby:`タグ <tag>` を作成します。 使い方 $ docker image tag SOURCE_IMAGE [ :TAG ] TARGET_IMAGE [ :TAG ] 親コマンド コマンド 説明 ... 1つまたは複数イメージを tar アーカイブに保存(デフォルトで標準出力にストリーミング) docker image tag :ruby:`対象イメージ <TARGET_IMAGE>` に :ruby:`元イメージ <SOURCE_IMAGE>` を参照する :ruby:`タグ <tag>` を作成 参考 docker image tag https://docs.docke ...
https://man.mtool.work/docker/24.0/engine/reference/commandline/image_tag.html
Compose ファイル version 3 リファレンス 7776
Compose ファイル version 3 リファレンス 目次 リファレンスと方針 以下のトピックでは、 Compose ファイル形式バージョン3について説明します。 Compose と Docker の互換表 Compose ファイル形式には、1 、 2 、 2.x 、 3.x のように複数のバージョンがあり ... 値として表すか、 バイト値 の文字列で表します。 build : context : . shm_size : '2gb' build : context : . shm_size : 10000000 target ヒント Compose 形式 バージョン 3.4 で追加されました。 Dockerfile の中で定義された :ruby:`ステージ <stage>` を指定して構築し ... ます。詳細は マルチステージ・ビルド をご覧ください。 build : context : . target : prod cap_add, cap_drop コンテナの :ruby:`ケーパビリティ <capabilities>` を追加・削除します。ケーパビリティの一覧は man 7 ... ビスタスク用のコンテナ内で作成される設定を、より細かく指定します。 source :この設定自身、そのものを識別するための設定です。 target :サービスタスクのコンテナ内でマウントする、ファイル名とパスです。指定が無ければ、 /<source> がデフォルトです。 uid と gid ...
https://man.mtool.work/docker/24.0/compose/compose-file/compose-file-v3.html
マルチステージ 7702
マルチステージ 目次 このセクションは :ruby:`マルチステージビルド <multi-stage build>` を見ていきます。マルチステージビルドを使う理由は、主に2つあります。 構築ステップを並列に実行できるため、構築パイプラインをより速くより効率的にできる。 プロ ... います。これらは2つのイメージに分けるべきではないでしょうか。 1つの Dockerfile を使って、複数のイメージの作成が可能です。 --target フラグを使い、構築の :ruby:`対象となるステージ <target stage>` を指定できます。名前の付いていない FROM scratch ステージの名 ... クライアントとサーバのプログラムが分けられた Docker イメージ(タグ)を構築できます。 $ docker build --tag = buildme-client --target = client . $ docker build --tag = buildme-server --target = server . $ docker images buildme REPOSITORY TAG IMAGE ID CREAT ...
https://man.mtool.work/docker/24.0/build/guide/multi-stage.html
開発にコンテナを使う 7539
開発にコンテナを使う 事前準備 開発にコンテナを使う でイメージ構築をし、それコンテナ化アプリケーションとして実行します。 概要 現代的なソフトウェア開発において、テストは必要不可欠です。テストとは開発チームによって様々な意味を持ちます。単体テス ... を使います。 それでは、イメージを再構築し、テストを実行しましょう。先述と同じ docker build コマンドを実行しますが、今回は --target test フラグを付けますので、test 構築ステージのみ処理します。 $ docker build -t node-docker --target test . [ + ] Building ... それでは、テストを実行するため、先ほどと同じ docker build コマンドを実行する必要があります。 $ docker build -t node-docker --target test . [ + ] Building 8 .9s ( 13 /13 ) FINISHED = > [ internal ] load build definition from Dockerfile 0 .0s = > = > trans ... すると、構築が失敗し、コンソール上にはテスト失敗に関係する情報を表示するのが見えるでしょう。 $ docker build -t node-docker --target test . Sending build context to Docker daemon 22 .35MB Step 1 /8 : FROM node:14.15.4 as base ---> 995ff80c793e ... Step 8 ...
https://man.mtool.work/docker/24.0/language/nodejs/run-tests.html
PREV 1 2 3 4 5 6 NEXT

© Copyright 2015-2023, Docker Docs Translation Ja-Jp Project.

Built with Sphinx using a theme provided by Read the Docs.