Skip to content

Commit

Permalink
update Desktop hands-on guides
Browse files Browse the repository at this point in the history
  • Loading branch information
zembutsu committed Jul 20, 2023
1 parent a43461a commit c54a2c0
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 0 deletions.
Binary file added get-started/images/getting-started-pull.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added get-started/images/getting-started-push.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added get-started/images/getting-started-run.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added get-started/images/getting-started-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added get-started/images/getting-started-sign-in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added get-started/images/getting-started-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions get-started/publish-your-own-image.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
.. -*- coding: utf-8 -*-
.. URL: https://docs.docker.com/get-started/publish-your-own-image/
doc version: 24.0
https://github.com/docker/docs/blob/main/get-started/publish-your-own-image.md
.. check date: 2023/07/20
.. Commits on Mar 29, 2023 2bb51097108a4de4259828fc299d54b358a76baf
.. -----------------------------------------------------------------------------
.. Run Docker Hub images
.. _run-docker-hub-images:

========================================
Docker Hub イメージの実行
========================================

.. sidebar:: 目次

.. contents::
:depth: 2
:local:

.. Follow this guide to learn how you can share your packaged application in an image using Docker Hub.
以下のガイドでは、イメージ内にパッケージ化したアプリケーションを、Docker Hub を使って共有できる方法を学びます。

.. Step 1: Get an image
.. _Step-1-Get-an-image:

ステップ1:イメージの取得
==============================

.. Before you publish your image, you need an image to publish. For this guide, use the welcome-to-docker image.
イメージを公開する前に、公開するイメージが必要です。このガイドでは ``welcome-to-docker`` イメージを使います。

.. To get the image, use Docker Desktop to search for the welcome-to-docker image, and then select Pull.
イメージを取得するには、 Docker Desktop で ``welcome-to-docker`` イメージを検索し、それから **Pull** を選びます。

.. image:: ./images/getting-started-pull.gif
:width: 100%
:alt: イメージの取得

.. Step 2: Sign in to Docker
.. _step-2-sign-in-to-docker:

ステップ2:Docker にサインイン
==============================

.. To publish images publicly on Docker Hub, you first need an account. Select Sign in on the top-right of Docker Desktop to either sign in or create a new account on Docker Hub.
Docker Hub にイメージを公開するには、アカウントが必要です。Docker Desktop の右上にある **Sign in** を選び、Docker Hub にサインインするか新しいアカウントを作成します。

.. image:: ./images/getting-started-sign-in.png
:width: 100%
:alt: Docker にサインイン


.. Step 3: Rename your image
.. _Step-3-Rename-your-image:

ステップ3:イメージの名前変更
==============================

.. Before you can publish your image to Docker Hub, you need to rename it so that Docker Hub knows that the image is yours. Run the following docker tag command in your terminal to rename your image. Replace YOUR-USERNAME with your Docker ID.
イメージを Docker Hub に送信できるようにする前に、イメージの名前を変更する必要があります。これは Docker Hub にイメージが自分のものだと識別させるためです。ターミナル内で以下の ``docker tag`` コマンドを実行し、イメージの名前を変更します。 ``YOUR-USERNAME`` は自分の Docker ID に置き換えてください。

.. code-block:: bash
$ docker tag docker/welcome-to-docker YOUR-USERNAME/welcome-to-docker
.. Step 4: Push your image to Docker Hub
.. _Step-4-Push-your-image-to-Docker-Hub:

ステップ4:Docker Hub にイメージを送信
========================================

.. In Docker Desktop, go to the Images tab and find your image. In the Actions column, select the Show image actions icon and then select Push to Hub. Your image uploads to Docker Hub and is publicly available for anyone to use.
Docker Desktop 上で **images** タブに移動して、自分のイメージを見つけます。 **Actions** 列で、**Show images action** アイコン(⋮)を選び、 **Push to Hub** を選びます。イメージが Docker Hub にアップロードされれば、誰でも使えるように公開状態となります。

.. image:: ./images/getting-started-push.gif
:width: 100%
:alt: イメージを Docker Hub に送信

.. Step 5: Verify the image is on Docker Hub
.. _step-5-verify-the-image-is-on-docker-hub:

ステップ5:Docker Hub 上でイメージを確認
=======================================

.. That’s it! Your image is now shared on Docker Hub. In your browser, go to Docker Hub and verify that you see the welcome-to-docker repository.
以上です! イメージは Docker Hub 上で共有されています。ブラウザで `Docker Hub <https://hub.docker.com/>`_ を開き、 ``welcome-to-docker`` リポジトリが見えるのを確認します。


.. What’s next
次は何をしますか
==============================

