--> back..

Docker Installation

Steps to install docker on ubuntu linux

Reference

System used

$ uname -ra
Linux 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 

Shell: Bash

Get the script to install stable version of docker

Download script

curl -fsSL https://get.docker.com -o get-docker.sh

Make it executable and run it

chmod +x get-docker.sh 
./get-docker.sh

After installation docker is installed as root. If you need to chang it as rootless, execute this after above script

dockerd-rootless-setuptool.sh install

It might show some missing dependencies, install it through given command in output of above command and run it again

sudo apt-get install -y uidmap 

dockerd-rootless-setuptool.sh install

Update the environment variables or put it in your .bashrc. Makae sure the following environment variables are set

export PATH=/usr/bin:$PATH 
export DOCKER_HOST=unix:///run/user/1001/docker.sock 
© 2024 skohan   •  Powered by Soopr   •  Theme based on   Moonwalk