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.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 2,295

    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)

  • Posts: 10

    @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.

  • 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

    1. # install docker
    2. $ sudo apt-get install -y --no-install-recommends \
    3. apt-transport-https \
    4. ca-certificates \
    5. software-properties-common \
    6. gnupg-agent
    7. # Now we need to curl down our gpg key
    8. $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    9. # let’s add the Docker repository (stable version)
    10. $ sudo add-apt-repository \
    11. "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    12. $(lsb_release -cs) \
    13. stable"
    14. # update our package list
    15. $ sudo apt update
    16. # install the Docker Community Edition
    17. $ sudo apt -y install docker-ce
    18. # add your current username to the Docker Group so you can access it in case of “non-root-user” issues
    19. $ sudo usermod -aG docker <YourUserNameGoesHere>
    20.  
    21. # docker-Compose
    22. $ 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
    23. # change the permissions for docker-compose
    24. $ sudo chmod +x /usr/local/bin/docker-compose
    25. # perform a reboot to ensure everything we’ve done is placed into effect.
    26. $ 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".

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training