Install Docker Compose

Ask me about Docker

Get instant answers to your Docker questions. I can help with commands, concepts, troubleshooting, and best practices.

Try asking:

How do Docker Hardened Images work? What is MCP Toolkit? How do I create an org? Was this helpful? Helpful Not quite Copy

remaining in this thread.

You've reached the maximum of questions per thread. For better answer quality, start a new thread.

Start a new thread Context

When enabled, Gordon considers the current page you're viewing to provide more relevant answers.

Share feedbackAnswers are generated based on the documentation. BackManuals
  • Get started
  • Guides
  • Reference
  • Docker Engine
    • Install
      • Ubuntu
      • Debian
      • RHEL
      • Fedora
      • Raspberry Pi OS (32-bit / armhf)
      • CentOS
      • SLES (s390x)
      • Binaries
      • Post-installation steps
    • Storage
      • Volumes
      • Bind mounts
      • tmpfs mounts
      • Storage drivers
        • Select a storage driver
        • BTRFS storage driver
        • Device Mapper storage driver (deprecated)
        • OverlayFS storage driver
        • VFS storage driver
        • windowsfilter storage driver
        • ZFS storage driver
      • containerd image store
    • Networking
      • Docker with iptables
      • Docker with nftables
      • Packet filtering and firewalls
      • Port publishing and mapping
      • Network drivers
        • Bridge network driver
        • Host network driver
        • IPvlan network driver
        • Macvlan network driver
        • None network driver
        • Overlay network driver
      • CA certificates
      • Legacy container links
    • Containers
      • Start containers automatically
      • Run multiple processes in a container
      • Resource constraints
      • Runtime metrics
      • Running containers
    • CLI
      • Completion
      • Proxy configuration
      • Filter commands
      • Format command and log output
      • OpenTelemetry for the Docker CLI
    • Daemon
      • Start the daemon
      • Use IPv6 networking
      • Daemon proxy configuration
      • Live restore
      • Alternative container runtimes
      • Collect Docker metrics with Prometheus
      • Configure remote access for Docker daemon
      • Read the daemon logs
      • Troubleshooting the Docker daemon
    • Manage resources
      • Docker contexts
      • Docker object labels
      • Prune unused Docker objects
    • Logs and metrics
      • Configure logging drivers
      • Customize log driver output
      • Logging drivers
        • Amazon CloudWatch Logs logging driver
        • ETW logging driver
        • Fluentd logging driver
        • Google Cloud Logging driver
        • Graylog Extended Format logging driver
        • Journald logging driver
        • JSON File logging driver
        • Local file logging driver
        • Splunk logging driver
        • Syslog logging driver
      • Use a logging driver plugin
      • Use docker logs with remote logging drivers
    • Security
      • Rootless mode
        • Tips
        • Troubleshooting
      • Antivirus software and Docker
      • AppArmor security profiles for Docker
      • Content trust in Docker
        • Automation with content trust
        • Delegations for content trust
        • Deploy Notary Server with Compose
        • Manage keys for content trust
        • Play in a content trust sandbox
      • Docker security non-events
      • Isolate containers with a user namespace
      • Protect the Docker daemon socket
      • Seccomp security profiles for Docker
      • Verify repository client with certificates
    • Swarm mode
      • Administer and maintain a swarm of Docker Engines
      • Deploy a stack to a swarm
      • Deploy services to a swarm
      • Getting started with Swarm mode
        • Create a swarm
        • Add nodes to the swarm
        • Deploy a service to the swarm
        • Inspect a service on the swarm
        • Scale the service in the swarm
        • Delete the service running on the swarm
        • Apply rolling updates to a service
        • Drain a node on the swarm
      • How swarm works
        • How nodes work
        • How services work
        • Manage swarm security with public key infrastructure (PKI)
        • Swarm task states
      • Join nodes to a swarm
      • Lock your swarm to protect its encryption key
      • Manage nodes in a swarm
      • Manage sensitive data with Docker secrets
      • Manage swarm service networks
      • Raft consensus in swarm mode
      • Run Docker Engine in swarm mode
      • Store configuration data using Docker Configs
      • Swarm mode key concepts
      • Use Swarm mode routing mesh
    • Deprecated features
    • Docker Engine plugins
      • Access authorization plugin
      • Docker log driver plugins
      • Docker network driver plugins
      • Docker Plugin API
      • Docker volume plugins
      • Plugin Config Version 1 of Plugin V2
      • Use Docker Engine plugins
    • Release notes
      • Engine v29
      • Engine v28
      • Engine v27
      • Engine v26.1
      • Engine v26.0
      • Engine v25.0
      • Engine v24.0
      • Engine v23.0
      • Engine v20.10
      • Engine v19.03
      • Engine v18.09
      • Engine v18.06
      • Engine v18.05
      • Engine v18.04
      • Engine v18.03
      • Engine v18.02
      • Engine v18.01
      • Engine v17.12
      • Engine v17.11
      • Engine v17.10
      • Engine v17.09
      • Engine v17.07
      • Engine v17.06
      • Engine v17.05
      • Engine v17.04
      • Engine v17.03
      • Prior releases
  • Docker Build
    • Core concepts
      • Docker Build Overview
      • Dockerfile overview
      • Build context
    • Build checks
    • Building
      • Multi-stage
      • Variables
      • Secrets
      • Multi-platform
      • Export binaries
      • Container Device Interface (CDI)
      • Best practices
      • Base images
    • Builders
      • Build drivers
        • Docker container driver
        • Docker driver
        • Kubernetes driver
        • Remote driver
      • Manage builders
    • Bake
      • Introduction
      • Targets
      • Inheritance
      • Variables
      • Expressions
      • Functions
      • Matrix targets
      • Contexts
      • Bake file reference
      • Bake standard library functions
      • Building with Bake from a Compose file
      • Overriding configurations
      • Remote Bake file definition
    • Cache
      • Build cache invalidation
      • Build garbage collection
      • Cache storage backends
        • Amazon S3 cache
        • Azure Blob Storage cache
        • GitHub Actions cache
        • Inline cache
        • Local cache
        • Registry cache
      • Optimize cache usage in builds
    • CI
      • GitHub Actions
        • Annotations
        • Attestations
        • Build checks
        • Build secrets
        • Build summary
        • BuildKit configuration
        • Cache management
        • Copy image between registries
        • Export to Docker
        • Local registry
        • Multi-platform image
        • Named contexts
        • Push to multiple registries
        • Reproducible builds
        • Share image between jobs
        • Tags and labels
        • Test before push
        • Update Docker Hub description
    • Validating builds Experimental
      • Introduction
      • Usage
      • Image validation
      • Git validation
      • Templates & examples
      • Testing
      • Debugging
      • Input reference
      • Built-in functions
    • Metadata
      • Annotations
      • Build attestations
        • Image attestation storage
        • Provenance attestations
        • SBOM attestations
        • SLSA definitions
    • Exporters
      • Image and registry exporters
      • Local and tar exporters
      • OCI and Docker exporters
    • BuildKit
      • buildkitd.toml
      • Configure BuildKit
      • Custom Dockerfile syntax
      • Dockerfile release notes
    • Debugging
      • OpenTelemetry support
    • Build release notes
  • Docker Compose
    • Introduction to Compose
      • How Compose works
      • Why use Compose?
      • History and development
    • Install
      • Plugin
      • Standalone (Legacy)
      • Uninstall
    • Quickstart
    • How-tos
      • Specify a project name
      • Use lifecycle hooks
      • Use service profiles
      • Control startup order
      • Use environment variables
        • Set environment variables
        • Environment variables precedence
        • Pre-defined environment variables
        • Interpolation
        • Best practices
      • Build dependent images
      • Use Compose Watch
      • Secrets in Compose
      • Networking
      • Use multiple Compose files
        • Merge
        • Extend
        • Include
      • Enable GPU support
      • Use Compose in production
      • OCI artifact applications
      • Use provider services
    • Compose Bridge
      • Usage
      • Customize
      • Use Model Runner
    • Compose SDK New
    • Support and feedback
      • FAQs
      • Give feedback
    • Release notes
  • Testcontainers
  • cagent Experimental
    • Model providers
    • Local models
    • Building a coding agent
    • Best practices
    • Sharing agents
    • Integrations
      • A2A
      • ACP
      • MCP
    • Reference
      • Configuration file
      • Toolsets
      • CLI
      • Examples
    • RAG
    • Evals
  • MCP Catalog and Toolkit Beta
    • Get started
    • MCP Catalog
    • MCP Toolkit
    • Dynamic MCP New
    • MCP Gateway
    • Hub MCP server
    • Security FAQs
    • E2B sandboxes
  • Docker Sandboxes Experimental
    • Get started
    • Configure Claude Code
    • Workflows
    • Custom templates
    • Supported agents
    • Troubleshooting
    • Network policies
    • Architecture
    • Migrating from legacy sandboxes
  • Model Runner
    • Get started with DMR
    • DMR REST API
    • Configuration options
    • DMR examples
    • IDE and tool integrations
    • Open WebUI integration
    • Inference engines
  • Ask Gordon Beta
    • Model Context Protocol (MCP)
      • Built-in tools in Gordon
      • Configure MCP servers with YAML
  • AI and Docker Compose
    • Use AI models in Compose
  • Docker Hardened Images New
    • Quickstart
    • Features
    • Explore
      • Hardened images
      • Build process
      • Image types
      • Scanner integrations
      • Image testing
      • Responsibility overview
      • Feedback
    • Migration
      • Migration checklist
      • AI-assisted migration Experimental
      • Migrate from Alpine or Debian
      • Migrate from Ubuntu
      • Migrate from Wolfi
      • Migration examples
        • Go
        • Python
        • Node.js
    • How-tos
      • Explore images
      • Mirror a repository
      • Customize an image or chart
      • Use an image
      • Use an image in Kubernetes
      • Use a Helm chart
      • Manage images and charts
      • Use Extended Lifecycle Support
      • Compare images
      • Verify an image or chart
      • Scan an image
      • Enforce image usage
      • Debug a container
    • Core concepts
      • Attestations
      • CIS Benchmark
      • Code signing
      • CVEs
      • Distroless images
      • FIPS
      • glibc and musl
      • Hardening
      • Image digests
      • Image provenance
      • Immutability
      • SBOMs
      • SLSA
      • Software Supply Chain Security
      • SSDLC
      • STIG
      • VEX
    • Troubleshoot
    • Additional resources
  • Docker Desktop
    • Setup
      • Install
        • Mac
        • Mac permission requirements
        • Windows
        • Windows permission requirements
        • Linux
          • Ubuntu
          • Debian
          • Fedora
          • Arch
          • RHEL
      • VM or VDI environments
      • Sign in
      • Allowlist
    • Explore Docker Desktop
      • Containers
      • Images
      • Volumes
      • Builds
      • Kubernetes
      • Resource Saver mode
      • Pause Docker Desktop
    • Features and capabilities
      • Networking
        • How-tos
      • GPU support
      • USB/IP support
      • Synchronized file shares
      • containerd image store
      • Wasm workloads Beta
      • Docker Desktop CLI
      • Virtual Machine Manager
      • WSL
        • Best practices
        • Custom kernels on WSL
        • Use WSL
    • Settings and maintenance
      • Change settings
      • Backup and restore data
    • Troubleshoot and support
      • Troubleshoot and diagnose
        • Common topics
        • Known issues
        • MacOS app damaged dialog
      • FAQs
        • General
        • Mac
        • Windows
        • Linux
        • Releases
      • Give feedback
    • Uninstall
    • Release notes
  • Docker Offload Early Access
    • Quickstart
    • About
    • Configure
    • Usage & billing
    • Optimize usage
    • Troubleshoot
    • Give feedback
  • Docker Build Cloud
    • Setup
    • Usage
    • Continuous integration
    • Optimization
    • Builder settings
    • Release notes
  • Docker Hub
    • Quickstart
    • Library
      • Search
      • Trusted content
      • Catalogs
      • Mirror
    • Repositories
      • Create
      • Manage
        • Repository information
        • Access
        • Images
          • Tags
          • Immutable tags
          • Image Management
          • Software artifacts
          • Push images
          • Move images
          • Bulk migrate images
        • Image security insights
        • Webhooks
        • Automated builds
          • Set up
          • Link accounts
          • Automated repository tests
          • Advanced options
          • Manage autobuilds
          • Troubleshoot
        • Trusted content
          • Docker Official Images
          • Docker Verified Publisher Program
          • Docker-Sponsored Open Source Program
          • Insights and analytics
        • Export repositories
      • Archive
      • Delete
    • Settings
    • Usage and limits
      • Pulls
      • Optimize usage
    • Service accounts
    • Troubleshoot
    • Release notes
  • Docker Scout
    • Install
    • Quickstart
    • Explore
      • Dashboard
      • Docker Scout image analysis
      • Docker Scout metrics exporter
      • Image details view
      • Manage vulnerability exceptions
    • How-tos
      • Create an exception using the GUI
      • Create an exception using the VEX
      • Docker Scout environment variables
      • Docker Scout SBOMs
      • Use Scout with different artifact types
    • Deep dive
      • Advisory database sources and matching service
      • Data collection and storage in Docker Scout
    • Policy Evaluation
      • Configure policies
      • Docker Scout health scores
      • Evaluate policy compliance in CI
      • Remediation with Docker Scout
      • View Docker Scout policy status
    • Integrations
      • Code quality
        • SonarQube
      • Container registries
        • Amazon ECR
        • Artifactory Container Registry
        • Azure Container Registry
      • Continuous Integration
        • Azure DevOps Pipelines
        • Circle CI
        • GitHub Actions
        • GitLab CI/CD
        • Jenkins
      • Integrating Docker Scout with environments
        • Generic (CLI)
        • Sysdig
      • Source code management
        • GitHub
      • Team collaboration
        • Slack
    • Release notes
      • CLI release notes
      • Platform release notes
  • Docker Extensions
    • Marketplace extensions
    • Non-marketplace extensions
    • Configure a private marketplace
    • Settings and feedback
    • Extensions SDK
      • The build and publish process
      • Quickstart
      • Part one: Build
        • Create a simple extension
        • Create an advanced frontend extension
        • Add a backend to your extension
      • Part two: Publish
        • Add labels
        • Validate
        • Package and release your extension
        • Share your extension
        • Publish in the Marketplace
        • Build multi-arch extensions
      • Architecture
        • Metadata
        • Security
      • Design and UI styling
        • Guidelines
        • Docker design principles
        • MUI best practices
      • Developer Guides
        • Authentication
        • Interacting with Kubernetes
        • Invoke host binaries
        • Use the Docker socket
      • Developer SDK tools
        • Test and debug
        • Continuous Integration (CI)
        • CLI reference
        • Extension APIs
          • Dashboard
          • Docker
          • Extension Backend
          • Extension UI API
          • Navigation
  • Testcontainers Cloud
  • Deprecated products and features
  • Release lifecycle
  • Support
  • Billing
    • Add or update a payment method
    • Manage your billing information
    • 3D Secure authentication
    • Invoices and billing history
    • Change your billing cycle
    • Submit a tax exemption certificate
    • FAQs
  • Docker accounts
    • Accounts
    • Create an account
    • Manage an account
    • Deactivate an account
  • Security
    • Personal access tokens
    • Two-factor authentication
      • Recover your Docker account
    • FAQs
      • General
      • Container
      • Network and VM
    • Security announcements
  • Subscription
    • Compare subscription
    • Set up your subscription
    • Scale your subscription
    • Manage seats
    • Change your subscription
    • Docker Desktop license agreement
    • FAQs
  • Release notes
  • Administration
    • Organization administration
      • Create your organization
      • Onboard your organization
      • Manage organization members
      • Convert an account into an organization
      • Create and manage a team
      • Deactivate an organization
      • Manage Docker products
      • Activity logs
      • Organization information
      • Insights
    • Company administration overview
      • Create a company
      • Manage company members
      • Manage company organizations
      • Manage company owners
    • FAQ
      • Organization
      • Company
  • Deploy Docker Desktop
    • MSI installer
    • PKG installer
    • MS Store
    • Deploy with Intune
    • Deploy with Jamf Pro
    • Microsoft Dev Box
    • FAQs
  • Security
    • Single sign-on
      • Configure
      • Connect
      • FAQs
        • General
        • Domains
        • Enforcement
        • Identity providers
        • User management
      • Manage
    • Provision
      • Just-in-Time
      • SCIM
      • Group mapping
    • Enforce sign-in
      • Configure
    • Roles and permissions
      • Core roles
      • Custom roles
    • Manage domains
    • Hardened Docker Desktop
      • Enhanced Container Isolation
        • Enable ECI
        • Configure advanced settings
        • Limitations
        • FAQs
      • Settings Management
        • Use a JSON file
        • Use the Admin Console
        • Desktop settings reporting
        • Settings reference
      • Registry Access Management
      • Image Access Management
      • Namespace access
      • Air-gapped containers
    • Organization access tokens
  • Troubleshoot
    • Troubleshoot provisioning
    • Troubleshoot SSO
