---
url: 'https://www.redhat.com/topics/containers/what-is-docker'
title: 'Docker とは？をわかりやすく解説'
date: '2024-11-20T22:53:14+00:00'
updated: '2025-02-11T03:24:15+00:00'
type: website
summary: 'Docker は、オープンソースのコンテナ技術。複数の環境間で軽量なコンテナを作成し、その仮想環境でのアプリケーションの迅速なデプロイ、スケール、管理を可能にします。'
tags:
  - Article
  - Containers
  - 'Open source'
  - オープンソース
image: 'https://www.redhat.com/rhdc/managed-files/Docker%20Who200x133.jpg'
published: true
---
  

  

1. [トピックス](/ja/topics "トピックス")
2. [オープンソース](/ja/topics/open-source "オープンソース")
3. [Docker とは](# "Docker とは")

 

 

# Docker とは





 掲載  2025 年 2 月 11 日•*8* 分 (読了時間の目安)

コピーされましたコピーに失敗しましたURL をコピー





 

 

 

   

## セクションを選択

概要仕組みDocker とLinux コンテナDocker のメリット制限

 

 

## 概要



「Docker」という言葉には、オープンソース・コミュニティのプロジェクト、そのプロジェクトのツール、このプロジェクトを主にサポートしている企業としての Docker 社、そしてその企業が公式にサポートしているツールなど、複数の意味があります。テクノロジーや企業に同じ名称が使われているので、やや紛らわしい感じがするかもしれません。

「Docker」を簡単に説明すると、以下のようになります。

- IT ソフトウェアの「Docker」とは、Linux® コンテナの作成と使用を可能にするコンテナ化テクノロジーのことです。
- [オープンソースの Docker コミュニティ](https://forums.docker.com/)は、このテクノロジーを改善し、あらゆるユーザーがそのメリットを享受できるように努めています。
- 企業としての [Docker 社](https://www.docker.com/)は、Docker コミュニティの活動を基盤として、安全性をさらに高め、その成果をさらに大きなコミュニティに還元しています。そして、法人向けに改良し、強化したテクノロジーをサポートしています。

「Docker でできること」を簡単に説明すると、Docker によってコンテナを軽量なモジュール型仮想マシンのように扱うことができ、複数の環境間でコンテナを作成し、デプロイし、コピーし、移動できる柔軟性が得られます。これによって[アプリケーションをクラウド向けに最適化](/ja/topics/cloud-native-apps)することができます。

[Docker の使用を試す](https://developers.redhat.com/products/cdk/hello-world?extIdCarryOver=true&intcmp=701f2000001OMH6AAO&sc_cid=7013a000002DgDhAAK)    [Docker コンテナの管理を開始する](https://developers.redhat.com/cheat-sheets/containers)







 

## Docker の仕組み



Docker のテクノロジーでは、[Linux カーネル](/ja/topics/linux/what-is-the-linux-kernel)と [cgroup ](https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/6/html-single/resource_management_guide/index#idm139757249508416)や[名前空間](https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html/managing_monitoring_and_updating_the_kernel/what-namespaces-are_setting-limits-for-applications#doc-wrapper)などのカーネルの機能を採用しており、プロセスを隔離してそれぞれ独立して実行することが可能です。この独立性、つまり複数のプロセスやアプリケーションを互いに分離して実行できることがコンテナのポイントになります。これによりインフラストラクチャをより有効活用できると同時に、それぞれのシステムの[セキュリティが担保](/ja/topics/security)されます。

Docker を含むコンテナツールは、イメージをベースとするデプロイモデルを提供します。これにより、複数の環境間での依存関係と共にアプリケーションや一連のサービスを共有することが容易になります。Docker は、コンテナ環境内のアプリケーション (または、アプリケーションを構成する一連のプロセスを組み合わせたもの) のデプロイも自動化します。

これらのコンテナツールは Linux コンテナをベースとして構築されているので、Docker はユーザーにとって使いやすいツールとなり、これまでにない仕方でのアプリケーションへのアクセス、迅速なデプロイを可能にします。また、バージョン管理や配布も制御することができます。

[Linux コンテナとは？の詳細を見る](/ja/topics/containers/whats-a-linux-container)







 

## Red Hat のリソース











[関連情報](/ja/resources "関連情報")







 

   

## Docker と Linux コンテナの違いとは？





Docker と Linux コンテナが混同されることもありますが、Docker は従来の Linux コンテナと同じではありません。もともと Docker のテクノロジーは、[LXC](https://linuxcontainers.org/ja/) (Linux カーネルが持つコンテナ機能のためのユーザスペースのインターフェース) テクノロジーを基に構築されたもの (このためにほとんどの人は「従来の」 Linux コンテナと結び付ける) ですが、その後、この相互の関連性はなくなりました。LXC は軽量な[仮想化](/ja/topics/virtualization)ツールとしては有用でしたが、開発者やユーザーにとって使いやすいものではありませんでした。これとは対照的に、Docker テクノロジーは、コンテナの実行を可能にするだけでなく、コンテナの作成と構築、イメージの配布、イメージやその他のバージョン管理のプロセスを容易にします。

[](/rhdc/managed-files/traditional-linux-containers-vs-docker_0.png)

従来の Linux コンテナでは、複数のプロセスを管理できる init システムが使用されていました。つまり、アプリケーション全体が 1 つになって動作します。Docker テクノロジーでは、アプリケーションを個別のプロセスに分割することが推奨され、そのためのツールも提供しています。この細分化アプローチには、以下のようなメリットがあります。







 

## Docker コンテナのメリット



#### モジュール式

Docker のコンテナ化アプローチは、アプリケーション全体ではなく、アプリケーションの一部だけをアップデートしたり修復したりすることを重視しています。Docker コンテナを使用すると、この[マイクロサービス](/ja/topics/microservices)・ベースのアプローチによるメリットがあるだけでなく、[サービス指向アーキテクチャ (SOA) ](/ja/topics/cloud-native-apps/what-is-service-oriented-architecture)とほぼ同様に、複数のアプリケーション間でプロセスを共有することができます。

#### レイヤーとイメージのバージョン管理

Docker の各イメージファイルは、単一のイメージに結合された一連のレイヤーで構成されています。イメージが変更されるとレイヤーが作成されます。ユーザーが *run* (実行) や *copy*  (コピー) などのコマンドを指定するたびに、新しいレイヤーが作成されます。

Docker はこれらのレイヤーを再利用して新しいコンテナを構築するため、構築プロセスを加速します。中間の変更はイメージ間で共有されるため、速度、[サイズ](http://developers.redhat.com/blog/2016/03/09/more-about-docker-images-size/)、効率がさらに向上します。また、レイヤー化に不可欠な要素として、バージョン管理を行うこともできます。新しい変更があるたびに、基本的に変更ログが付くので、コンテナイメージを完全に管理できます。

#### ロールバック

ロールバックできることは、おそらく、レイヤー化の最も優れた点と言えます。各イメージにはレイヤーがあり、現在のイメージのイテレーションがうまくいかない場合は、以前のバージョンにロールバックできます。これにより、アジャイルなデプロイの手法がサポートされ、[継続的インテグレーションおよび継続的デプロイ (CI/CD)](/ja/topics/devops/what-is-ci-cd) がツールの観点から現実のものとなります。

#### 迅速なデプロイ

かつては、新しいハードウェアを起動し、実行し、プロビジョニングして使用できるようにするためには数日を要し、その労力とオーバーヘッドは大きな負担となっていました。Docker ベースのコンテナを使用する場合は、デプロイを数秒に短縮できます。各プロセス用のコンテナを作成することで、それらのプロセスを新しいアプリケーションとすばやく共有できます。また、コンテナの追加や移動のためにオペレーティングシステムを起動する必要はないので、デプロイ時間は飛躍的に短くなります。デプロイ時間の短縮に加えて、データの作成や、コンテナによって作成されたデータの削除を簡単に、またコスト効率の良い方法で行えます。

Docker テクノロジーは、よりきめ細かく、制御可能なマイクロサービス・ベースのアプローチをその土台としており、効率性を重視しています。







 

## Docker の使用に関する制約



Docker は、複数の単一コンテナを管理できます。しかし、使用するコンテナやコンテナ化されるアプリケーションが増えると、それらを細かく分けて管理し、オーケストレーションしていくのが困難になります。最終的には、いったん立ち止まり、コンテナをグループにまとめ、すべてのコンテナにネットワーク、セキュリティ、テレメトリーなどのサービスを提供する必要が生じます。そこで Kubernetes の出番となります。

[Kubernetes によるコンテナ・オーケストレーションとは](/ja/topics/containers/what-is-kubernetes)

Docker には、従来の Linux コンテナにあった UNIX のような機能はありません。これにはコンテナ内、そしてアプリケーションで、cron や syslog のようなプロセスを使用することも含まれます。また Docker には、従来の Linux コンテナで処理できた子プロセスが終了した後の孫プロセスのクリーンアップなどでも制限があります。このような懸念は、設定ファイルを変更し、最初にこれらの機能を設定しておくことで軽減できますが、この必要は後になってから明確になる場合が多く、早期に対応しておくことは容易とは言えません。

これに加えて、名前空間が設定されていない他の [Linux](/ja/topics/linux) サブシステムとデバイスがあります。これらには [SELinux](/ja/topics/linux/what-is-selinux)、cgroup、/dev/sd\* デバイスが含まれます。つまり、攻撃者がこれらのサブシステムの制御権を握ると、ホストが侵害されてしまいます。軽量さを重視してホストカーネルをコンテナと共有すると、このような[セキュリティ](/ja/topics/security/container-security)の脆弱性が高まる恐れがあります。コンテナは、セグメント化されホストシステムからはきちんと分離されている仮想マシンとは異なります。

[Docker コンテナは本当に安全？(英語)](https://opensource.com/business/14/7/docker-security-selinux)

[コンテナのセキュリティとは？](/ja/topics/security/container-security)

[Docker デーモン](https://docs.docker.com/engine/reference/commandline/dockerd/)も、セキュリティ上の懸念になります。Docker コンテナを使用して実行する場合には、おそらくコンテナ用の永続ランタイムである Docker デーモンを使用することになります。Docker デーモンには root 権限が必要なため、どのユーザーがこのプロセスにアクセスできるようにするかやプロセスを配置する場所などについて通常以上の注意を払う必要があります。たとえば、ローカルデーモンの方が、Web サーバーのようにより公共性の高い場所にあるものよりも攻撃にさらされる領域が小さくなります。

[Docker に導入される新たなセキュリティ機能 (英語)](https://opensource.com/business/14/9/security-for-docker)

[Red Hat のコンテナを選ぶ理由](/ja/topics/containers/why-choose-red-hat-containers)







 

 

   











### Red Hat 公式ブログ



Red Hat のお客様、パートナー、およびコミュニティのエコシステムに関する最新の情報を入手しましょう。











[関連情報](/ja/blog "Red Hat 公式ブログ")







   

 

 

   

### すべての Red Hat 製品のトライアル

Red Hat の無料トライアルは、Red Hat 製品をハンズオンでお試しいただける無料体験版です。認定の取得に向けた準備をしたり、製品が組織に適しているかどうかを評価したりするのに役立ちます。



 

    

[関連情報](/ja/products/trials "すべての Red Hat 製品のトライアル") 

 

 

 

 



 

   

## 関連情報



  











### KVM とは



 KVM (Kernel-based Virtual Machine：カーネルベースの仮想マシン) は、Linux をハイパーバイザーに変貌させるオープンソースの仮想化テクノロジーです。 









[記事を読む](/ja/topics/virtualization/what-is-KVM "article | what is KVM?&#91;DO NOT OVERWRITE JA META&#93;")





 

  











### Ansible と Terraform の違いとは？



 Red Hat Ansible Automation Platform と Terraform はどちらもオープンソースの自動化製品で、IaC の手法で IT 環境をします。用途に合わせた使い分けや併用が可能です。 









[記事を読む](/ja/topics/automation/ansible-vs-terraform "article | ansible vs terraform &#91;DO NOT OVERWRITE JA META&#93;")





 

  











### Podman とは



 Podman は、Linux システムでコンテナを開発、管理、実行するためのオープンソースツールです。 









[記事を読む](/ja/topics/containers/what-is-podman "article | What is Podman? &#91;DO NOT OVERWRITE JA META&#93;")





 

 

 

   

### オープンソースリソース



 

### 関連するコンテンツ

 

 

- ブログ投稿
    
     [Open Source Security Signals \| Q3 2026](/ja/blog/open-source-security-signals-q3-2026)
- ブログ投稿
    
     [Managing virtual machines on Red Hat OpenShift with Service Mesh](/ja/blog/managing-virtual-machines-red-hat-openshift-service-mesh)
- ブログ投稿
    
     [Strengthening the open source defense layer: Red Hat joins NVIDIA in the Open Secure AI Alliance](/ja/blog/strengthening-open-source-defense-layer-red-hat-joins-nvidias-open-secure-ai-alliance)
- ブログ投稿
    
     [The new currency of enterprise velocity](/ja/blog/new-currency-enterprise-velocity)
 
 

 

 

 

 

### 関連記事

 

 

- [Introduction to Kubernetes architecture](/ja/topics/containers/kubernetes-architecture)
- [What is container-native virtualization?](/ja/topics/containers/what-is-container-native-virtualization)
- [What is KVM?](/ja/topics/virtualization/what-is-KVM)
- [What is container orchestration?](/ja/topics/containers/what-is-container-orchestration)
- [What is a Kubernetes operator?](/ja/topics/containers/what-is-a-kubernetes-operator)
- [What is Kubernetes?](/ja/topics/containers/what-is-kubernetes)
- [Ansible vs. Terraform](/ja/topics/automation/ansible-vs-terraform)
- [Containers vs. VMs: Why not both?](/ja/topics/containers/containers-vs-vms)
- [What is Podman?](/ja/topics/containers/what-is-podman)
- [Red Hat OpenShift for developers](/ja/technologies/cloud-computing/openshift/developers)
- [What is InstructLab?](/ja/topics/ai/what-is-instructlab)
- [OpenJDK versus Oracle JDK](/ja/topics/application-modernization/openjdk-vs-oracle-jdk)
- [What is a golden image?](/ja/topics/linux/what-is-a-golden-image)
- [Ansible vs. Salt: What you need to know](/ja/topics/automation/ansible-vs-salt)
- [Ansible vs. Chef: What you need to know](/ja/topics/automation/ansible-vs-chef)
- [Ansible vs. Puppet: What you need to know](/ja/topics/automation/ansible-vs-puppet)
- [Stateful vs stateless applications](/ja/topics/cloud-native-apps/stateful-vs-stateless)
- [What is Podman Desktop?](/ja/topics/containers/what-is-podman-desktop)
- [What is CaaS?](/ja/topics/cloud-computing/what-is-caas)
- [Why use Red Hat Ansible Automation Platform with Red Hat OpenShift?](/ja/technologies/cloud-computing/openshift/ansible-on-openshift)
- [VNF and CNF, what’s the difference?](/ja/topics/cloud-native-apps/vnf-and-cnf-whats-the-difference)
- [What is KubeVirt?](/ja/topics/virtualization/what-is-kubevirt)
- [Edge computing with Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/edge-computing)
- [Red Hat OpenShift on VMware](/ja/technologies/cloud-computing/openshift/vmware)
- [What is Apache Kafka?](/ja/topics/integration/what-is-apache-kafka)
- [What is Linux?](/ja/topics/linux/what-is-linux)
- [What is CentOS?](/ja/topics/linux/what-is-centos)
- [What is MicroShift?](/ja/topics/edge-computing/microshift)
- [Understanding Ansible, Terraform, Puppet, Chef, and Salt](/ja/topics/automation/understanding-ansible-vs-terraform-puppet-chef-and-salt)
- [What's the best Linux distro for you?](/ja/topics/linux/whats-the-best-linux-distro-for-you)
- [What are sandboxed containers](/ja/topics/containers/sandboxed-containers)
- [What are hosted control planes?](/ja/topics/containers/what-are-hosted-control-planes)
- [Red Hat OpenShift vs. Kubernetes: What's the difference?](/ja/technologies/cloud-computing/openshift/red-hat-openshift-kubernetes)
- [What is Argo CD?](/ja/topics/devops/what-is-argocd)
- [Ansible vs. Red Hat Ansible Automation Platform](/ja/technologies/management/ansible/ansible-vs-red-hat-ansible-automation-platform)
- [How Kubernetes can help AI/ML](/ja/topics/cloud-computing/how-kubernetes-can-help-ai)
- [What is Kubeflow?](/ja/topics/cloud-computing/what-is-kubeflow)
- [What is an image builder?](/ja/topics/linux/what-is-an-image-builder)
- [What are CentOS replacements?](/ja/topics/linux/centos-alternatives)
- [What is Skopeo?](/ja/topics/containers/what-is-skopeo)
- [What is the Kubernetes Java client?](/ja/topics/cloud-computing/what-is-kubernetes-java-client)
- [What is kubernetes security?](/ja/topics/containers/kubernetes-security)
- [Kubernetes on AWS: Self-Managed vs. Managed Applications Platforms](/ja/topics/containers/kubernetes-on-aws)
- [What is Helm?](/ja/topics/devops/what-is-helm)
- [What are Red Hat OpenShift Operators?](/ja/technologies/cloud-computing/openshift/what-are-openshift-operators)
- [Red Hat OpenShift vs. OKD](/ja/topics/containers/red-hat-openshift-okd)
- [What is a Kubernetes cluster?](/ja/topics/containers/what-is-a-kubernetes-cluster)
- [What is CentOS Stream?](/ja/topics/linux/what-is-centos-stream)
- [What is a Linux container?](/ja/topics/containers/whats-a-linux-container)
- [What is Kogito?](/ja/topics/automation/what-is-kogito)
- [What is Grafana?](/ja/topics/data-services/what-is-grafana)
- [What is a container registry?](/ja/topics/cloud-native-apps/what-is-a-container-registry)
- [What is containerization?](/ja/topics/cloud-native-apps/what-is-containerization)
- [What is YAML?](/ja/topics/automation/what-is-yaml)
- [What is Cloud Foundry?](/ja/topics/application-modernization/what-is-cloud-foundry)
- [What are microservices?](/ja/topics/microservices/what-are-microservices)
- [OpenShift vs. OpenStack: What are the differences?](/ja/technologies/cloud-computing/openshift/openshift-vs-openstack)
- [What is container security?](/ja/topics/security/container-security)
- [What is Buildah?](/ja/topics/containers/what-is-buildah)
- [Kubernetes vs OpenStack](/ja/topics/containers/kubernetes-toopenstack)
- [Spring on Kubernetes with Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/spring)
- [Why run Apache Kafka on Kubernetes?](/ja/topics/integration/why-run-apache-kafka-on-kubernetes)
- [What is high availability and disaster recovery for containers?](/ja/topics/containers/high-availability-containers)
- [What are Red Hat OpenShift cloud services?](/ja/technologies/cloud-computing/openshift/what-are-red-hat-openshift-managed-services)
- [Using Helm with Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/helm)
- [Kubernetes security best practices](/ja/topics/containers/kubernetes-security-best-practices)
- [Orchestrating Windows containers on Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/windows-containers-on-red-hat-openshift)
- [What is open source software?](/ja/topics/open-source/what-is-open-source-software)
- [Open source vs. proprietary software in vehicles](/ja/topics/open-source/open-source-vs-proprietary-software-in-vehicles)
- [High performance computing with Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/high-performance-computing)
- [Advantages of Kubernetes-native security](/ja/topics/containers/advantages-of-kubernetes-native-security)
- [What is KubeLinter?](/ja/topics/containers/what-is-kubelinter)
- [Container and Kubernetes compliance considerations](/ja/topics/containers/compliance)
- [Intro to Kubernetes security](/ja/topics/containers/intro-kubernetes-security)
- [How microservices support IT integration in healthcare](/ja/topics/microservices/microservices-in-healthcare)
- [Kubernetes cluster management](/ja/technologies/cloud-computing/openshift/kubernetes-cluster-management)
- [Red Hat OpenShift on IBM IT infrastructure](/ja/technologies/cloud-computing/openshift/what-is-red-hat-openshift-on-IBM-IT-infrastructure)
- [Red Hat OpenShift for business leaders](/ja/technologies/cloud-computing/openshift/business-leaders)
- [How to deploy Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/deploy-red-hat-openshift)
- [Cost management for Kubernetes on Red Hat OpenShift](/ja/technologies/cloud-computing/openshift/cost-management)
- [What makes Red Hat OpenShift the right choice for SAP?](/ja/technologies/cloud-computing/openshift/sap)
- [Kubernetes-native Java development with Quarkus](/ja/technologies/cloud-computing/openshift/quarkus)
- [What is enterprise Kubernetes?](/ja/topics/containers/what-is-enterprise-kubernetes)
- [What is RKT?](/ja/topics/containers/what-is-rkt)
- [What makes Red Hat OpenShift the right choice for IT operations?](/ja/technologies/cloud-computing/openshift/it-operations)
- [Why choose Red Hat for Kubernetes?](/ja/topics/containers/why-choose-red-hat-kubernetes)
- [What is Kubernetes role-based access control (RBAC)](/ja/topics/containers/what-kubernetes-role-based-access-control-rbac)
- [What was CoreOS and CoreOS container Linux](/ja/technologies/cloud-computing/openshift/what-was-coreos)
- [Learning Kubernetes basics](/ja/topics/containers/learning-kubernetes-tutorial)
- [What is service-oriented architecture?](/ja/topics/cloud-native-apps/what-is-service-oriented-architecture)
- [What is the Kubernetes API?](/ja/topics/containers/what-is-the-kubernetes-api)
- [What is Kubernetes cluster management?](/ja/topics/containers/what-is-kubernetes-cluster-management)
- [What is a Kubernetes deployment?](/ja/topics/containers/what-is-kubernetes-deployment)
- [Why choose the Red Hat build of Quarkus?](/ja/topics/cloud-native-apps/why-choose-red-hat-quarkus)
- [Introduction to Kubernetes patterns](/ja/topics/cloud-native-apps/introduction-to-kubernetes-patterns)
- [What is Quarkus?](/ja/topics/cloud-native-apps/what-is-quarkus)
- [What is Jaeger?](/ja/topics/microservices/what-is-jaeger)
- [What is open source?](/ja/topics/open-source/what-is-open-source)
- [What is etcd?](/ja/topics/containers/what-is-etcd)
- [What is Clair?](/ja/topics/containers/what-is-clair)
- [What is Istio?](/ja/topics/open-source/istio-toha)
- [What is Knative?](/ja/topics/microservices/what-is-knative)
- [Why choose Red Hat for microservices?](/ja/topics/microservices/why-choose-red-hat-microservices)
- [What is network-attached storage?](/ja/topics/data-storage/network-attached-storage)
- [What is software-defined storage?](/ja/topics/data-storage/software-defined-storage)
- [Why choose Red Hat for containers?](/ja/topics/containers/why-choose-red-hat-containers)
- [What is a Kubernetes pod?](/ja/topics/containers/what-is-kubernetes-pod)
 
 

 

   

[このトピックについてさらに詳しく](/ja/topics/open-source "このトピックについてさらに詳しく")