Setting up the Docker Environment
The following section outlines how to setup docker on Ubuntu 18.04:
-
Execute the following commands to install the docker package and enable docker access to X11 to display the client GUI:
$ sudo apt-get install docker $ xhost +local:docker
-
Enable your user to properly use the docker commands without using sudo for every command. Execute the following command and then log out and back in again:
$ sudo groupadd docker $ sudo usermod -a -G docker $USER