Welcome to the Linux Foundation Forum!

Lab1: docker-compose Installation is missed, isn't it?

At the end of the Lab1 at Sanity Checks, it checks the docker-compose -v BUT,
there should be a command somewhere where it is installed, shouldn't it?

Something like this: $ sudo apt install docker-compose

I got this command from the Basic training on Coursera.


  • fcioancafcioanca Posts: 472

    Lab 1 has two sections on Docker and Docker Compose installation. Please follow carefully the lab instructions.

  • @fcioanca Thanks for your reply. I am using the Lab document - V.7.17.2019. Which is the latest.

    On page 7, where Docker-Compose installation is described, I see the following commands, but none of them are actually the installation per say.

    First, we need to pull docker-compose using curl:
    sudo curl -L
    https://github.com/docker/compose/releases/download/1.18.0/docker-compose-uname -s-uname -m -o /usr/local/bin/docker-compos e

    We need to change the permissions for docker-compose so we can execute it later:
    sudo chmod +x /usr/local/bin/docker-compose

    Let’s perform a reboot to ensure everything we’ve done is placed into effect.
    sudo reboot now

    Where is the actual install command here... hm... am I missing something?

  • @fcioanca
    could you help to point out if what I am looking for is there I just can not see it? (I am confused)

  • @LasToronto ... hopefully I can assist somewhat. So 2 questions....

    1. Have you added the Docker repository as directed previous to the step you are at.
    2. Have you installed DOCKER CE which is also previous to the step you are at.

    Please run a ls (list) from your Desktop and post here. Hope that helps.

  • koakhkoakh Posts: 11

    Hello guys

    just follow official docs, links above

    I installed my pre-requisites on ubuntu 16.04 like that, docker compose in in bottom of snippet

    Install Docker / Composer

    # install docker
    $ sudo apt-get install -y --no-install-recommends \
        apt-transport-https \
        ca-certificates \
        software-properties-common \
    # Now we need to curl down our gpg key
    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    # let’s add the Docker repository (stable version)
    $ sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
    # update our package list
    $ sudo apt update
    # install the Docker Community Edition
    $ sudo apt -y install docker-ce
    # add your current username to the Docker Group so you can access it in case of “non-root-user” issues
    $ sudo usermod -aG docker <YourUserNameGoesHere>
    # docker-Compose
    $ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    # change the permissions for docker-compose
    $ sudo chmod +x /usr/local/bin/docker-compose
    # perform a reboot to ensure everything we’ve done is placed into effect.
    $ sudo reboot now
  • Hi @LasToronto! Just adding my 2 cents here.

    The docker-compose is downloaded ready for your architecture and is placed in "/usr/local/bin/". That is why you don't see a install like command.

    Just pay attention to a typo on the official document regarding the installation of the gpg agent for Docker. In the documentation is written "gnpg-agent" but the right one is like mentioned by @koakh: "gnupg-agent".

Sign In or Register to comment.