Docker入門チュートリアル個人翻訳(2)構成、インストール、Docker環境のテスト

2755 ワード

テキストアドレスhttps://docs.docker.com/get-started/
Prepare your Docker environmentあなたのDocker環境Install a maintained version of Docker Community Edition(CE)or Enterprise Edition(EE)on a supported platform.サポート可能なプラットフォームに、メンテナンスを更新しているDockerコミュニティバージョンまたはエンタープライズバージョンをインストールします.
サポート可能なプラットフォームhttps://docs.docker.com/ee/supported-platforms/Dockerバージョンの詳細はhttps://docs.docker.com/install/
For full Kubernetes Integration完全なk 8 s集積Kubernetes on Docker Desktop for Mac is available in 17.12 Edge(mac 45)or 17.12 Stable(mac 46)and higher.Kubernetes on Docker Desktop for Mac 18.02以上のバージョンはMac(Stable,Edgeブランチ)Kubernetes on Docker Desktop for Windows is available in 18.02 Edge(win 50)and higher edge channels onlyをサポートする.Kubernetes on Docker Desktop for Windows 18.02以上のバージョンでWindowsをサポート(Edgeブランチのみ)
Dockerのリンクのインストールhttps://docs.docker.com/engine/installation/
Test Docker version DockerバージョンRun docker--version and ensure that you have a supported version of Docker:Dockerをインストールしたマシンでdocker--versionコマンドを実行する
To avoid permission errors (and the use of sudo), add your user to the docker group. Read more. sudoを使用して権限の問題を解決し、dockerユーザーグループにユーザーを追加します.https://docs.docker.com/install/linux/linux-postinstall/
Test Docker installation Dockerが正しくインストールされているかどうかを確認しますTest that your installation works by running the simple Docker image,hello-world:簡単なDockerミラーを実行することで、DcokerがHello-worldミラーを正しくインストールされているかどうかを検出できますダウンロードリンクhttps://hub.docker.com/_/hello-world/
List the hello-world image that was downloaded to your machine:インストールしたhello-worldミラーの使用をリスト>>docker image lsコマンド
List the hello-world container (spawned by the image) which exits after displaying its message. If it were still running,you would not need the--all option:すべてのhelloo-worldコンテナをリストして使用>>docker container ls--allコマンド
Recap and cheat sheetという部分のポイント

## List Docker CLI commands
docker
docker container --help

## Display Docker version and info
docker --version
docker version
docker info

## Execute Docker image
docker run hello-world

## List Docker images
docker image ls

## List Docker containers (running, all, all in quiet mode)
docker container ls
docker container ls --all
docker container ls -aq

Conclusion of part one

Containerization makes CI/CD seamless. For example:

applications have no system dependencies
updates can be pushed to any part of a distributed application
resource density can be optimized.
With Docker, scaling your application is a matter of spinning up new executables, not running heavy VM hosts.