From 03133256c85e8ed2e4ed445baf4f0ef94a60e627 Mon Sep 17 00:00:00 2001 From: Lakshya Singh Date: Fri, 20 Oct 2023 18:15:04 +0530 Subject: [PATCH] docs: docker installation - both docker and distro package steps Signed-off-by: Lakshya Singh --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 8b5cee8..da7d8f9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,35 @@ # VLS Containers +## Installing Docker + +### Docker Documentation + +Docker Engine is available on a variety of Linux distros, macOS, and Windows 10 through Docker Desktop, and as a static binary installation. Refer to the official [docker documentation](https://docs.docker.com/engine/install/) + +- [Ubuntu](https://docs.docker.com/engine/install/ubuntu/) +- [Fedora](https://docs.docker.com/engine/install/fedora/) + +### Distro Packages + +Debian/Ubuntu: +``` +sudo apt install docker.io docker-doc docker-compose containerd runc +sudo systemctl enable --now docker +``` + +Fedora/RHEL: +``` +sudo dnf install docker docker-compose containerd runc +sudo systemctl enable --now docker +``` + +### Docker Compose Compatibility + +- Currently available `docker-compose` package in different linux distributions (debian, ubuntu, fedora, etc) are not up to date, they are still at version `1` which has been deprecated by `docker` with release of version `2`. +- `docker-compose` version `2` is available through official docker repositories not the distribution ones. +- Docker Images in this repository work with version 2 and are also __backward compatible__ with version 1. +- If you are using the distribution installation the `docker compose` command used below has to be changed to `docker-compose` instead. + ## Volume Creation ```