Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Last active October 10, 2018 21:56
Show Gist options
  • Save rhiroyuki/67e370fe5db32b8dcdb6776ada87061d to your computer and use it in GitHub Desktop.
Save rhiroyuki/67e370fe5db32b8dcdb6776ada87061d to your computer and use it in GitHub Desktop.
Installing docker

$sudo groupadd docker $sudo gpasswd -a $USER docker Either do a $newgrp docker or log out/in to activate the changes to groups. Test it $docker run hello-world

Follow the instructions to install docker-compose Better to follow through the below link since it will be more new https://docs.docker.com/compose/install/



    Run this command to download the latest version of Docker Compose:

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

        Use the latest Compose release number in the download command.

        The above command is an example, and it may become out-of-date. To ensure you have the latest version, check the Compose repository release page on GitHub.

    If you have problems installing with curl, see Alternative Install Options tab above.

    Apply executable permissions to the binary:

    sudo chmod +x /usr/local/bin/docker-compose

    Optionally, install command completion for the bash and zsh shell.

    Test the installation.

    $ docker-compose --version
    docker-compose version 1.22.0, build 1719ceb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment