From 1f4bdf1a38f4b149dd5ca43922c4acc16c16a078 Mon Sep 17 00:00:00 2001 From: Steffen Bollmann Date: Sat, 26 Mar 2022 17:44:47 +1000 Subject: [PATCH] adding docker as well --- content/en/docs/docker.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/content/en/docs/docker.md b/content/en/docs/docker.md index 2c34685..880e959 100644 --- a/content/en/docs/docker.md +++ b/content/en/docs/docker.md @@ -10,11 +10,24 @@ description: >- ## Overview Docker (or a software container in general) is great for reproducibility and making it easy to move your tools in and out of the cloud. If you don't know what containers are, here is a 3 minute explanation: https://www.youtube.com/watch?v=HelrQnm3v4g +You can either install the original "Docker" or a drop-in replacement called "Podman" + ## Installing Docker -Docker is not installed by default on Oracle Linux. You could install the original Docker, but podman is fully compatible and is the default in Oracle Linux (and some argue it's even better). This is how to do it: +Docker is not installed by default on Oracle Linux. + +``` +sudo dnf install dnf-utils zip unzip +sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo +sudo dnf install docker-ce --nobest +sudo systemctl enable docker.service +sudo systemctl start docker.service +``` + +## OR: Installing Podman instead of Docker +Podman is compatible to docker and and is the default in Oracle Linux (and some argue it's even better). This is how to do it: ``` -sudo yum install docker +sudo yum install podman ``` Now you can run docker, but it will tell you that this is actually podman: @@ -28,7 +41,7 @@ Let's remove that msg: sudo touch /etc/containers/nodocker ``` -Now we have docker/podman installed and we can test it: +Now we have podman installed as "docker" drop-in replacement and we can test it: ``` docker run hello-world ```