Home / Manuals / Docker Compose / InstallOverview of installing Docker Compose Copy as Markdown Open Markdown Ask Docs AI Claude Open in ClaudeTable of contents
  • Installation scenarios
    • Docker Desktop (Recommended)
    • Plugin (Linux only)
    • Standalone (Legacy)

This page summarizes the different ways you can install Docker Compose, depending on your platform and needs.

Installation scenarios

The easiest and recommended way to get Docker Compose is to install Docker Desktop.

Docker Desktop includes Docker Compose along with Docker Engine and Docker CLI which are Compose prerequisites.

Docker Desktop is available for:

  • Linux
  • Mac
  • Windows
Tip

If you have already installed Docker Desktop, you can check which version of Compose you have by selecting About Docker Desktop from the Docker menu whale menu .

Plugin (Linux only)

Important

This method is only available on Linux.

If you already have Docker Engine and Docker CLI installed, you can install the Docker Compose plugin from the command line, by either:

  • Using Docker's repository
  • Downloading and installing manually

Standalone (Legacy)

Warning

This install scenario is not recommended and is only supported for backward compatibility purposes.

You can install the Docker Compose standalone on Linux or on Windows Server.

Edit this page

Request changes

Table of contents
  • Installation scenarios
    • Docker Desktop (Recommended)
    • Plugin (Linux only)
    • Standalone (Legacy)

Từ khóa » đặt V2