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 - 9 of about 9 for return (0.003 sec.)
開発にコンテナを使う — Docker-docs-ja 24.0 ドキュメント 13786
開発にコンテナを使う 開発にコンテナを使う  事前準備  開発にコンテナを使う でイメージ構築をし、それコンテナ化アプリケーションとして実行します。 概要  現代的なソフトウェア開発において、テストは必要不可欠です。テストとは開発チームによって様 ... var assert = require ( 'assert' ); describe ( 'Array' , function () { describe ( '#indexOf()' , function () { it ( 'should return -1 when the value is not present' , function () { assert . equal ([ 1 , 2 , 3 ]. indexOf ( 4 ), - 1 ); }); }); }); ローカル ... npm run test Creating node-docker_notes_run ... > node-docker@1.0.0 test /code > mocha ./**/*.js Array #indexOf() ✓ should return -1 when the value is not present 1 passing ( 11ms ) テスト用のマルチステージ Dockerfile  コマンドにテスト実行を追加するだ ... $ docker run -it --rm -p 8000 :8000 node-docker > node-docker@1.0.0 test /code > mocha ./**/*.js Array #indexOf() ✓ should return -1 when the value is not present 1 passing ( 12ms ) 構築時の出力を省略しましたが、 Mocha テストランナーが完了し、全てのテス ...
https://man.mtool.work/docker/24.0/language/nodejs/run-tests.html
開発にコンテナを使う — Docker-docs-ja 24.0 ドキュメント 9131
言語別ガイド Node.js 開発にコンテナを使う 開発にコンテナを使う  事前準備  コンテナとしてイメージを実行 で、イメージ構築をし、それコンテナ化アプリケーションとして実行します。 概要  この章では、これまでのモジュールで構築したアプリケーション ... server.use() 宣言の上に追加し、ファイルを保存します。ブレイクポイントを適切に設定できるようにするため、ここで示すように、 return 宣言がその行の中にあるのを確認します。 server . use ( '/foo' , ( req , res ) => { return res . json ({ "foo" : "bar" }) }) ... 実行しているターミナルを見ると、nodemon が変更を検出し、アプリケーションを再読み込みします。 Chrome DevTools に移動し直し、 return res.json({ "foo": "bar" }) 背源を含むブレイクポイントを設定し、それからブレイクポイントをトリガとするため以下のコマンドを実 ...
https://man.mtool.work/docker/24.0/language/nodejs/develop.html
開発にコンテナを使う — Docker-docs-ja 24.0 ドキュメント 9131
言語別ガイド Python 開発にコンテナを使う 開発にコンテナを使う  事前準備  コンテナとしてイメージを実行 で、イメージ構築をし、それコンテナ化アプリケーションとして実行します。 概要  この章では、これまでのモジュールで構築したアプリケーション ... port mysql.connector import json from flask import Flask app = Flask ( __name__ ) @app . route ( '/' ) def hello_world (): return 'Hello, Docker!' @app . route ( '/widgets' ) def get_widgets (): mydb = mysql . connector . connect ( host = "mysqldb" , u ... all () json_data = [] for result in results : json_data . append ( dict ( zip ( row_headers , result ))) cursor . close () return json . dumps ( json_data ) @app . route ( '/initdb' ) def db_init (): mydb = mysql . connector . connect ( host = "mysqldb ... STS widgets" ) cursor . execute ( "CREATE TABLE widgets (name VARCHAR(255), description VARCHAR(255))" ) cursor . close () return 'init database' if __name__ == "__main__" : app . run ( host = '0.0.0.0' ) MySQL モジュールを追加し、データベースサーバに接 ...
https://man.mtool.work/docker/24.0/language/python/develop.html
Compose を始めましょう — Docker-docs-ja 24.0 ドキュメント 8933
Docker Compose Compose を始めましょう Compose を始めましょう  目次 このページにおいて Docker Compose 上で動く簡単な Python ウェブ アプリケーションを作り出しましょう。このアプリケーションは Flask フレームワークを使い、Redis を使ってアクセス ... k ( __name__ ) cache = redis . Redis ( host = 'redis' , port = 6379 ) def get_hit_count (): retries = 5 while True : try : return cache . incr ( 'hits' ) except redis . exceptions . ConnectionError as exc : if retries == 0 : raise exc retries -= 1 time ... . sleep ( 0.5 ) @app . route ( '/' ) def hello (): count = get_hit_count () return 'Hello World! I have been seen {} times. \n ' . format ( count ) この例では、 redis とはアプリケーションのネットワーク上に ... ようになります。 app.py の挨拶を書き換え、保存します。たとえば、 Hello World! メッセージを Hello from Docker! に変更します。 return 'Hello from Docker! I have been seen {} times.\n' .format ( count ) ブラウザでアプリを再読み込みします。挨拶が更新され、さ ...
https://man.mtool.work/docker/24.0/compose/gettingstarted.html
Docker configs を利用した設定データの保存 — Docker-docs-ja 24.0 ドキュメント 8556
プロダクションでアプリを実行 コンテナ設定 Swarm Docker configs を利用した設定データの保存 Docker configs を利用した設定データの保存  目次 configs について  Docker 17.06 からスウォームサービスの configs が導入されました。 これは設定ファイル ... t-ca.crt CONNECTED ( 00000003 ) depth = 1 /C = US/ST = CA/L = San Francisco/O = Docker/CN = Swarm Secret Example CA verify return :1 depth = 0 /C = US/ST = CA/L = San Francisco/O = Docker/CN = localhost verify return :1 --- Certificate chain 0 s:/C = U ... E9E1E05D3DD784F0135FB81353DA38C6D5C021CB926E844DFC49FC4 Key-Arg : None Start Time: 1481685096 Timeout : 300 ( sec ) Verify return code: 0 ( ok ) この例を実行した後に、次に示す例は確認しないのであれば、 nginx サービスと保存した secrets、config を削除しま ...
https://man.mtool.work/docker/24.0/engine/swarm/configs.html
Redis サービスの Docker 化 — Docker-docs-ja 24.0 ドキュメント 8196
Redis サービスの Docker 化 Redis サービスの Docker 化  目次 非常にシンプルで飾り気のない Redis サービスを、リンク機能を使ってウェブ・アプリケーションにアタッチします。 Redis 用の Docker コンテナを作成  まず、新しい Redis イメージ用の Dock ... オプションを使い、Docker がウェブ・アプリケーションのコンテナ内で利用可能な環境変数を作成します。 $ env | grep DB_ # Should return something similar to this with your values DB_NAME = /violet_wolf/db DB_PORT_6379_TCP_PORT = 6379 DB_PORT = tcp://172.17.0 ...
https://man.mtool.work/docker/24.0/engine/examples/running_redis_service.html
Registry 設定リファレンス — Docker-docs-ja 24.0 ドキュメント 7819
Docker Registry Registry 設定リファレンス Registry 設定リファレンス  目次 Registry の設定は YAML 形式のファイルをベースとしており、詳細は以下をご覧ください。特に気にしなくても適切な初期値が設定されています。そのため、システムをプロダクショ ... terval : 10s threshold : 3 file : - file : /path/to/checked/file interval : 10s http : - uri : http://server.to.check/must/return/200 headers : Authorization : [ Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== ] statuscode : 200 timeout : 3s interval : 10s threshol ... ed: true interval: 10s threshold: 3 file: file: /path/to/checked/file interval: 10s http: uri: http://server.to.check/must/return/200 headers: Authorization: [Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==] statuscode: 200 timeout: 3s interval: 10s threshold: 3 tc ... ted. http http is a list of HTTP URIs to be periodically checked with HEAD requests. If a HEAD request doesn't complete or returns an unexpected status code, the health check will fail. Parameter Required Description uri yes The URI to check. headers n ...
https://man.mtool.work/docker/24.0/registry/configuration.html
Nginx を認証プロキシとして使う — Docker-docs-ja 24.0 ドキュメント 7819
Docker Registry レシピ Nginx を認証プロキシとして使う Nginx を認証プロキシとして使う  目次 使用例  皆さんの中には、サービスを使うユーザの認証のために Apache のプロキシ機能を利用しているケースもあるでしょう。そして、そうなら更に活用したいと ... he user agent on ping, catch "Go *" user agents if (\$http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*\$" ) { return 404; } # To add basic authentication to v2 use auth_basic setting. auth_basic "Registry realm"; auth_basic_user_file /etc/ ...
https://man.mtool.work/docker/24.0/registry/recipes/nginx.html
自分の Python イメージを構築 — Docker-docs-ja 24.0 ドキュメント 7441
言語別ガイド Python 自分の Python イメージを構築 自分の Python イメージを構築  事前準備  Docker の概念を理解するため、導入ガイド Part 1 での説明を読み、準備をしてください。 BuildKit 有効化  イメージの構築を始める前に、マシン上で BuildKit ... app.py ファイルに追加します。 from flask import Flask app = Flask ( __name__ ) @ app . route ( '/' ) def hello_world () : return 'Hello, Docker!' アプリケーションのテスト  アプリケーションを起動し、正しく動作するか確認しましょう。ターミナルを開き、作 ...
https://man.mtool.work/docker/24.0/language/python/build-images.html
PREV 1 NEXT

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

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