Skip to content

Instantly share code, notes, and snippets.

@thomas-ayissi
Forked from npearce/install-docker.md
Created November 13, 2022 17:41
Show Gist options
  • Save thomas-ayissi/93f22500d496e0efb999f9df05624ac8 to your computer and use it in GitHub Desktop.
Save thomas-ayissi/93f22500d496e0efb999f9df05624ac8 to your computer and use it in GitHub Desktop.

Revisions

  1. @npearce npearce revised this gist May 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-docker.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    UPDATE (March 2020, thank @ic): I don't know the exact AMI version but `yum install docker` now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
    UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but `yum install docker` now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

    Amazon changed the install in Linux 2. One no-longer using 'yum'
    See: https://aws.amazon.com/amazon-linux-2/release-notes/
  2. @npearce npearce revised this gist May 5, 2020. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install-docker.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    UPDATE (March 2020, thank @ic): I don't know the exact AMI version but `yum install docker` now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

    Amazon changed the install in Linux 2. One no-longer using 'yum'
    See: https://aws.amazon.com/amazon-linux-2/release-notes/

    @@ -27,6 +29,9 @@ Copy the appropriate `docker-compose` binary from GitHub:

    `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`

    NOTE: to get the latest version (thanks @spodnet):
    `sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose`

    Fix permissions after download:

    `sudo chmod +x /usr/local/bin/docker-compose`
  3. @npearce npearce revised this gist May 14, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-docker.md
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ Reboot to verify it all loads fine on its own.

    ## docker-compose install

    Install docker-compose to build the kafka proxy cluster from a single definition file.
    Copy the appropriate `docker-compose` binary from GitHub:

    `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`

  4. @npearce npearce revised this gist Nov 29, 2018. No changes.
  5. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions install-docker.md
    Original file line number Diff line number Diff line change
    @@ -10,21 +10,27 @@ sudo usermod -a -G docker ec2-user
    ```

    Make docker auto-start

    `sudo chkconfig docker on`

    Because you always need it....

    `sudo yum install -y git`

    Reboot to verify it all loads fine on its own.

    `sudo reboot`

    ## docker-compose install

    Install docker-compose to build the kafka proxy cluster from a single definition file.

    `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`

    Fix permissions after download:

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

    Verify success:

    `docker-compose version`
  6. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-docker.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Amazon changes a bunch of stuff in Linux 2. No longer using 'yum'
    Amazon changed the install in Linux 2. One no-longer using 'yum'
    See: https://aws.amazon.com/amazon-linux-2/release-notes/

    ## Docker CE Install
  7. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions install-docker.md
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,30 @@
    # Amazon changes a bunch of stuff in Linux 2. No longer using 'yum'
    # See: https://aws.amazon.com/amazon-linux-2/release-notes/
    Amazon changes a bunch of stuff in Linux 2. No longer using 'yum'
    See: https://aws.amazon.com/amazon-linux-2/release-notes/

    ### Docker CE Install
    ## Docker CE Install

    ```sh
    sudo amazon-linux-extras install docker
    sudo service docker start
    sudo usermod -a -G docker ec2-user
    ```

    # Make docker auto-start
    Make docker auto-start
    `sudo chkconfig docker on`

    # Because you always need it....
    Because you always need it....
    `sudo yum install -y git`

    # Reboot to verify it all loads fine on its own.
    Reboot to verify it all loads fine on its own.
    `sudo reboot`

    ### docker-compose install
    ## docker-compose install

    # Install docker-compose to build the kafka proxy cluster from a single definition file.
    Install docker-compose to build the kafka proxy cluster from a single definition file.
    `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`

    # Fix permissions after download:
    Fix permissions after download:
    `sudo chmod +x /usr/local/bin/docker-compose`

    # Verify success:
    Verify success:
    `docker-compose version`
  8. @npearce npearce renamed this gist Nov 29, 2018. 1 changed file with 8 additions and 7 deletions.
    15 changes: 8 additions & 7 deletions install-docker.sh → install-docker.md
    Original file line number Diff line number Diff line change
    @@ -3,27 +3,28 @@

    ### Docker CE Install

    ```sh
    sudo amazon-linux-extras install docker
    sudo service docker start
    sudo usermod -a -G docker ec2-user
    ```

    # Make docker auto-start
    sudo chkconfig docker on
    `sudo chkconfig docker on`

    # Because you always need it....
    sudo yum install -y git
    `sudo yum install -y git`

    # Reboot to verify it all loads fine on its own.
    sudo reboot
    `sudo reboot`

    ### docker-compose install

    # Install docker-compose to build the kafka proxy cluster from a single definition file.
    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
    `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`

    # Fix permissions after download:
    sudo chmod +x /usr/local/bin/docker-compose
    `sudo chmod +x /usr/local/bin/docker-compose`

    # Verify success:
    docker-compose version

    `docker-compose version`
  9. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install-docker.sh
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,9 @@ sudo usermod -a -G docker ec2-user
    # Make docker auto-start
    sudo chkconfig docker on

    # Because you always need it....
    sudo yum install -y git

    # Reboot to verify it all loads fine on its own.
    sudo reboot

  10. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion install-docker.sh
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,20 @@
    # Amazon changes a bunch of stuff in Linux 2. No longer using 'yum'
    # See: https://aws.amazon.com/amazon-linux-2/release-notes/

    ### Docker CE Install

    sudo amazon-linux-extras install docker
    sudo service docker start
    sudo usermod -a -G docker ec2-user

    # You'll get socket permission errors unless you either reboot or logout/login so the `usermod` command takes effect.
    # Make docker auto-start
    sudo chkconfig docker on

    # Reboot to verify it all loads fine on its own.
    sudo reboot

    ### docker-compose install

    # Install docker-compose to build the kafka proxy cluster from a single definition file.
    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

  11. @npearce npearce revised this gist Nov 29, 2018. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion install-docker.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,17 @@

    sudo amazon-linux-extras install docker
    sudo service docker start
    sudo usermod -a -G docker ec2-user
    sudo usermod -a -G docker ec2-user

    # You'll get socket permission errors unless you either reboot or logout/login so the `usermod` command takes effect.
    sudo reboot

    # Install docker-compose to build the kafka proxy cluster from a single definition file.
    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

    # Fix permissions after download:
    sudo chmod +x /usr/local/bin/docker-compose

    # Verify success:
    docker-compose version

  12. @npearce npearce created this gist Nov 29, 2018.
    6 changes: 6 additions & 0 deletions install-docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Amazon changes a bunch of stuff in Linux 2. No longer using 'yum'
    # See: https://aws.amazon.com/amazon-linux-2/release-notes/

    sudo amazon-linux-extras install docker
    sudo service docker start
    sudo usermod -a -G docker ec2-user