WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    How to Install and use Docker Compose on Ubuntu 24.04

    Linux
    1
    1
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by

      Update Your System
      First, make sure your package list is up to date,

      apt update -y
      
      apt upgrade -y
      

      Install Docker
      If Docker is not already installed on your system, you can install it using the following commands,

      apt install docker.io
      

      Install Docker Compose
      To install Docker Compose, you can use the below commands. You may need to download the latest version of Docker Compose from the official GitHub repository,

      curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
      
      chmod +x /usr/local/bin/docker-compose
      

      The above command will download and install the latest version of Docker Compose.

      Verify Docker Compose Version
      Check if Docker Compose was installed successfully by running,

      docker-compose --version
      

      Output:

      root@server:~# docker-compose --version
      Docker Compose version v2.25.0
      root@server:~#
      

      Done.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors