Docker & Docker-Compose

Docker

Install

Prerequisites

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

Configure Docker apt repo

echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list

Install

apt-get update
apt-get install docker.io docker-compose

Creating a Docker Network

Creating a network allows us to throw all our containers into one network. Else, each container will have its own network.

docker network create --driver bridge containerz

Verify

docker --version

Last updated