docker post installation code example

Example 1: docker post installation steps linux

# Creates docker group
sudo groupadd docker

# Add your user to the docker group
sudo usermod -aG docker $USER

# Log out and log back in so that your group membership is re-evaluated
# GNOME example
gnome-session-quit

Example 2: install docker in ubuntu

$ sudo apt-get remove docker docker-engine docker.io
$ sudo apt-get update
$ sudo apt install docker.io
$ sudo snap install docker
$ docker --version

Example 3: install docker linux

sudo apt-get install -y xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty

Tags:

Misc Example