Docker ドキュメント 全文検索
Results of 1 - 10 of about 28 for base (0.003 sec.)
- 開発にコンテナを使う — Docker-docs-ja 24.0 ドキュメント 12928
- 開発にコンテナを使う 開発にコンテナを使う 事前準備 開発にコンテナを使う でイメージ構築をし、それコンテナ化アプリケーションとして実行します。 概要 現代的なソフトウェア開発において、テストは必要不可欠です。テストとは開発チームによって様
...以下の Dockerfile はテストを実行し、プロダクションのイメージを構築します。 # syntax=docker/dockerfile:1 FROM node:14.15.4 as base WORKDIR /code COPY package.json package.json COPY package-lock.json package-lock.json FROM base as test RUN npm ci COPY ..... CMD [ "npm" , "run" , "test" ] FROM base as prod RUN npm ci --production COPY . . CMD [ "node" , "server.js" ] まず、 FROM node:14.15.4 命令に as base ラベルを追加...ernal ] load .dockerignore ... = > [ internal ] load build context 4 .2s = > = > transferring context: 9 .00MB 4 .1s = > [ base 2 /4 ] WORKDIR /code 0 .2s = > [ base 3 /4 ] COPY package.json package.json 0 .0s = > [ base 4 /4 ] COPY package-lock.json... - https://man.mtool.work/docker/24.0/language/nodejs/run-tests.html
- マウント — Docker-docs-ja 24.0 ドキュメント 11601
- Docker で構築 マウント マウント 目次 このセクションでは、Docker の構築( docker build )で :ruby:`キャッシュ マウント <cache mount>` と :ruby:`バインド マウント <bind mount>` を使う方法を説明します。 キャッシュマウントでは、構築中に使用す
...kg/mod ディレクトリをマウントします。 # syntax = docker/dockerfile:1 FROM golang: {{ site.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 down...load -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/server + RUN --mount = type = cache,target = /go/pkg/mod/ \ + go build... - https://man.mtool.work/docker/24.0/build/guide/mounts.html
- マルチステージ — Docker-docs-ja 24.0 ドキュメント 11273
- Docker で構築 マルチステージ マルチステージ 目次 このセクションは :ruby:`マルチステージビルド <multi-stage build>` を見ていきます。マルチステージビルドを使う理由は、主に2つあります。 構築ステップを並列に実行できるため、構築パイプラインをよ
...とアプリケーション依存関係の、それぞれのバイナリが必要です。これらに共通するステップを、再利用可能な :ruby:`ベースステージ <base stage>` として定義できます。これを可能とするには、 FROM イメージ AS ステージ名 のパターンを使い、ステージに対して名前を割り...x=docker/dockerfile:1 - FROM golang:{{site.example_go_version}}-alpine + FROM golang:{{site.example_go_version}}-alpine AS base WORKDIR /src COPY go.mod go.sum . RUN go mod download COPY . . + + FROM base AS build-client RUN go build -o /bin/client ..../cmd/client + + FROM base AS build-server RUN go build -o /bin/server ./cmd/server FROM scratch - COPY --from=0 /bin/client /bin/server /bin/ + COPY... - https://man.mtool.work/docker/24.0/build/guide/multi-stage.html
- :ruby:`ストレージ ドライバ <storage driver>` について — Docker-docs-ja 24.0 ド... 11044
- プロダクションでアプリを実行 ストレージ概要 コンテナ内にデータを保管 :ruby:`ストレージ ドライバ <storage driver>` について :ruby:`ストレージ ドライバ <storage driver>` について 目次 :ruby:`ストレージ ドライバ <storage driver>` を効率的に使
...l ディレクトリ名とレイヤー ID は対応していません。 2つの異なる Dockerfile を持っていると想像してください。1つめは acme/my-base-image:1.0 という名前のイメージを作成します。 # syntax=docker/dockerfile:1 FROM alpine RUN apk add --no-cache bash 2つめのイ...メージは、 acme/my-base-image:1.0 を元にしますが、レイヤーを追加します。 # syntax=docker/dockerfile:1 FROM acme/my-base-image:1.0 COPY . /app RUN...う名前のファイルを作成し、以下の内容にします。 #!/usr/bin/env bash echo "Hello world" 1つめの Dockerfile として、 Dockerfile.base という名前の新しいファイルに、先の内容をコピーします。 2つめの Dockerfile として、 Dockerfile という名前のファイルに、先の... - https://man.mtool.work/docker/24.0/storage/storagedriver/
- docker search — Docker-docs-ja 24.0 ドキュメント 10044
- コマンドライン リファレンス Docker CLI (docker) docker search docker search 目次 説明 Docker Hub のイメージを検索します。 使い方 $ docker search [ OPTIONS ] TERM 補足説明 Docker Hub のイメージを検索します。 コマンドの使用例は、以下の
...例は busybox を含むイメージを表示します。 $ docker search busybox NAME DESCRIPTION STARS OFFICIAL AUTOMATED busybox Busybox base image. 316 [ OK ] progrium/busybox 50 [ OK ] radial/busyboxplus Full-chain, Internet enabled, busybox made... 8 [ OK ] odi...se/busybox-python 2 [ OK ] azukiapp/busybox This image is meant to be used as the base... 2 [ OK ] ofayau/busybox-jvm Prepare busybox to install a 32 bits JVM. 1 [ OK ] shingonoide/archlinux-busybox Arch Linux...ata Docker image suitable for data volume cont... 1 [ OK ] elektritter/busybox-teamspeak Leightweight teamspeak3 container based on... 1 [ OK ] socketplane/busybox 1 [ OK ] oveits/docker-nginx-busybox This is a tiny NginX docker image based on... 0 [... - https://man.mtool.work/docker/24.0/engine/reference/commandline/search.html
- Dockerfile やベースイメージの指定 — Docker-docs-ja 24.0 ドキュメント 9831
- Docker Desktop Dev Environments (Beta) Dockerfile やベースイメージの指定 Dockerfile やベースイメージの指定 目次 Dockerfile の指定 JSON ファイルを使い、 Dev Environment を定義する Dockerfile を指定します。これを .docker フォルダの中に入れ
...Dockerfile.devenv 内で、 docker グループ内に vscode ユーザを含める必要があります。 # syntax=docker/dockerfile:1 FROM <your base image> RUN useradd -s /bin/bash -m vscode \ && groupadd docker \ && usermod -aG docker vscode USER vscode ベースイメージの...およびマルチコンテナアプリケーションの設定が、 Compose ベースの実装に移行する可能性があります。 参考 Specify a Dockerfile or base image https://docs.docker.com/desktop/dev-environments/specify/ 関連キーワード Dockerfile イメージ docker ベース vscode ユ...ーザ devenv image Environment フォルダ config json dockerfile root Docker base jekyll リリース 目次 依存 家計 幸い compose ツール グループ内... - https://man.mtool.work/docker/24.0/desktop/dev-environments/specify.html
- ベース イメージの作成 — Docker-docs-ja 24.0 ドキュメント 8717
- ベース イメージの作成 ベース イメージの作成 目次 ほとんどの Dockerfile は :ruby:`親イメージ <parent image>` を元にしています。イメージの内容を完全に管理する必要があれば、 :ruby:`ベース イメージ <base image>` の代わりになるものを作成する必
...。 あなたの目標が何らかの新しい公式イメージの作成であれば、 Docker の 公式イメージ にある記述をご覧ください。 参考 Create a base image https://docs.docker.com/develop/develop-images/baseimages/ 関連キーワード イメージ Dockerfile docker scratch Docker...hello 命令 構築 focal build ベース Ubuntu ruby image リポジトリ コンテナ container 全体 base 特定 パッケージ ディストリビューション マシン sudo https... - https://man.mtool.work/docker/24.0/build/building/base-images.html
- Compose で GPU アクセスの有効化 — Docker-docs-ja 24.0 ドキュメント 7947
- Docker Compose Compose で GPU アクセスの有効化 Compose で GPU アクセスの有効化 目次 Docker ホストに GPU デバイスが入っており、かつ、 Docker デーモンで適切な設定がある場合、 Compose サービスで GPU デバイス予約を定義できます。このために、 必
...す。しかし、こちらを使うと、 GPU デバイスにある特定のプロパティを制御できません。 services : test : image : nvidia/cuda:10.2-base command : nvidia-smi runtime : nvidia サービス用コンテナで GPU アクセスの有効化 Docker Compose v1.28.0 以上では、Compose...ください。 この Compose ファイル例は、1 GPU デバイスにアクセスするサービスを実行: services : test : image : nvidia/cuda:10.2-base command : nvidia-smi deploy : resources : reservations : devices : - driver : nvidia count : 1 capabilities : [ gpu ] Dock... - https://man.mtool.work/docker/24.0/compose/gpu-support.html
- docker buildx bake — Docker-docs-ja 24.0 ドキュメント 7718
- コマンドライン リファレンス Docker CLI (docker) docker buildx docker buildx bake docker buildx bake 目次 説明 ファイルから構築します。 使い方 $ docker buildx bake [ オプション ] [ 対象... ] 補足説明 bake はハイレベルな構築コマンドで
...[ backend internal ] load build definition from Dockerfile 0 .2s = > = > transferring dockerfile: 3 .73kB 0 .0s = > [ database internal ] load build definition from Dockerfile 0 .1s = > = > transferring dockerfile: 5 .77kB 0 .0s ... 構築対象の名前を...ると、指定したターゲット(対象)のみ構築します。以下の例は、 docker-compose.dev.yaml ファイル内で定義された、 backend と database ターゲットを構築します。 frontend ターゲットは構築をスキップします。 $ docker buildx bake -f docker-compose.dev.yaml backe...nd database [ + ] Building 2 .4s ( 13 /13 ) FINISHED = > [ backend internal ] load build definition from Dockerfile 0 .1s = > = > tran... - https://man.mtool.work/docker/24.0/engine/reference/commandline/buildx_bake.html
- docker history — Docker-docs-ja 24.0 ドキュメント 7603
- コマンドライン リファレンス Docker CLI (docker) docker history docker history 目次 説明 イメージの :ruby:`履歴 <history>` を表示します。 使い方 $ docker history [ OPTIONS ] IMAGE コマンドの使用例は、以下の 使用例のセクション をご覧くだ
...tory docker:scm IMAGE CREATED CREATED BY SIZE COMMENT 2ac9d1098bf1 3 months ago /bin/bash 241 .4 MB Added Apache to Fedora base image 88b42ffd1f7c 5 months ago /bin/sh -c #(nop) ADD file:1fd8d7f9f6557cafc7 373.7 MB c69cab00d6ef 5 months ago /bin/sh -... - https://man.mtool.work/docker/24.0/engine/reference/commandline/history.html