.. In this guide you learned how to publish your own image to Docker Hub. Continue to the following language-specific guides to learn more about creating images for applications in other languages:
このガイドでは Docker Hub に自分のイメージを公開する方法を学びました。他の言語によるアプリケーションのイメージ構築について学ぶには、以下の言語別ガイドに進んでください。

* :doc:`Node.js </language/nodejs/index>`
* :doc:`Python </language/python/index>`
* :doc:`Go </language/golang/toc>`
* :doc:`Java </language/java/toc>`
* :doc:`C# (.NET) </language/dotnet/toc>`


.. seealso::

Publish your images
https://docs.docker.com/get-started/publish-your-own-image/



92 changes: 92 additions & 0 deletions get-started/run-docker-hub-images.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. -*- coding: utf-8 -*-
.. URL: https://docs.docker.com/get-started/run-docker-hub-images/
doc version: 24.0
https://github.com/docker/docs/blob/main/get-started/run-docker-hub-images.md
.. check date: 2023/07/20
.. Commits on Mar 29, 2023 2bb51097108a4de4259828fc299d54b358a76baf
.. -----------------------------------------------------------------------------
.. Run Docker Hub images
.. _run-docker-hub-images:

========================================
Docker Hub イメージの実行
========================================

.. sidebar:: 目次

.. contents::
:depth: 2
:local:

.. You can share and store images in Docker Hub (http://hub.docker.com). Docker hub has over 100,000 images created by developers that you can run locally. You can search for Docker Hub images and run them directly from Docker Desktop.
Docker Hub ( https://hub.docker.com )でイメージの共有や保管ができます。Docker Hub では開発者によって作られた 100,000 以上のイメージがあり、それらをローカルで動かせます。Docker Desktop から直接 Docker Hub のイメージを探したり実行したりできます。

.. Step 1: Search for the image
.. _step-1-search-for-the-image:

ステップ1:イメージの検索
==============================

.. You can search for Docker Hub images on Docker Desktop. Use the search bar, or use the shortcut ⌘K on Mac or Ctrl + K on Windows. In the search bar, specify welcome-to-docker to find the docker/welcome-to-docker image used in this guide.
Docker Desktop 上で Docker Hub のイメージを検索できます。検索バーを使うか、Mac os ではショートカット ⌘K または Windows ではショートカット Ctrl + K を使います。このガイドで使うイメージ ``docker/welcome-to-docker`` を探すには、検索バーで ``welcome-to-docker`` と入力します。

.. image:: ./images/getting-started-search.png
:width: 100%
:alt: Docker Desktop で welcome-to-docker イメージを検索

.. Step 2: Run the image
.. _step-2-Run-the-image:

ステップ2:イメージの実行
==============================

.. To run the docker/welcome-to-docker image, select Run. When the Optional settings appear, specify the Host port number 8090 and then select Run.
``docker/welcome-to-docker`` イメージを実行するには、 **Run** を選びます。 **Optional settings** が表示されたら、 **Host port** 番号を ``8090`` にしてから **Run** を選びます。

.. image:: ./images/getting-started-run.gif
:width: 100%
:alt: Docker Desktop でイメージを実行

.. note::

.. Many images hosted on Docker Hub have a description that highlights what settings must be set in order to run them. You can read the description for the image on Docker Hub by selecting View on Hub or by searching for the image directly on https://hub.docker.com.
Docker Hub 上にあるイメージの多くには、イメージを実行するために必要となる主な設定についての説明があります。 Docker Hub 上でイメージの説明を読むには、 **View on Hub** を選ぶか、 https://hub.docker.com 上で直接イメージを検索します。

.. Step 3: Explore the container
.. _Step-3-Explore-the-container:

ステップ3:コンテナの調査
==============================

.. That’s it! The container is ready to use. Go to the Containers tab in Docker Desktop to view the container.
これで終わりです! コンテナを使う準備が調いました。Docker Desktop の **Containers** タブに移動し、コンテナを表示しましょう。

.. image:: ./images/getting-started-view.png
:width: 100%
:alt: Docker Desktop の Containers タブで表示

.. What’s next
次は何をしますか
====================

.. In this guide, you ran someone else’s image from Docker Hub. Continue to the next guide to learn how you can publish your own image to Docker Hub.
このガイドでは、Docker Hub 上にある他人のイメージを実行しました。続いてのガイドでは、自分のイメージを Docker Hub に送信する方法を学びます。

* :doc:`イメージの公開 <publish-your-own-image>`


.. seealso::

Run Docker Hub images
https://docs.docker.com/get-started/run-docker-hub-images/



0 comments on commit c54a2c0

Please sign in to comment.