Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Docker CE on Ubuntu 17.10 and Docker-compose

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"

sudo apt-get update
sudo apt-get install docker-ce

Runing a container with docker compose

######## Install docker-compose in ubuntu

sudo apt-get update
sudo apt-get install python-pip -y
sudo pip install docker-compose

######## Test Docker compose

mkdir hello-world
cd hello-world
nano docker-compose.yml

my-test:
  image: hello-world

docker-compose up

You will see output :

Creating helloworld_my-test_1 ... 
Creating helloworld_my-test_1 ... done
Attaching to helloworld_my-test_1
my-test_1  | 
my-test_1  | Hello from Docker!
my-test_1  | This message shows that your installation appears to be working correctly.
my-test_1  | 
my-test_1  | To generate this message, Docker took the following steps:
my-test_1  |  1. The Docker client contacted the Docker daemon.
my-test_1  |  2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
my-test_1  |     (amd64)
my-test_1  |  3. The Docker daemon created a new container from that image which runs the
my-test_1  |     executable that produces the output you are currently reading.
my-test_1  |  4. The Docker daemon streamed that output to the Docker client, which sent it
my-test_1  |     to your terminal.
my-test_1  | 
my-test_1  | To try something more ambitious, you can run an Ubuntu container with:
my-test_1  |  $ docker run -it ubuntu bash
my-test_1  | 
my-test_1  | Share images, automate workflows, and more with a free Docker ID:
my-test_1  |  https://cloud.docker.com/
my-test_1  | 
my-test_1  | For more examples and ideas, visit:
my-test_1  |  https://docs.docker.com/engine/userguide/
my-test_1  | 
helloworld_my-test_1 exited with code 0

Reference : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04

@NedkoHristov

This comment has been minimized.

Copy link

NedkoHristov commented Mar 27, 2018

Before sudo pip install docker-compose we must install systemtools first:

pip install systemtools

@jonguenther

This comment has been minimized.

Copy link

jonguenther commented Sep 17, 2018

@NedkoHristov can you please elaborate why we'd need to install that package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.