Skip to content

Instantly share code, notes, and snippets.

@spara
Last active August 9, 2023 09:04
Show Gist options
  • Save spara/400c0e8e156bb985de7f85910cd44e7e to your computer and use it in GitHub Desktop.
Save spara/400c0e8e156bb985de7f85910cd44e7e to your computer and use it in GitHub Desktop.
Install Docker CE 17.05 and Compose 1.13.0

Installing Docker CE Edge for Ubuntu Linux

Remove previous versions of Docker and Compose

sudo apt-get purge docker-compose
sudo apt-get purge docker-ce

Install dependencies

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

Install Docker

Download Docker .deb file:

curl -O https://download.docker.com/linux/ubuntu/dists/xenial/pool/edge/amd64/docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb

Install Docker:

sudo dpkg -i docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb

Install Compose

sudo curl -fSL http://github.com/docker/compose/releases/download/1.13.0/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose
@menzow
Copy link

menzow commented Jul 12, 2018

If you're getting the following error message:

$ sudo dpkg -i docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb
The following packages have unmet dependencies:
 docker-ce : Depends: libltdl7 (>= 2.4.6) but it is not going to be installed

That's because your OS does not ship with libltdl7 ( in my case Ubuntu 16.0.04 ) . You can install it with the following command;

$ sudo apt-get install -y libltdl7

@eugene-bright
Copy link

Just install any dpkg with next receipt:

sudo dpkg --force-all -i docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb
sudo apt install -f

dpkg will install package without dependencies and apt will try to fix them later.

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